2017-04-26 13 views
1

IntelliJ-maven-java 프로그래밍을 처음 접했고, 프로그램 결과로 Mac OS 용 dmg 파일을 만들고 싶습니다.IntelliJ-maven 프로젝트에서 OSX 용 dmg 파일을 만들려면 어떻게해야합니까?

내 개발 환경은 Ubuntu-IntelliJ-Java-Maven입니다. 필자가 검색 한 것처럼 intelliJ에서 dmg 파일을 만들 수있는 플러그인이 있지만 실제로는 매우 복잡합니다.

친절하게 처리 순서를 알려주시겠습니까? 미리 감사드립니다.

mvn installhttps://github.com/federkasten/appbundle-maven-plugin에서 appbundle-maven-plugin으로 실행하면 다음 메시지가 표시됩니다. 내가 어리석은 짓을했다면 어색한 부분을 말해 줄 수 있습니까?

[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 0.623 s 
[INFO] Finished at: 2017-04-26T14:16:36+09:00 
[INFO] Final Memory: 12M/240M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal sh.tak.appbundler:appbundle-maven- 
plugin:1.2.0:bundle (default) on project qupath: Execution default of goal sh.tak.appbundler:appbundle-maven-plugin:1.2.0:bundle failed. NullPointerException -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] 

이것은 내 maven-plugin 코드입니다. 이 튜토리얼 http://centerkey.com/mac/java에 따라

<plugin> 
    <groupId>sh.tak.appbundler</groupId> 
     <artifactId>appbundle-maven-plugin</artifactId> 
      <version>1.2.0</version> 
      <configuration> 
       <mainClass>src.main.java.qupath.QuPath</mainClass> 
       <jrePath>/usr/lib/jvm/java-8-oracle/jre</jrePath> 
       <generateDiskImageFile>true</generateDiskImageFile> 
      </configuration> 
      <executions> 
       <execution> 
        <phase>package</phase> 
        <goals> 
         <goal>bundle</goal> 
        </goals> 
       </execution> 
      </executions> 
     </plugin> 
+0

http://stackoverflow.com/questions/30828620/create-mac-dmg-file-from-java – CrazyCoder

+0

dmg Mac OS X 파일을 만드는 방법 (Mac 플랫폼이 아닌 경우)?] (http://stackoverflow.com/questions/286419/how-to-build-a-dmg-mac-os-x-file-on-a-non-mac-platform) –

답변