私は Maven+Tycho Eclipse RCP アプリケーションを構築しています。製品が zip に圧縮される前、およびリポジトリ/バイナリで配布するためにバイナリが圧縮される前に、OS X でコードサイン maven-exec-plugin を実行したいと考えています。
ということで、コンパイルとパッケージングの中間くらいがいいのかなと思いますが、試行錯誤ばかりで苦労しています。どのライフサイクル ビルド フェーズに関連付ける必要がありますか?
現在、私の maven-exec-plugin は次のようになっています (アプリはコード署名されますが、zip が既に作成された後です)。
<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>