0

我正在 jenkins 机器服务器上运行检测代码覆盖率的作业该作业正在运行命令:emme:emma 并在尝试从 maven repo 下载依赖项时一直失败:您可以看到以下日志:

    INFO] ------------------------------------------------------------------------
[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of External-Central has elapsed or updates are forced.
          Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to External-Central (http://repo1.maven.org/maven2):
          Connection to http://repo1.maven.org refused
[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced.
          Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (http://repo.maven.apache.org/maven2):
          Connection to http://repo.maven.apache.org refused
[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of External-Central has elapsed or updates are forced.
          Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to External-Central (http://repo1.maven.org/maven2):
          Connection to http://repo1.maven.org refused
[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. 
          Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to central (http://repo.maven.apache.org/maven2):
          Connection to http://repo.maven.apache.org refused
[WARNING] Failure to transfer org.codehaus.mojo:emma-maven-plugin/maven-metadata.xml from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of External-Central has elapsed or updates are forced.
          Original error: Could not transfer metadata org.codehaus.mojo:emma-maven-plugin/maven-metadata.xml from/to External-Central (http://repo1.maven.org/maven2): 
          Connection to http://repo1.maven.org refused
[WARNING] Failure to transfer org.codehaus.mojo:emma-maven-plugin/maven-metadata.xml from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced.
          Original error: Could not transfer metadata org.codehaus.mojo:emma-maven-plugin/maven-metadata.xml from/to central (http://repo.maven.apache.org/maven2): 
          Connection to http://repo.maven.apache.org refused

提前感谢尼尔

4

1 回答 1

2

在此处发布评论作为关闭循环的答案:

请确保您不在拒绝连接到 Maven Central 的防火墙后面

于 2013-03-05T18:59:40.490 回答