izpack-maven-plugin默认不包含本机库 [英] izpack-maven-plugin is not including native libraries by default

查看:89
本文介绍了izpack-maven-plugin默认不包含本机库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的安装XML文件中指定了标准的快捷方式生成本机:

I have specified the standard shortcut-generating natives in my installation XML file:

<natives>
    <native type="izpack" name="ShellLink.dll"/>
    <native type="izpack" name="ShellLink_x64.dll"/>
    <native type="izpack" name="WinSetupAPI.dll"/>
    <native type="izpack" name="WinSetupAPI_x64.dll"/>
</natives>

但是,当我运行izpack:izpack并运行生成的jar时,它挂在shortcutPanel上,提示无法找到该库.当我将.dll复制到同一目录中时,它会起作用.

However, when I run izpack:izpack and run the resultant jar, it hangs on the shortcutPanel saying it can't locate the library. When I copy the .dll's into the same directory it works.

您知道如何指定文件包含在最终jar中吗?

Any idea how I can specify that the files be included into the final jar?

推荐答案

对于IzPack 4,您不得在此处使用包装元素,只需使用以下内容即可:

for IzPack 4 you must not use a wrapper element here, just use the following:

<native type="izpack" name="ShellLink.dll"/>
<native type="izpack" name="ShellLink_x64.dll"/>
<native type="izpack" name="WinSetupAPI.dll"/>
<native type="izpack" name="WinSetupAPI_x64.dll"/>

这也记录在installation.dtd中:

This is also documented in the installation.dtd:

<!ELEMENT installation (info, packaging?, properties?, variables?,dynamicvariables?,conditions?,installerrequirements?, guiprefs?, locale, resources?, panels, listeners?, packs, jar*, native*)>

<!ELEMENT installation (info, packaging?, properties?, variables?,dynamicvariables?,conditions?,installerrequirements?, guiprefs?, locale, resources?, panels, listeners?, packs, jar*, native*)>

对于IzPack 5,dtd已更改为您上面使用的语法.

For IzPack 5 the dtd has been changed to the syntax you are using above.

这篇关于izpack-maven-plugin默认不包含本机库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆