Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWF-Files should not be interpreted as Bundles #137

Open
initialflame opened this issue Oct 5, 2018 · 0 comments
Open

SWF-Files should not be interpreted as Bundles #137

initialflame opened this issue Oct 5, 2018 · 0 comments

Comments

@initialflame
Copy link

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.(Jar.java:79)
at aQute.bnd.osgi.Jar.(Jar.java:99)
at org.reficio.p2.utils.BundleUtils.isBundle(BundleUtils.java:79)
... 28 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:225)
at java.util.zip.ZipFile.(ZipFile.java:155)
at java.util.zip.ZipFile.(ZipFile.java:169)
at aQute.bnd.osgi.ZipResource.build(ZipResource.java:49)
... 32 more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant