Failed to read artifact descriptor进行安装maven项目出错

1.  在maven中进行install的时候报出这种错误:clean install -DskipTests=true

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building cms-core 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.903s
[INFO] Finished at: Sat Oct 05 22:17:51 CST 2013
[INFO] Final Memory: 8M/159M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cms-core: Could not resolve dependencies for project com.steven.cms:cms-core:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at com.steven.basic:basic-hibernate:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for com.steven.basic:basic-hibernate:jar:0.0.1-SNAPSHOT: Could not find artifact com.steven.cms:cms-parent:pom:0.0.1-SNAPSHOT -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
先来说说我的项目的结构:首先我的cms-parent是父目录,然后basic-hibernate和cms-core是子目录,并且cms-core引用basic-hibernate,首先我把basic-hibernate已经安装进我的本地资源库文件中,然后我在进行cms-core的安装时发现报出以上错误,提示说不能加载basic-hibernate,为什么呢?我的之个模块已经放入本地资源库文件中,maven在找依赖的时候是先找本地资源库,如果没有再从网络中下载!!!

通过查找,最终是找到了解决方法,是因为我还没有安装cms-parent导致,安装完cms-parent之后在进行cms-core的安装就没有问题了。

参考:

当install带有parent的jar时,如果没有把parent一并install,也会出现这个错误提示
http://www.oschina.net/question/658073_72992


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值