使用Unknown Host xxx.com,Maven构建失败 [英] Maven build is failing with Unknown Host xxx.com

查看:476
本文介绍了使用Unknown Host xxx.com,Maven构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我已经使用maven任务创建了新的构建定义作为其中一个步骤。我正在使用我的企业仓库并通过目标参数提供了settings.xml。运行构建时,它会选择正确的settings.xml,然后使用以下跟踪失败

I have created new build definition with maven task as one of the step. I am using my corporate repo and supplied settings.xml through goal parameters. When run the build it is picking the correct settings.xml and then failing with below trace

2017-04-27T11:35:50.5526441Z [错误]插件org.apache.maven.plugins :maven-resources-plugin:2.6或其中一个依赖项无法解析:无法读取org.apache.maven.plugins的工件描述符:maven-resources-plugin:jar:2.6:无法传输
工件org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from / to central(// corporaterepo:8081 / artifactory / plugins-release):corporaterepo.com:Unknown host corporaterepo.com-> [帮助1]

2017-04-27T11:35:50.5526441Z [ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (//corporaterepo:8081/artifactory/plugins-release): corporaterepo.com: Unknown host corporaterepo.com-> [Help 1]

它在我的开发系统中完美执行。无法确定我应该在哪里/什么配置。如果有人有任何信息,请提供帮助。

It is executing perfectly in my development system. Not able to figure where/what configuration should I make. Please help if someone has any informatin.

谢谢,

Rajesh 

Rajesh 

推荐答案

您使用的是托管代理还是私有代理?为了澄清,想知道它是否更早工作?

Are you using hosted agent or private agent? For clarification would like to know was it working earlier?

另外,想知道你正在使用的Maven的版本。

Also, would like to know the version of Maven you are using.

我是建议您尝试使用所需的软件准备私人代理\ version

I’d suggest you try by preparing a private agent with the required software\version


这篇关于使用Unknown Host xxx.com,Maven构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆