add-jboss-repository-into-a-maven-project

http://stackoverflow.com/questions/2009804/netbeans-wont-download-maven-artifact

Adding the JBoss repository in NetBeans is one thing but this won’t make the content of this repository available to Maven projects. To do so, you need to add the JBoss Maven repository to the pom.xml of your project. Actually, the error you get has nothing to do with NetBeans, it is a pure Maven “issue”.

To fix it, provide the following configuration:

<project>...
<repositories>
<repository>
<id>repository.jboss.org</id><url>http://repository.jboss.org/maven2</url>
</repository>...
</repositories>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>3.5.0-Beta-2</version>
</dependency>...
</dependencies>...
</project>

And Hibernate’s jar will get downloaded successfully from the JBoss repository.

 


http://wiki.netbeans.org/MavenBestPractices#Utilizing_and_managing_Maven_repositories

 

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: