尝试使用 Alakai 插件将 Launch4j 集成到 Maven 项目中
我正在尝试将安装程序的生成集成为 Maven 编译过程的一部分。
我找到了Alakai的插件用于启动4j。我使用 Maven 创建了一个简单的 Hello World 应用程序。我尝试使用 Alakai 提供的配置示例,但是当我编译我的项目时,我得到:
执行目标失败 org.bluestemsoftware.open.maven.plugin:launch4j-plugin:1.5.0.0:launch4j (launch4j) 项目 Launch4j:失败 构建可执行文件;请核实 你的配置。应用程序罐子 不存在。 -> [帮助1]
不幸的是,Alakai 的文档有限,我无法通过谷歌搜索找到太多内容。
- 有谁知道 Launch4j config.xml 应该在哪里设置?是在项目内吗?它在单独的目录中吗?
- 我需要使用组装插件吗?
- 我已经在我的电脑上安装了Launch4j。我需要在 pom.xml 中指定安装目录吗?如果是的话怎么办?
- 有人可以分享可操作的 pom.xml 示例/示例吗?
谢谢。
I am trying to integrate the generation of an installer as part of a maven compilation process.
I have found Alakai's plugin for Launch4j. I have create a simple Hello World application using Maven. I have tried to use configuration examples provided by Alakai, but when I compile my project, I get:
Failed to execute goal
org.bluestemsoftware.open.maven.plugin:launch4j-plugin:1.5.0.0:launch4j
(launch4j) on project Launch4j: Failed
to build the executable; please verify
your configuration. Application jar
doesnt exist. -> [Help 1]
Unfortunately, Alakai's documentation is limited and I could not find much with Googling.
- Does anyone know where the Launch4j config.xml should be set? Is it within the project? Is it in a separate directory?
- Do I need to use the assembly plugin?
- I have installed Launch4j on my PC. Do I need to specify the installation directory in my pom.xml? If yes how?
- Does anyone have an operational pom.xml sample/example to share?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
或者,您可以省略 launch4j-plugin 上的“jar”标签并删除 shade-plugin 的额外配置,但请注意,这将用阴影 jar(带有嵌入式依赖项)替换流程的主 jar(不带嵌入式依赖项)依赖项),并且这个将安装在您的本地存储库上,或者如果需要的话在反应器中使用。
Alternatively, You can omit the 'jar' tag on launch4j-plugin and remove the extra configs of the shade-plugin, but be aware that this will replace the main jar of the flow (without embedded dependencies) by the shaded jar (with embedded dependencies), and this one will be installed on your local repo, or used in the reactor if needed.
有关如何定义shade插件的主类,请参见 http://maven.apache.org/plugins/maven-shade-plugin/examples/executable-jar.html。
For how to define the main class for the shade plugin, see http://maven.apache.org/plugins/maven-shade-plugin/examples/executable-jar.html.