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!

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top