【问题标题】:Maven and Tycho code signing on OS XOS X 上的 Maven 和 Tycho 代码签名
【发布时间】:2012-11-05 15:42:21
【问题描述】:

我正在尝试使用 Maven+Tycho 构建系统对我的 Eclipse RCP 应用程序进行代码签名。

我将这段代码添加到我的 pom.xml 以签署在 OS X 机器上创建的 .app:

                <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>

但它一直给我这个错误:

“我的开发者 ID”:找不到身份

我阅读了有关解锁钥匙串的信息,但它确实对我的构建没有影响。是的,我正在从拥有该证书的同一帐户以 mvn clean install 的形式运行构建。

有没有人设法解决了这个问题? 谢谢!

【问题讨论】:

  • 尝试删除开发者 ID 周围的引号?
  • 使用 '-X' 参数运行你的构建,你应该会看到被执行的确切命令。然后在 CLI 中运行它以查看问题所在。
  • @MartinEllis 删除双引号就可以了。
  • @RobertMunteanu 奇怪的是,使用双引号和 -X 它显示了我手动运行以对应用程序进行代码设计的命令行。但无论如何,删除它们还是有效果的。

标签: eclipse maven rcp codesign tycho


【解决方案1】:

感谢 Martin Ellis,删除我的开发者 ID 周围的双引号起到了作用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多