我正在尝试使用Jenkins作业将我的工件上传到Nexus存储库。我为Maven配置了pom.xml
和settings.xml
。以下是按目标deploy
执行作业后我得到的错误,即mvn deploy
:
Executing Maven: -B -f
/appl/tibco/cicd/apache-maven-3.2.5/bin/pom.xml -s
/appl/tibco/cicd/apache-maven-3.2.5/conf/settings.xml deploy -X
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
2014-12-14T18:29:23+01:00) Maven home:
/appl/tibco/cicd/apache-maven-3.2.5 Java version: 1.7.0, vendor: IBM
Corporation Java home: /appl/tibco/cicd/java/1.7.0 Default locale:
en_US, platform encoding: ISO8859-1 OS name: "aix", version: "6.1",
arch: "ppc64", family: "unix" [INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from
/appl/tibco/cicd/apache-maven-3.2.5/conf/settings.xml [DEBUG] Reading
user settings from
/appl/tibco/cicd/apache-maven-3.2.5/conf/settings.xml [INFO] Scanning
for projects... [INFO]
[INFO]
------------------------------------------------------------------------ [INFO] Building Maven Default Project 1.0-SNAPSHOT [INFO]
------------------------------------------------------------------------ [WARNING] The POM for
org.apache.maven.plugins:maven-install-plugin:jar:2.2 is missing, no
dependency information available [INFO]
------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
------------------------------------------------------------------------ [INFO] Total time: 2.215 s [INFO] Finished at:
2016-06-05T23:34:15+02:00 [INFO] Final Memory: 39M/256M [INFO]
------------------------------------------------------------------------ Waiting for Jenkins to finish collecting data [ERROR] Plugin
org.apache.maven.plugins:maven-install-plugin:2.2 or one of its
dependencies could not be resolved: Failure to find
org.apache.maven.plugins:maven-install-plugin:jar:2.2 in
https://p-nexus.nl.eu.abnamro.com:8443/nexus/content/repositories/BPM-releases was cached in the local repository, resolution will not be
reattempted until the update interval of nexus has elapsed or updates
are forced -> [Help 1]
org.apache.maven.plugin.PluginResolutionException: Plugin
org.apache.maven.plugins:maven-install-plugin:2.2 or one of its
dependencies could not be resolved: Failure to find
org.apache.maven.plugins:maven-install-plugin:jar:2.2 in
https://p-nexus.nl.eu.abnamro.com:8443/nexus/content/repositories/BPM-releases was cached in the local repository, resolution will not be
reattempted until the update interval of nexus has elapsed or updates
are forced at
org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:133)
at
org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:150)
at
答案 0 :(得分:0)
您可以尝试强制清理您的maven回购: mvn clean install -U
然后重试上传