maven install报错 Failed to execute goal on project my-manager-mapper: Could not resolve dependencies for project com.my:my-manager-mapper:jar:0.0.1-SNAPSHOT:

报错信息为:

[ERROR] Failed to execute goal on project my-manager-mapper: Could not resolve dependencies for project com.my:my-manager-mapper:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at com.my:my-manager-pojo:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for com.my:my-manager-pojo:jar:0.0.1-SNAPSHOT: Could not find artifact com.my:my-manager: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

原因:

我的mapper项目 依赖pojo项目,而mapper项目和pojo项目是manager聚合项目的子模块,只把pojo项目 maven install  mapper项目在mave库中找不到pojo jar包导致

解决方法:

先将父工程聚合工程manager  maven install ,再  将pojo项目  maven install ,最后再 maven install mapper工程问题解决

上一篇:Double Strings Solved Problem code: DOUBLE


下一篇:2015.4.23 贪吃蛇、canvas动画,各种上传工具,url信息匹配以及最全前端面试题等