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工程问题解决


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM