Maven生成失败,连接超时
所以我正在设置一个jenkins实例,并从git配置了一个maven项目 当我尝试构建时,我有一个选项设置为执行“清理包”,但我在Jenkins日志中得到以下错误:我缺少Jenkins设置吗Maven生成失败,连接超时,maven,jenkins,Maven,Jenkins,所以我正在设置一个jenkins实例,并从git配置了一个maven项目 当我尝试构建时,我有一个选项设置为执行“清理包”,但我在Jenkins日志中得到以下错误:我缺少Jenkins设置吗 它在windows/Linux上吗?哪个用户运行构建?您是否为该用户配置了settings.xml?是否有需要配置的代理?这看起来是错误的:repo.maven.apache.org/151.101.32.215]失败:连接超时“…位置为https://repo1.maven.org/maven2/。更改
它在windows/Linux上吗?哪个用户运行构建?您是否为该用户配置了settings.xml?是否有需要配置的代理?这看起来是错误的:repo.maven.apache.org/151.101.32.215]失败:连接超时“…位置为
https://repo1.maven.org/maven2/
。更改了某些内容your settings.xml?我们在jenkins服务器上有防火墙规则…必须使用内部artifactory服务器来绕过…感谢您的帮助在jenkins服务器上,配置settings.xml文件的位置应该在哪里?
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean- plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:05 min
[INFO] Finished at: 2016-06-20T19:11:04-04:00
[INFO] Final Memory: 15M/294M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.32.215] failed: Connection timed out -> [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