Failed to execute goal on project service-1-server: Could not resolve dependencies for project问题解决
·
问题:
[ERROR] Failed to execute goal on project service-1-server: Could not resolve dependencies for project com.it2:service-1-server:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.it2:service-1-api:jar:1.0-SNAPSHOT: Failed to read artifact descriptor for com.it2:service-1-api:jar:1.0-SNAPSHOT: Could not find artifact com.it2:service-1:pom:1.0-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
原因:
父类maven仓库没有安装到本地仓库
解决方法:
先将父类的maven(root)安装到本地仓库,之后再安装子类项目
更多推荐
所有评论(0)