在Jenkins中显示javadoc时出错

时间:2017-08-26 21:24:42

标签: jenkins

我正在借助这本书尝试Jenkins - " Jenkins - The Definitive Guide"

显示javadoc时出错:

$set

Java和Maven都安装在Jenkins运行的机器上。

我从命令行获得以下信息

[ERROR] Plugin org.apache.maven.plugins:maven-install-plugin:2.5.2 or 
one of its dependencies could not be resolved: Cannot access central 
(https://repo.maven.apache.org/maven2) in offline mode and the 
artifact org.apache.maven.plugins:maven-install-plugin:jar:2.5.2 has 
not been downloaded from it before. -> [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 Build step 'Invoke top-level Maven targets' marked build as failure

有任何提示可以解决这个问题吗?

--------------------- EDIT ------------------------- -

在最后一次评论后,我按照建议进行了更改,现在我收到了以下错误:

$ mvn -version
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_144, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.10.0-32-generic", arch: "amd64", family: "unix"

完成:失败

0 个答案:

没有答案