p2-maven-plugin
p2-maven-plugin copied to clipboard
SWF-Files should not be interpreted as Bundles
I have a Problem with a war-file that i want to convert to a Bundle. In this war-file is a swf included. I want to keep this file in the target bundle. It seems to be, that a swf file is interpreted like a jar file and p2-maven-plugin wants to open it...
swf-files should not opened like zip-file, but copied to target file. Or maybe it can be excluded.
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.reficio:p2-maven-plugin:1.3.0:site failed: java.lang.RuntimeException: The JAR/ZIP file ({path to file}.swf) seems corrupted, error: error in opening zip file
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:148)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: The JAR/ZIP file ({path to file}.swf) seems corrupted, error: error in opening zip file
at org.reficio.p2.P2Mojo.execute(P2Mojo.java:250)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
... 21 more
Caused by: java.lang.RuntimeException: The JAR/ZIP file ({path to file}.swf) seems corrupted, error: error in opening zip file
at org.reficio.p2.utils.BundleUtils.isBundle(BundleUtils.java:82)
at org.reficio.p2.P2Validator.validateArtifactConfig(P2Validator.java:46)
at org.reficio.p2.P2Validator.validateBundleRequest(P2Validator.java:35)
at org.reficio.p2.P2Mojo.bundleArtifact(P2Mojo.java:477)
at org.reficio.p2.P2Mojo.processTransitiveArtifacts(P2Mojo.java:329)
at org.reficio.p2.P2Mojo.processArtifacts(P2Mojo.java:290)
at org.reficio.p2.P2Mojo.execute(P2Mojo.java:243)
... 22 more
Caused by: java.util.zip.ZipException: The JAR/ZIP file ({path to file}.swf) seems corrupted, error: error in opening zip file
at aQute.bnd.osgi.ZipResource.build(ZipResource.java:64)
at aQute.bnd.osgi.ZipResource.build(ZipResource.java:43)
at aQute.bnd.osgi.Jar.