私はIntelliJ-maven-javaプログラミングの新機能であり、私のプログラムの結果としてMac OS用のdmgファイルを作りたいと思っています。IntelliJ-mavenプロジェクトからOSXのdmgファイルを作成するにはどうすればよいですか?
私の開発環境はUbuntu-IntelliJ-Java-Mavenです。私が検索したように、inteliJからdmgファイルを作成できるプラグインがいくつかありますが、実際は私にとっては非常に複雑です。
私はプロセスの順番を親切に教えていただけますか? ありがとうございます。
さらに、mvn install
をからhttps://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コードです。このチュートリアル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>
http://stackoverflow.com/questions/30828620/create-mac-dmg-file-from-java – CrazyCoder
dmg Mac OS Xファイルをビルドする方法(Mac以外のプラットフォームの場合)?] (http://stackoverflow.com/questions/286419/how-to-build-a-dmg-mac-os-x-file-on-a-non-mac-platform) –