1
我建立一個Maven +第谷Eclipse RCP應用程序,我想該產品被壓縮之前,壓縮和之前在OS X上運行我的協同設計的maven-EXEC-插件二進制文件被壓縮以便在版本庫/二進制文件中分發Maven的Maven的EXEC-插件運行
所以我想這步應該是編譯和包裝之間的某處,但我有一個很難僅僅通過試驗和錯誤。 哪個生命週期構建階段應該把它綁?
我的maven-EXEC-插件看起來像這樣的時刻(應用程序被codesigned但是拉鍊已經被創建之後):
<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>
我剛試過,但作爲MyApp.app文件不存在失敗 –