任何人都可以帮我解决这个错误吗?我在我的warnings-plugin目录中使用“mvn install”命令 我收到了这个错误
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 57:18.440s
[INFO] Finished at: Tue Oct 25 01:59:03 IST 2016
[INFO] Final Memory: 18M/73M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project warnings: Could not resolve dependencies for project org.jvnet.hudson.plugins:warnings:hpi:4.58-SNAPSHOT: The following artifacts could not be resolved: org.jenkins-ci.main:jenkins-war:war:1.625.1, org.jenkins-ci.main:jenkins-test-harness:jar:1.625.1: Could not transfer artifact org.jenkins-ci.main:jenkins-war:war:1.625.1 from/to repo.jenkins-ci.org (http://repo.jenkins-ci.org/public/): GET request of: org/jenkins-ci/main/jenkins-war/1.625.1/jenkins-war-1.625.1.war from repo.jenkins-ci.org failed: Read 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/DependencyResolutionException
我的pom.xml文件看起来像这样
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>analysis-pom</artifactId>
<version>1.65</version>
<relativePath>../analysis-pom</relativePath>
</parent>
<artifactId>warnings</artifactId>
<packaging>hpi</packaging>
<name>Warnings Plug-in</name>
<version>4.58-SNAPSHOT</version>
<url>http://wiki.jenkins-ci.org/x/G4CGAQ</url>
<description>This plug-in reads the compiler warnings from the console log file and generates a trend report.</description>
<licenses>
<license>
<name>MIT license</name>
<comments>All source code is under the MIT license.</comments>
</license>
<license>
<name>LGPL</name>
<comments>All icons are made by Carlitus (Carles Carbonell Bernado) and are under the LGPL.</comments>
</license>
<license>
<name>BSD license</name>
<comments>All YUI source code is under the BSD license. Duke, the Java mascot also is under the BSD license.</comments>
</license>
<license>
<name>Scala License</name>
<url>http://www.scala-lang.org/license.html</url>
<comments>Scala icons are made by converting of http://www.scala-lang.org/resources/img/smooth-spiral.png</comments>
</license>
<license>
<name>Creative Commons Attribution 3.0</name>
<url>https://creativecommons.org/licenses/by/3.0</url>
<comments>Go mascot and logo were designed by Renée French and are covered by the Creative Commons Attribution 3.0 license.</comments>
</license>
</licenses>
<dependencies>
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>analysis-core</artifactId>
<version>1.77</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>violations</artifactId>
<version>0.7.11</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.2</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-digester3</artifactId>
<version>3.2</version>
</dependency>
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>analysis-test</artifactId>
<version>1.18</version>
<scope>test</scope>
</dependency>
</dependencies>
<scm>
<connection>scm:git:git://github.com/jenkinsci/${project.artifactId}-plugin.git</connection>
<developerConnection>scm:git:git@github.com:jenkinsci/${project.artifactId}-plugin.git</developerConnection>
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
<tag>HEAD</tag>
</scm>
<repositories>
<repository>
<id>repo.jenkins-ci.org</id>
<url>http://repo.jenkins-ci.org/public/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>repo.jenkins-ci.org</id>
<url>http://repo.jenkins-ci.org/public/</url>
</pluginRepository>
</pluginRepositories>
</project>
我在ubuntu 14.04上。我使用sudo apt-get install maven安装了maven。
我正在[https://wiki.jenkins-ci.org/display/JENKINS/Warnings+Plugin][1]之后编写一个新的解析器。
[1]:https://wiki.jenkins-ci.org/display/JENKINS/Warnings+Plugin并按照那里给出的步骤进行操作。
答案 0 :(得分:0)
我试图浏览你用来下载詹金斯战争的回购:
http://repo.jenkins-ci.org/public/
服务器难以响应。试试看: http://repo.jenkins-ci.org/public/com/
所以,是的,这是一个超时问题 也许是暂时的,也许是永久的...我不知道。 无论如何,你有三个解决方案:
稍后再试一次
在pom.xml中配置存在工件的另一个mvn存储库
从其他网站下载战争(例如:https://mvnrepository.com/artifact/org.jenkins-ci.main/jenkins-war/1.625.1) 并将其放入您的maven本地存储库。