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-servicepom.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 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
路过按个爪印,很不错,赞一个!
[***.219.124.196]2024年09月16日 01时29分21秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
vue+flask实现视频目标检测yolov5
2019-05-24
关于BigInteger
2019-05-24
UIScrollView不能响应UITouch事件
2019-05-24
iOS TextFiled 文本密码切换 光标偏移解决
2019-05-24
iOS 当前应用所占内存和设备可用内存
2019-05-24
iOS 文件属性
2019-05-24
UIView的layoutSubviews和drawRect方法何时调用
2019-05-24
iOS GCD多线程下载原理
2019-05-24
NSData全部API解释
2019-05-24
iOS 侧滑菜单封装Demo(类似QQ侧滑效果)
2019-05-24
Spring学习(二)
2019-05-24
Spring学习(三)
2019-05-24
Spring学习(四)
2019-05-24
java解惑——易错知识点归纳总结
2019-05-24
Memcached 集群部署
2019-05-24
Memcached与Spring AOP构建数分布式据库前端缓存框架
2019-05-24
数据挖掘常用算法整理
2019-05-24
JNDI学习总结(一)——JNDI数据源的配置
2019-05-24
JNDI学习总结(二)——Tomcat下使用C3P0配置JNDI数据源
2019-05-24