我有一个项目与它的pom文件,我特灵建立它与mvn安装命令,但它失败了
我得到了以下错误
INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:17 min
[INFO] Finished at: 2015-02-26T09:32:31+03:00
[INFO] Final Memory: 7M/112M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project PROJECT-web: Could not resolve dependencies for project co
m.prod.PROJECT:PROJECT-web:war:0.0.1-SNAPSHOT: Failed to collect dependencies at com.prod.comp:PROJECT
-web:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for com.prod.comp:comp-web:jar:0.0.1-S
NAPSHOT: Could not transfer artifact com.prod.comp:comp-web:pom:0.0.1-SNAPSHOT from/to prodLocalRe
p (http://121.0.0.44:8080/artifactory/prod-repo): Error transferring file: Server returned HTTP res
ponse code: 502 for URL: http://121.0.0.44:8080/artifactory/prod-repo/com/prod/comp/comp-web/0.0.1
-SNAPSHOT/comp-web-0.0.1-SNAPSHOT.pom from http://121.0.0.44:8080/artifactory/prod-repo/com/prod/G
ACA/comp-web/0.0.1-SNAPSHOT/comp-web-0.0.1-SNAPSHOT.pom with proxyInfo ProxyInfo{host='compproxy', u
serName='null', port=8080, type='http', nonProxyHosts='null'} -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project PROJECT-we
b: Could not resolve dependencies for project com.prod.PROJECT:PROJECT-web:war:0.0.1-SNAPSHOT: Fail
ed to collect dependencies at com.prod.comp:comp-web:jar:0.0.1-SNAPSHOT
**请注意:**Maven下载了许多jar,但因此错误而停止
所以我的问题是如果我理解的错误是正确的,是否有一些jar,生产回购是运行在自己的记录和服务器?
pom.xml文件
2条答案
按热度按时间nfs0ujit1#
502错误消息表明代理服务器后面的服务器不可用。现在从堆栈跟踪很难判断这是http://121.0.0.44:8080后面的服务器还是另一个maven仓库正在被查询一个工件。
dnph8jn42#
在我的例子中,代理设置在.m2文件夹下的IntelliJ-HTTP_Proxy和setting.xml之间是不同的。
我清除了我的M2上的代理设置,并保留IntelliJ代理设置,问题得到了解决。