Unable to compile and create maven project for hibernate

谁都会走 提交于 2019-12-20 03:56:09

问题


I am trying to create a Eclipse project from Hibernate tutorials under path \hibernate-distribution-3.5.3-Final\project\tutorials\eg using command line mvn eclipse:eclipse. But i am getting this error

Reason: POM 'org.jboss.maven.plugins:maven-jdocbook-style-plugin' not found in repository: Unable to download the artifact from any repository

Can anyone faced this issue with the latest release of Hibernate?


回答1:


I don't know what version of the plugin you need but JBoss has moved recently to Nexus and, while the previous repositories (mentioned here) will stay online indefinitely, ultimate versions of stuff is pushed to their Nexus repo now. So I suspect that you need the following declaration somewhere:

<repositories>
  <repository>
    <id>jboss-public-repository-group</id>
    <name>JBoss Public Repository Group</name>
    <url>http://repository.jboss.org/nexus/content/groups/public</url>
  </repository>
  ...
</repositories>


来源:https://stackoverflow.com/questions/3068804/unable-to-compile-and-create-maven-project-for-hibernate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!