-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Ubuntu 14.04, Maven 3.2.1, Jenkins 1.532 (Fails in current as well.)
While working on changes to the m2release plugin, I found that the .hli file being produced by the maven-hpi-plugin contained paths to .pom files in the Libraries section. This only became an issue when I moved the m2release plugin to the 1.532 version of Jenkins core as the updated ClassPluginStrategy class used the AntClassLoader and no longer the URLClassloader to load dependencies. Attempting to start Jenkins using mvn hpi:run resulted in a java.util.zip.ZipException.
I fixed the issue and submitted a pull request to the maven-hpi-plugin project: https://github.com/jenkinsci/maven-hpi-plugin/pull/10
Repro:
1. Update the m2release plugin pom.xml parent to version 1.532.
2. Set the maven-plugin dependency to version 2.0.
3. Execute a >mvn clean hpi:run
Result:
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:215)
at java.util.zip.ZipFile.<init>(ZipFile.java:145)
at java.util.jar.JarFile.<init>(JarFile.java:153)
at java.util.jar.JarFile.<init>(JarFile.java:117)
at org.apache.tools.ant.AntClassLoader.addPathFile(AntClassLoader.java:492)
at hudson.ClassicPluginStrategy$AntClassLoader2.addPathFiles(ClassicPluginStrategy.java:665)
at hudson.ClassicPluginStrategy.createClassLoader(ClassicPluginStrategy.java:227)
at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:202)
at hudson.PluginManager$1$3$1.run(PluginManager.java:238)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:899)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
- is duplicated by
-
JENKINS-42970 ClassicPluginWrapper blows up with hpl
- Resolved
- links to