maven出现:Failed to execute goal on project ...: Could not resolve dependencies for project ...
发布日期:2021-07-20 21:53:53 浏览次数:9 分类:技术文章

本文共 2728 字,大约阅读时间需要 9 分钟。

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary for demo 0.0.1-SNAPSHOT:
[INFO]
[INFO] demo ............................................... FAILURE [18:18 min]
[INFO] admin-service ...................................... SKIPPED
[INFO] user-service ....................................... SKIPPED
[INFO] myweb .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  18:22 min
[INFO] Finished at: 2020-02-15T16:38:31+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.4.RELEASE:repackage (repackage) on project demo: Execution repackage of goal org.springframework.boot:spring-boot-m
aven-plugin:2.2.4.RELEASE:repackage failed: Plugin org.springframework.boot:spring-boot-maven-plugin:2.2.4.RELEASE or one of its dependencies could not be resolved: Could not find artifact org.eclipse
.sisu:org.eclipse.sisu.inject:jar:0.3.2 in nexus-releases (http://localhost:8081/nexus/content/groups/public/) -> [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/PluginResolutionException

[ERROR] Failed to execute goal on project admin-service: Could not resolve dependencies for project com.rock:admin-service:jar:0.0.1-SNAPSHOT: Failure to find org.assertj:assertj-core:jar:3.13.2 in ht

tp://localhost:8081/nexus/content/repositories/central/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus-mirror has elapsed or updates are forc
ed -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :admin-service

pom.xml中的version版本没有及时更新,比如,A依赖B,A的pom.xml中依赖着B的<version>1.0.1<version>,但B已经升级到了1.0.2了,这时候可能B中有很多新东西,如果版本不及时更新,有些依赖资源就会找不到。

下面是idea中,设置setting.xml的方法,路径需要自己更改一下。

 

 

转载地址:https://blog.csdn.net/lifeifei2010/article/details/104330333 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:window Jenkins部署
下一篇:Java 进程占用 VIRT 虚拟内存超高的问题研究

发表评论

最新留言

路过按个爪印,很不错,赞一个!
[***.219.124.196]2024年09月16日 01时29分21秒