开发者

Maven hibernate jar not found (3.5.1-Final)

i'm trying to update the hibernate dependecy in my p开发者_如何学Goom, 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/</url>
    </repository>

Tank you.


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</url>
  </repository>
</repositories>


JBoss have started synchronising their own repo with Maven central as posted on the JBoss community blog , therefore hibernate artifacts are now available without the need to add the JBoss repository to your pom.xml or repository manager.

Search result for hibernate-core:

Maven hibernate jar not found (3.5.1-Final)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜