NimChimpsky
NimChimpsky

Reputation: 47290

hibernate version 4 jar, maven dependency not in repository - well it is in repository, but my repository is wrong

Hibernate-core jar version 4.0.0.Final version is not available here. My pom shows this :

<id>central</id>
<name>Maven Repository Switchboard</name>
<url>http://repo1.maven.org/maven2</url>

Which provides a link to here where the jar IS available ... so I expected my maven build to download dependency, it doesn't.

However if I change to CR7 (which is available on first repository) it does work, suggesting to me that my build actually uses the first link as repository, even though the url "resolves" to the second ... ?

What should my repository definition look like to enable me to get the final version of hibernate release ?

Upvotes: 0

Views: 1216

Answers (2)

Sri Sankaran
Sri Sankaran

Reputation: 8310

Hibernate suggests using the JBoss Maven repository. I would therefore use a repository defined thusly:

<repository>
  <id>Hibernate</id>
  <name>JBoss Hibernate repository</name>
  <url>http://repository.jboss.org/nexus/content/groups/public/</url>
</repository>

...and any other repository coordinate element you wish to specify.

Upvotes: 1

NimChimpsky
NimChimpsky

Reputation: 47290

the repository required was this:

<repository>
<id>Hibernate</id>
<name>JBoss Hibernate repository</name>
<url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
</repository>

Upvotes: 0

Related Questions