Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Issues with Mac Signing

Hi Gunnar,

Looks like a bug with the Mac signing plugin. When I changed your pom.xml line:

    <signFile>${project.build.directory}/products/org.eclipse.gyrex.products.server/macosx/cocoa/x86_64/Gyrex.app</signFile>


Notice the "Gyrex.app" part. If I changed it to lowercase gyrex.app it works.


Also I'd say an additional bug against our docs this time. You need to ensure that for the tycho-p2-director-plugin you make sure the execution for " archive-products" is moved to the "pre-integration-test" phase otherwise your products will be signed after the final zips are made (meaning the final zips won't be signed).

For example...

                     <execution>
                        <id>archive-products</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>archive-products</goal>
                        </goals>
                        <configuration>
                            <formats>
                                <win32>zip</win32>
                                <linux>tar.gz</linux>
                                <macosx>tar.gz</macosx>
                            </formats>
                        </configuration>
                    </execution>


Hope this helps,


Thanh


On 16/08/13 04:16 PM, Gunnar Wagenknecht wrote:
Hi,

I tried using the macsigner plug-in today but I'm running into an error.
https://hudson.eclipse.org/gyrex/job/gyrex-maintenance/5/console

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6:50.444s
[INFO] Finished at: Fri Aug 16 16:01:27 EDT 2013
[INFO] Final Memory: 103M/1385M
[INFO] ------------------------------------------------------------------------
[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.cbi.maven.plugins:eclipse-macsigner-plugin:1.0.4:sign (sign) on project gyrex-server: Could not sign artifact /jobs/genie.rt.gyrex/gyrex-maintenance/workspace/gyrex-releng/products/target/products/org.eclipse.gyrex.products.server/macosx/cocoa/x86_64/Gyrex.app
[DEBUG] Closing connection to remote
[ERROR] Failed to execute goal org.eclipse.cbi.maven.plugins:eclipse-macsigner-plugin:1.0.4:sign (sign) on project gyrex-server: Could not sign artifact /jobs/genie.rt.gyrex/gyrex-maintenance/workspace/gyrex-releng/products/target/products/org.eclipse.gyrex.products.server/macosx/cocoa/x86_64/Gyrex.app -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.cbi.maven.plugins:eclipse-macsigner-plugin:1.0.4:sign (sign) on project gyrex-server: Could not sign artifact /jobs/genie.rt.gyrex/gyrex-maintenance/workspace/gyrex-releng/products/target/products/org.eclipse.gyrex.products.server/macosx/cocoa/x86_64/Gyrex.app
    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:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    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 sign artifact /jobs/genie.rt.gyrex/gyrex-maintenance/workspace/gyrex-releng/products/target/products/org.eclipse.gyrex.products.server/macosx/cocoa/x86_64/Gyrex.app
    at org.eclipse.cbi.maven.plugins.macsigner.SignMojo.signArtifact(SignMojo.java:422)
    at org.eclipse.cbi.maven.plugins.macsigner.SignMojo.execute(SignMojo.java:132)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 19 more

For some reasons, the signing fails but I can't find a hint how to correct the problem.

-Gunnar


_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cbi-dev



Back to the top