简体   繁体   中英

Jenkins build issue

I got the following error while running a Jenkins job

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project mosm-ui: Error unpacking file [/var/lib/jenkins/.m2/repository/com/cisco/xmp/wap/xmpweb/2.0.5/xmpweb-2.0.5.war]to [/var/lib/jenkins/jobs/MOS_2.3/workspace/target/war/work/com.cisco.xmp.wap/xmpweb]: chmod exit code was: 127 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project mosm-ui: Error unpacking file [/var/lib/jenkins/.m2/repository/com/cisco/xmp/wap/xmpweb/2.0.5/xmpweb-2.0.5.war]to [/var/lib/jenkins/jobs/MOS_2.3/workspace/target/war/work/com.cisco.xmp.wap/xmpweb]

Caused by: org.apache.maven.plugin.MojoExecutionException: Error unpacking file [/var/lib/jenkins/.m2/repository/com/cisco/xmp/wap/xmpweb/2.0.5/xmpweb-2.0.5.war]to [/var/lib/jenkins/jobs/MOS_2.3/workspace/target/war/work/com.cisco.xmp.wap/xmpweb]

The size of the xmpweb-2.0.5.war file is 209MB.

JDK - 1.7.0_55 , Maven version - 3.2.1. OS - RHEL 6.4

Appreciate your help in advance.

You might not be passing your PATH variable correctly. Look for something that looks like :PATH and make it :$PATH

see this similar issue here and stop thinking of it as a maven failure, but rather a bad call to chmod.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM