无法编译和创建休眠的Maven项目 [英] Unable to compile and create maven project for hibernate

查看:174
本文介绍了无法编译和创建休眠的Maven项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用命令行从路径
\hibernate-distribution-3.5.3-Final\project\tutorials\eg
下的Hibernate教程创建一个Eclipse项目 mvn eclipse:eclipse 。但我得到这个错误

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

任何人都可以使用最新版本发布Hibernate?

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

推荐答案

我不知道你需要什么版本的插件,但 JBoss最近迁移到了Nexus ,而以前的仓库(提到这里)将无限期地保持在线状态,现在终极版本的东西被推送到他们的Nexus回购。所以我怀疑你需要在下面的声明:

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>

这篇关于无法编译和创建休眠的Maven项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆