Launch4j maven 插件无法在 64 位 Linux 机器上运行
我正在尝试使用 maven Launch4j 插件版本 1.5.0.1
当我在 Windows 盒子上构建 pom 时,没有问题(我的 Windows 盒子同时安装了 32 位和 64 位版本的 Java)。但是当我在我的 Linux 机器上构建 pom 时,我遇到了这个问题:
堆栈跟踪: org.apache.maven.lifecycle.LifecycleExecutionException:无法执行目标org.bluestemsoftware.open.maven.plugin:launch4j-plugin:1.5.01.1.....无法构建可执行文件;请验证您的配置
原因:net.sf.launch4j.BuilderException:net.sf.launch4j.ExecException:java.io.IOException:无法运行程序“/home/hudson/.m2/repository/org/bluestemsoftware/open/maven/plugin/launch4j-plugin/1.5.0.1/launch4j-plugin-1.5.0.1-workdir-linux/bin/windres”:java.IOException: error=2,没有这样的文件或目录
我做了很多挖掘,发现了这个:
http://alakai.org:8088/browse/LAUNCHPLUGIN-15
但是,任务仍然是open,所以我只能假设在使用 64 位 java 的 64 位 Linux 操作系统上没有针对此问题的修复。不幸的是,我的 linux 机器无法访问外部网络,因此安装 32 位 java 并不是一个好的选择。有谁知道任何其他可能的解决方法?
I am trying to use the maven Launch4j plugin version 1.5.0.1
When I build the pom on my windows box, there is no issue (my windows box has both 32-bit and 64-bit versions of Java installed). But when I build the pom on my linux box, I get this issue:
Stack trace:
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.bluestemsoftware.open.maven.plugin:launch4j-plugin:1.5.01.1..... Failed to build executable; please verify your configuration
Cause by: net.sf.launch4j.BuilderException: net.sf.launch4j.ExecException: java.io.IOException: Cannot run program "/home/hudson/.m2/repository/org/bluestemsoftware/open/maven/plugin/launch4j-plugin/1.5.0.1/launch4j-plugin-1.5.0.1-workdir-linux/bin/windres": java.IOException: error=2, No such file or directory
I did quite a bit of digging around and I found this:
http://alakai.org:8088/browse/LAUNCHPLUGIN-15
But, the task is still open, so I can only assume that there is no fix in place for this issue on a 64-bit Linux OS that uses 64-bit java. Unfortunately, my linux box cannot access an external network, so installing 32-bit java is not much of an option. Does anyone know of any other possible work-arounds?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
只需为您的发行版安装 ia32-libs 即可。在我的 ubuntu 机器上:
sudo apt-get install ia32-libs
Just install ia32-libs for your distrib. On my ubuntu machine:
sudo apt-get install ia32-libs
在最近的 x64 Ubuntu 发行版(从 14.04 LTS 开始,在 16.04 LTS 上测试)上,执行以下操作:
On recent x64 Ubuntu distributions (starting 14.04 LTS, tested on 16.04 LTS), do this:
对于 Fedora,安装 32 位版本的 openjdk-devel。 java-1.6.0-openjdk-devel.i686 或 java-1.7.0-openjdk-devel.i686。
...或...
如果无法访问网络,请在另一台计算机上使用 yumdownloader。
For Fedora, install the 32 bit version of openjdk-devel. java-1.6.0-openjdk-devel.i686 or java-1.7.0-openjdk-devel.i686.
... or ...
Use yumdownloader on a different machine if you can not reach the network.