2012-11-05 4 views
1

Maven + Tycho Eclipse RCP 애플리케이션을 구축 중이며 제품이 압축되기 전에 OSX에서 codesign maven-exec-plugin을 실행하고 싶습니다. 바이너리는 저장소/바이너리에서 배포를 위해 압축됩니다.Zip 패키징 전에 Maven-exec-plugin 실행

그래서 단계가 컴파일과 패키징 사이의 어딘가에 있어야한다고 생각하지만 시행 착오로 어려움을 겪고 있습니다. 어떤 라이프 사이클 빌드 단계를 사용해야합니까?

내 받는다는 - 간부 - 플러그인이 순간 (응용 프로그램이 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> 

답변

2

가 대신 실행 블록에서 준비-패키지 lifecylce 단계를 사용하여 패키지 수명주기 단계

+0

방금 ​​시도했지만 MyApp.app 파일이 아직 존재하지 않으므로 실패합니다. –