Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/387.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java jdk版本更改后Maven不使用来自settings.xml的镜像_Java_Maven_Jenkins - Fatal编程技术网

Java jdk版本更改后Maven不使用来自settings.xml的镜像

Java jdk版本更改后Maven不使用来自settings.xml的镜像,java,maven,jenkins,Java,Maven,Jenkins,我有一个打印Hello world的简单java应用程序。我在settings.xml中提到了一个代理服务器,Maven在运行时应该使用它(在Jenkins中运行良好)。 以前,我使用的是jdk7。现在,我将其更改为jdk1.8.0_45并再次运行该应用程序(在Jenkins中)。现在我可以在日志中看到maven正在搜索默认的存储库,它不应该是 现在的错误是: [INFO] Downloading: http://repo.maven.apache.org/maven2/org/apache/m

我有一个打印Hello world的简单java应用程序。我在settings.xml中提到了一个代理服务器,Maven在运行时应该使用它(在Jenkins中运行良好)。 以前,我使用的是jdk7。现在,我将其更改为jdk1.8.0_45并再次运行该应用程序(在Jenkins中)。现在我可以在日志中看到maven正在搜索默认的存储库,它不应该是

现在的错误是:

[INFO] Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.093s
[INFO] Finished at: Tue Jul 07 15:56:36 CEST 2015
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
[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 (http://repo.maven.apache.org/maven2): Connection to http://repo.maven.apache.org refused: Connection timed out: connect -> [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

提前谢谢

它说,
无法将工件org.apache.maven.plugins:maven资源plugin:pom:2.6从/传输到中心(http://repo.maven.apache.org/maven2):连接到http://repo.maven.apache.org 拒绝:连接超时:连接
您是否阅读了
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
?日志是否说明在尝试转到maven central之前,它至少尝试访问您的镜像以下载插件?它应该在您发布的代码片段上方提到这一点。