Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] eclipse-jarsigner-plugin-1.2.0 breaks EMF Facet build

Thanks Grégoire for the feedback. 1.2.0-SNAPSHOT is still not stable enough to be use on production. For for stable builds (I suppose Mars RC4) please stay with the 1.1.2 which has been release few weeks ago.

In the meantime, I will check what the 1.2.0-SNAPSHOT and fix the issue.

Thanks
Mikael

Le 11 juin 2015 à 12:36, Grégoire Dupé <gdupe@xxxxxxxxxxxxxxxx> a écrit :

Hello,
 
I’ve switch the EMF Facet build [1] to the version 1.2.0 of eclipse-jarsigner-plugin. This cause build failure that I don’t understand : “unable to open jar file”.
 
I suppose that I miss something but google doesn’t give me any clue. 
 
Here is the error message :
 
[INFO] --- eclipse-jarsigner-plugin:1.2.0-SNAPSHOT:sign (sign) @ org.eclipse.emf.facet.aggregate.doc ---
[DEBUG] Configuring mojo org.eclipse.cbi.maven.plugins:eclipse-jarsigner-plugin:1.2.0-SNAPSHOT:sign from plugin realm ClassRealm[plugin>org.eclipse.cbi.maven.plugins:eclipse-jarsigner-plugin:1.2.0-SNAPSHOT, parent: sun.misc.Launcher$AppClassLoader@3ad6a0e0]
[DEBUG] Configuring mojo 'org.eclipse.cbi.maven.plugins:eclipse-jarsigner-plugin:1.2.0-SNAPSHOT:sign' with basic configurator -->
[DEBUG]   (f) continueOnFail = false
[DEBUG]   (f) excludeInnerJars = false
[DEBUG]   (f) project = MavenProject: org.eclipse.emft:org.eclipse.emf.facet.aggregate.doc:1.0.1-SNAPSHOT @ /opt/buildhomes/hudsonBuild/workspace/emffacet-nightly/org.eclipse.emf.facet.main/org.eclipse.emf.facet.aggregate.doc/pom.xml
[DEBUG]   (f) retryLimit = 3
[DEBUG]   (f) retryTimer = 30
[DEBUG]   (f) signerUrl = http://build.eclipse.org:31338/sign
[DEBUG]   (f) skip = false
[DEBUG]   (f) workdir = /opt/buildhomes/hudsonBuild/workspace/emffacet-nightly/org.eclipse.emf.facet.main/org.eclipse.emf.facet.aggregate.doc/__target__
[DEBUG] -- end configuration --
[INFO] [Thu Jun 11 04:34:27 EDT 2015] Signing JAR '/opt/buildhomes/hudsonBuild/workspace/emffacet-nightly/org.eclipse.emf.facet.main/org.eclipse.emf.facet.aggregate.doc/__target__/org.eclipse.emf.facet.aggregate.doc-1.0.1-SNAPSHOT.jar'...
[DEBUG] [Thu Jun 11 04:34:27 EDT 2015] Sending '/opt/buildhomes/hudsonBuild/workspace/emffacet-nightly/org.eclipse.emf.facet.main/org.eclipse.emf.facet.aggregate.doc/__target__/org.eclipse.emf.facet.aggregate.doc-1.0.1-SNAPSHOT.jar' for signing to 'http://build.eclipse.org:31338/sign'
[DEBUG] [Thu Jun 11 04:34:28 EDT 2015] Signing server replied with: 'HTTP/1.1 500 Codesign tool(running on: build,456) exit status: 1.'
[DEBUG] [Thu Jun 11 04:34:28 EDT 2015] Signing server failed by returning content 'jarsigner: unable to open jar file: /home/data/users/genie/signing/httpd/upload/phpzziD8L
 
 
Error 500: Codesign tool(running on: build,456) exit status: 1.'
[DEBUG] [Thu Jun 11 04:34:28 EDT 2015] Unable to sign '/opt/buildhomes/hudsonBuild/workspace/emffacet-nightly/org.eclipse.emf.facet.main/org.eclipse.emf.facet.aggregate.doc/__target__/org.eclipse.emf.facet.aggregate.doc-1.0.1-SNAPSHOT.jar' on 'http://build.eclipse.org:31338/sign'. Will retry (1 / 3) in 30 SECONDS...
 
I’ve added the option “continueOnFail=true”, this cause “tycho-pack200b-plugin:0.19.0:pack” failing immediately after the signing step : 
 
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho.extras:tycho-pack200b-plugin:0.19.0:pack (pack200-pack) on project org.eclipse.emf.facet.aggregate.doc: Could not pack200 pack jar file /opt/buildhomes/hudsonBuild/workspace/emffacet-nightly/org.eclipse.emf.facet.main/org.eclipse.emf.facet.aggregate.doc/__target__/org.eclipse.emf.facet.aggregate.doc-1.0.1-SNAPSHOT.jar
[DEBUG] Closing connection to remote
[ERROR] Failed to execute goal org.eclipse.tycho.extras:tycho-pack200b-plugin:0.19.0:pack (pack200-pack) on project org.eclipse.emf.facet.aggregate.doc: Could not pack200 pack jar file /opt/buildhomes/hudsonBuild/workspace/emffacet-nightly/org.eclipse.emf.facet.main/org.eclipse.emf.facet.aggregate.doc/__target__/org.eclipse.emf.facet.aggregate.doc-1.0.1-SNAPSHOT.jar: invalid CEN header (bad signature) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho.extras:tycho-pack200b-plugin:0.19.0:pack (pack200-pack) on project org.eclipse.emf.facet.aggregate.doc: Could not pack200 pack jar file /opt/buildhomes/hudsonBuild/workspace/emffacet-nightly/org.eclipse.emf.facet.main/org.eclipse.emf.facet.aggregate.doc/__target__/org.eclipse.emf.facet.aggregate.doc-1.0.1-SNAPSHOT.jar
        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:319)
        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:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        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: Could not pack200 pack jar file /opt/buildhomes/hudsonBuild/workspace/emffacet-nightly/org.eclipse.emf.facet.main/org.eclipse.emf.facet.aggregate.doc/__target__/org.eclipse.emf.facet.aggregate.doc-1.0.1-SNAPSHOT.jar
        at org.eclipse.tycho.extras.pack200.mojo.Pack200PackMojo.execute(Pack200PackMojo.java:81)
        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: java.util.zip.ZipException: invalid CEN header (bad signature)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:220)
        at java.util.zip.ZipFile.<init>(ZipFile.java:150)
        at java.util.jar.JarFile.<init>(JarFile.java:166)
        at java.util.jar.JarFile.<init>(JarFile.java:130)
        at org.eclipse.tycho.extras.pack200.Pack200Archiver.pack(Pack200Archiver.java:156)
        at org.eclipse.tycho.extras.pack200.mojo.Pack200PackMojo.execute(Pack200PackMojo.java:76)
        ... 21 more
 
I’m using Tycho 0.19.0.
I’ve tried to build with Java-1.7 and Java-1.8.
org.eclipse.emf.facet.aggregate.doc doesn’t contains any class file (documentation only).
 
Can anybody tell me what is my mistake ?
 
 
Regards,
Grégoire
_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cbi-dev


Back to the top