|
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
current |
Assignee:
|
Unassigned |
Attachments:
|
pom.xml |
Components:
|
plugin |
Created:
|
21/Aug/14 2:15 PM
|
Description:
|
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)
|
Environment:
|
Ubuntu 14.04, Maven 3.2.1, Jenkins 1.532 (Fails in current as well.)
|
Project:
|
Jenkins
|
Priority:
|
Major
|
Reporter:
|
Scott Hathaway
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.