gpt4 book ai didi

java - 如何从 IntelliJ-maven 项目为 OSX 制作 dmg 文件?

转载 作者:太空宇宙 更新时间:2023-11-04 11:32:47 25 4
gpt4 key购买 nike

我是 IntelliJ-maven-java 编程新手,我想为 Mac OS 制作 dmg 文件作为我的程序的结果。

我的开发环境是Ubuntu-IntelliJ-Java-Maven。据我搜索,有一些插件可以从 intelliJ 制作 dmg 文件,但对我来说实际上非常复杂。

您能告诉我这个过程的顺序吗? 提前致谢。

此外,当我使用来自 https://github.com/federkasten/appbundle-maven-pluginappbundle-maven-plugin 运行 mvn install 时,以下消息来自命令。 如果我做了什么蠢事,你能告诉我哪一部分很尴尬吗?

[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>
<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>

最佳答案

关于java - 如何从 IntelliJ-maven 项目为 OSX 制作 dmg 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43624758/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com