mvn -deploy 报错Failed to deploy artifacts: Could not find artifact
来源:互联网 发布:迅捷聊天记录恢复软件 编辑:程序博客网 时间:2024/05/17 23:12
问题报错:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project apollo: Failed to deploy artifacts: Could not find artifact com.ctrip.framework.apollo:apollo:pom:0.8.0 in releases (http://ip:8081/nexus/content/repositories/) -> [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/MojoExecutionException
问题分析:从报错看无法找到apollo:pom:0.8.0 这个pom文件, 但是从私服Nexus上看releases仓Repository Path 的地址为
http://ip:8081/nexus/content/repositories/
于是想到路径可能不对,查找maven的setting.xml,发现里面有配置路径:
<properties> <releases.repo>http://ip:8081/nexus/content/repositories/</releases.repo> <snapshots.repo>http://ip:8081/nexus/content/repositories/</snapshots.repo></properties>
问题解决:
这个路径是公司其他同事配置好的,这个路径刚好与报错信息中的路径一致,路径与私服上这两个仓库的路径不一样,随修改之,
<properties> <releases.repo>http://ip:8081/nexus/content/repositories/releases/</releases.repo> <snapshots.repo>http://ip:8081/nexus/content/repositories/snapshots/</snapshots.repo></properties>
阅读全文
0 0
- mvn -deploy 报错Failed to deploy artifacts: Could not find artifact
- mvn -deploy 报错 Failed to deploy artifacts: Could not transfer artifact
- 报错信息:Could not find artifact
- idea启动tomcat报错:Artifact mmall:war: Server is not connected. Deploy is not available
- 依赖ConstraintLayout报错,Could not find *****,Failed to resolve:*****
- 依赖ConstraintLayout报错,Could not find *****,Failed to resolve:*****
- mvn deploy:deploy-file
- mvn install could not find artifact in local repository
- Could not find artifact
- maven自建maven 报Could not find artifact
- Jenkins中deploy插件的deploy war/ear to a container与deploy artifacts to maven reepository区别
- maven 报错找不到Could not find artifact maven-plugins:maven-cobertura-plugin:plugin:1.3
- maven之mvn deploy
- mvn deploy 401 错误
- maven部署 mvn deploy
- Wonderware IDE:Failed to deploy <PlatformName>: Can not communicate with remote node
- Failed to deploy views (deployment id: ). The collection does not exist.
- deploy
- 如何通过对应关系入库
- 程序设计C 实验五 题目五 一维动态数组的应用(0293)
- Java开发牛人十大必备网站
- 选择排序,冒泡排序,插入排序,交换排序,shell排序
- Angular1.x启动分析
- mvn -deploy 报错Failed to deploy artifacts: Could not find artifact
- 搬家到 http://mutex73.github.io
- 在Web.config或App.config中的添加自定义配置
- 【Python】2.3绘制等边三角形
- 高效开发-使用7.0 sdk 开发ViewPager 翻页每个ITem 居中
- Key Reinstallation Attacks
- SpannableString的简单用法
- sdut2772 KMP的简单应用
- WFP 驱动环境搭建(WIN10)和编译