2010-11-14 37 views
2

本地庫我在安裝XML文件中指定的標準快捷生成當地人:的IzPack - Maven的插件不包括默認

<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和運行所產生的罐子,它掛在shortcutPanel上,說它找不到該庫。當我將.dll複製到相同的目錄中時,它可以正常工作。

任何想法如何指定文件被包含到最終的jar?

回答

3

爲的IzPack 4你不能在這裏使用一個包裝元素,只需使用以下命令:

<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也記載:

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

有關的IzPack 5該dtd已被更改爲上面使用的語法。

0

嘗試在你的pom.xml添加此

<!-- https://mvnrepository.com/artifact/org.codehaus.izpack/izpack-native --> 
<dependency> 
    <groupId>org.codehaus.izpack</groupId> 
    <artifactId>izpack-native</artifactId> 
    <version>5.0.9</version> 
</dependency> 
相關問題