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


你可能感兴趣的:(Failed to read artifact descriptor进行安装maven项目出错)