2017-04-26 97 views
1

我是IntelliJ-maven-java編程的新手,我想爲我的程序製作Mac OS的dmg文件。如何從IntelliJ-maven項目中爲OSX製作dmg文件?

我的開發環境是Ubuntu-IntelliJ-Java-Maven。當我搜索時,有一些插件能夠從intelliJ製作dmg文件,但實際上它對我來說非常複雜。

你能告訴我這個過程的順序嗎? 在此先感謝。

此外,當我運行mvn installappbundle-maven-pluginhttps://github.com/federkasten/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代碼。

<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) –

回答

0

使用的Java打包​​按照本教程http://centerkey.com/mac/java

+0

這些是Mac的說明。 OP正在使用Ubuntu –

+0

阿哈....!這是正確的......它很傷心...... –

相關問題