Question

I am trying to code sign my Eclipse RCP application using a Maven+Tycho build system.

I added this piece of code to my pom.xml in order to sign the .app that gets created on the OS X box:

                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>exec-maven-plugin</artifactId>
                    <version>1.2.1</version>
                    <executions>
                      <execution>
                <id>exec</id>
                <phase>package</phase>
                        <goals>
                          <goal>exec</goal>
                        </goals>
                      </execution>
                    </executions>
                    <configuration>
                      <executable>codesign</executable>
                      <workingDirectory>/tmp</workingDirectory>
                      <arguments>
                        <argument>-s</argument>
                        <argument>"My Developer ID"</argument>
                        <argument>-vvv</argument>
                        <argument>${project.build.directory}/products/${product-id}/macosx/cocoa/x86/MyApp/MyApp.app"</argument>
                      </arguments>
                    </configuration>
                  </plugin>

But it keeps giving me this error:

"My Developer ID": no identity found

I read about unlocking the keychain but it really had no effect on my build. And yes, I'm running the build as mvn clean install from the same account owning that certificate.

Is there anyone who managed to solve this issue? Thanks!

Was it helpful?

Solution

Thanks to Martin Ellis, removing the double quotes around my developer ID did the trick.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top