Hello,
I following the Building Jenkins
<https://wiki.jenkins-ci.org/display/JENKINS/Building+Jenkins> page and I
am getting error when executing mvn -Plight-test install.
Here is the part of mvn build debug output. Looks like the enforcer plugin
is trying to read a jar file. It doest exist in the .m2.
Could someone help me fix this?
*$mvn -X -e -Plight-test install*
[DEBUG] Adding failure due to exception
org.apache.maven.enforcer.rule.api.EnforcerRuleException: Error while
reading jar file
at
org.apache.maven.plugins.enforcer.EnforceBytecodeVersion.isBadArtifact(EnforceBytecodeVersion.java:246)
<<omitted for brevity >>
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip
<<omitted for brevity >>
at
org.apache.maven.plugins.enforcer.EnforceBytecodeVersion.isBadArtifact(EnforceBytecodeVersion.java:201)
... 25 more
[WARNING] Rule 2: org.apache.maven.plugins.enforcer.EnforceBytecodeVersion
failed with message:
Error while reading jar file
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Jenkins main module ............................... SUCCESS [ 3.434
s]
[INFO] Jenkins CLI ....................................... SUCCESS [ 9.237
s]
[INFO] Jenkins core ...................................... FAILURE [ 1.709
s]
[INFO] Jenkins war ....................................... SKIPPED
[INFO] Test harness for Jenkins and plugins .............. SKIPPED
[INFO] Jenkins plugin POM ................................ SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 17.103 s
[INFO] Finished at: 2014-07-22T03:32:39+05:30
[INFO] Final Memory: 33M/474M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-enforcer-plugin:1.0.1:enforce (default) on
project jenkins-core: Some Enforcer rules have failed. Look above for
specific messages explaining why the rule failed. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-enforcer-plugin:1.0.1:enforce (default)
on project jenkins-core: Some Enforcer rules have failed. Look above for
specific messages explaining why the rule failed.
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
<<omitted for brevity >>
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Some Enforcer
rules have failed. Look above for specific messages explaining why the rule
failed.
at
org.apache.maven.plugins.enforcer.EnforceMojo.execute(EnforceMojo.java:224)
<<omitted for brevity >>
... 19 more
[ERROR]
[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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :jenkins-core
*$mvn -Plight-test install*
<<omitted for brevity >>
[INFO] Adding ignore: org.eclipse.jetty.spdy.*
[WARNING] Rule 2: org.apache.maven.plugins.enforcer.EnforceBytecodeVersion
failed with message:
Error while reading jar file
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Jenkins main module ............................... SUCCESS [ 3.070
s]
[INFO] Jenkins CLI ....................................... SUCCESS [ 8.550
s]
[INFO] Jenkins core ...................................... FAILURE [ 1.353
s]
[INFO] Jenkins war ....................................... SKIPPED
[INFO] Test harness for Jenkins and plugins .............. SKIPPED
[INFO] Jenkins plugin POM ................................ SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 15.827 s
[INFO] Finished at: 2014-07-22T03:40:28+05:30
[INFO] Final Memory: 36M/445M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-enforcer-plugin:1.0.1:enforce (default) on
project jenkins-core: Some Enforcer rules have failed. Look above for
specific messages explaining why the rule failed. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-enforcer-plugin:1.0.1:enforce (default)
on project jenkins-core: Some Enforcer rules have failed. Look above for
specific messages explaining why the rule failed.
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
<<omitted for brevity >>
Caused by: org.apache.maven.plugin.MojoExecutionException: Some Enforcer
rules have failed. Look above for specific messages explaining why the rule
failed.
at
org.apache.maven.plugins.enforcer.EnforceMojo.execute(EnforceMojo.java:224)
<<omitted for brevity >>
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR] mvn <goals> -rf :jenkins-core
Regards,
Selva
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.