我正在构建一个Maven+Tycho Eclipse RCP应用程序,我想在产品被压缩成zip和二进制文件被压缩成存储库/二进制文件分发之前,在OS X上运行我的codesign 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>发布于 2012-11-06 05:15:17
在执行块中使用prepare-package生命周期阶段,而不是包生命周期阶段。
https://stackoverflow.com/questions/13240075
复制相似问题