![]() |
|
|
Issue Type:
|
Bug
|
Assignee:
|
Unassigned |
Attachments:
|
build.log |
Created:
|
18/Oct/12 1:09 PM
|
Description:
|
Running the jnlp-single goal copies dependent jar files into target/jnlp. In at least some cases, the copy is corrupted in some way that results in a failure when pack200 is run. See the stack trace below (full mvn output is in the attachment). I've seen behavior like this before with Maven (but not this plugin) where the root cause ends up being that the file-copy operation was done in "text mode" instead of "binary mode", so maybe that's what's going on here. However, that wouldn't explain why this problem doesn't seem to happen all the time for me.
In any case, after the failure, when I do "jar tf" on target/jnlp/unprocessed_xxx.jar, I get the same error (confirms that file is not a valid jar file). The "jar tf" on the source jar file (~/.m2/repository/.../xxx.jar) works fine.
[ERROR] Failed to execute goal org.codehaus.mojo.webstart:webstart-maven-plugin:1.0-alpha-2:jnlp-single (default) on project remotevcd-service: Failure to run the plugin: Error in unpack200: duplicate entry: META-INF/maven/com.vmware.vcloud/common-core/pom.xml -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo.webstart:webstart-maven-plugin:1.0-alpha-2:jnlp-single (default) on project remotevcd-service: Failure to run the plugin:
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failure to run the plugin:
at org.codehaus.mojo.webstart.AbstractJnlpMojo.execute(AbstractJnlpMojo.java:289)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: Error in unpack200
at com.sun.tools.apache.ant.pack200.Unpack200Task.extract(Unpack200Task.java:82)
at org.apache.tools.ant.taskdefs.Unpack.execute(Unpack.java:119)
at org.codehaus.mojo.webstart.Pack200.unpackJars(Pack200.java:82)
at org.codehaus.mojo.webstart.AbstractBaseJnlpMojo.signOrRenameJars(AbstractBaseJnlpMojo.java:601)
at org.codehaus.mojo.webstart.AbstractJnlpMojo.execute(AbstractJnlpMojo.java:262)
... 21 more
Caused by: java.util.zip.ZipException: duplicate entry: META-INF/maven/com.vmware.vcloud/common-core/pom.xml
at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:175)
at java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:92)
at com.sun.java.util.jar.pack.NativeUnpack.writeEntry(NativeUnpack.java:293)
at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:196)
at com.sun.java.util.jar.pack.NativeUnpack.run(NativeUnpack.java:217)
at com.sun.java.util.jar.pack.UnpackerImpl.unpack(UnpackerImpl.java:104)
at com.sun.tools.apache.ant.pack200.Unpack200Task.extract(Unpack200Task.java:77)
... 25 more
|
Environment:
|
Windows
|
Project:
|
Maven 2.x Webstart Plugin
|
Priority:
|
Major
|
Reporter:
|
Nathaniel Mishkin
|
|
|
|
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
|
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email