I'm trying to build a relative easy project and include Hibernate with maven. I'm trying to use the latest version of Hibernate (3.5.4-Final).
It seems that the JBoss folks have changed their maven repository recently, and I'm having some problems getting my maven build to work. I have found a lot of information on the web and here, but nothing seems to work quite right... Lots of information I have found does not let me get the latest version of Hibernate.
I have the following repository defined in my pom.xml:
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Repository Group</name>
<url>https://repository.jboss.org/nexus/content/repositories/releases</url>
</repository>
I have the following dependency defined in my pom.xml:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.5.4-Final</version>
</dependency>
This seems to download some of the dependencies, but not enough to build.
I get the following error:
Downloading: http://repo1.maven.org/maven2/org/hibernate/hibernate/3.5.4-Final/hibernate-3.5.4-Final.jar [INFO] Unable to find resource 'org.hibernate:hibernate:jar:3.5.4-Final' in repository central (http://repo1.maven.org/maven2)
I've read the page JBoss says to read Maven Getting Started - Users, and to be honest it doesn't make any sense to me. It says to put stuff in my settings.xml. I would like to put information in my pom.xml and not require everyone to modify the settings.xml. I'm hardly a maven expert. I just really want to know what to put in my pom.xml file to get this to work.