views:

524

answers:

1

Hello, i'm trying to update the hibernate dependecy in my pom, I had the 3.3.2.GA version and i changed to 3.5.1-Final. But maven can't find the jars in the repo, so checking the url.

http://repository.jboss.org/maven2/

in the hibernate section.

I can see that there are't any jar, only pom's. But If i check the entity manager section

There are jars and other files, (in fact maven retrived the files).

I know that i can add this to my repository whis this command line

 mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate -Dversion=3.5.1-Final -Dpackaging=jar -Dfile=/path/to/file

But i dont know if other dependencies are required.

I must to say that i added the repository in my pom, like this.

   <repository>
        <id>JBOSS</id>
        <name>JBoss Repository</name>
        <url>http://repository.jboss.org/maven2/&lt;/url&gt;
    </repository>

Tank you.

A: 

Use hibernate-core as artifactId in your dependency (from the JBoss repository indeed):

<dependencies>
  <dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-core</artifactId>
    <version>3.5.1-Final</version>
  </dependency>
  ...
</dependencies>

<repositories>
  <repository>
    <id>jboss</id>
    <name>JBoss repository</name>
    <url>http://repository.jboss.org/maven2&lt;/url&gt;
  </repository>
</repositories>
Pascal Thivent
Thank you, that was the dependency.
OJVM