maven -U clean install 出现错误
项目配置的maven仓库镜像时阿里云的,然后配置了本地仓库路径。
项目依赖了一个第三方jar,然后jar已经安装到了本地仓库
项目启动没有问题,但是打包的时候出现了错误。错误信息如下:
项目的module cherrypvk-sdk 依赖了第三方jar[cat-client:jar:1.2.1-mv-SNAPSHOT]
错误的原因大致是 没有在阿里云仓库中找到 cat-client:jar:1.2.1-mv-SNAPSHOT 信息
[ERROR] Failed to execute goal on project KeMachine-sdk: Could not resolve dependencies for project com.sachin:cherrypvk-sdk:jar:2.1.0.11-0.0.1-SNAPSHOT: Failed to collect dependencies at com.dianping.cat:cat-client:jar:1.2.1-mv-SNAPSHOT: Failed to read artifact descriptor for com.dianping.cat:cat-client:jar1.2.1-mv-SNAPSHOT: Failure to find com.dianping.cat:parent:pom:1.4.0 in https://maven.aliyun.com/repo... was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project cherrypvk-sdk: Could not resolve dependencies for project com.sachin:cherrypvk-sdk:jar:2.1.0.11-0.0.1-SNAPSHOT: Failed to collect dependencies at com.dianping.cat:cat-client:jar:1.2.1-mv-SNAPSHOT
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find com.dianping.cat:parent:pom:1.4.0 in https://maven.aliyun.com/repo... was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced
相关参考:
https://stackoverflow.com/que...
这个问题该如何处理?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
建议这么做:
-o
选项,离线模式运行