Je suis nouveau dans la programmation IntelliJ-maven-java, et je veux faire un fichier dmg pour Mac OS à la suite de mon programme.Comment puis-je créer un fichier dmg pour OSX à partir d'un projet IntelliJ-maven?
Mon environnement de développement est Ubuntu-IntelliJ-Java-Maven. Comme j'ai cherché, il y a quelques plugins qui sont capables de faire un fichier dmg depuis intelliJ, mais c'est en fait très compliqué pour moi.
Pourriez-vous me dire l'ordre du processus avec bonté? Merci d'avance. De plus, les messages suivants sont de la commande quand je cours mvn install
avec appbundle-maven-plugin
de https://github.com/federkasten/appbundle-maven-plugin. Si je faisais quelque chose de stupide, pourriez-vous me dire quelle partie est gênante?
[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]
et ceci est mon code 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>
http://stackoverflow.com/questions/30828620/create-mac-dmg-file-from-java – CrazyCoder
Copie possible de [Comment créer un fichier dmg Mac OS X (sur une plate-forme non-Mac)?] (http://stackoverflow.com/questions/286419/how-to-build-a-dmg-mac-os-x-file-on-a-non-mac-platform) –