我正在開發32位窗口,並使用appassembler來創建一個Java服務包裝程序集,它工作正常。但我還需要創建一個64位程序集以部署到開發服務器。在下面的配置中,我用64位代替了32位平臺,請參閱<includes>
部分。但它不再將包裝jar和dll放在lib文件夾中。如果我完全省略了包含,我會獲得linux,solaris,Mac OSX和Win32庫,但不支持win64。是在Windows 64位上的Java服務包裝破解的appassembler插件?
有沒有工作?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<version>1.1-SNAPSHOT</version>
<configuration>
<target>${project.build.directory}/appassembler</target>
<repositoryLayout>flat</repositoryLayout>
<defaultJvmSettings>
<initialMemorySize>256M</initialMemorySize>
<maxMemorySize>1024M</maxMemorySize>
</defaultJvmSettings>
<daemons>
<daemon>
<id>MyApp</id>
<mainClass>com.foo.AppMain</mainClass>
<platforms>
<platform>jsw</platform>
</platforms>
<generatorConfigurations>
<generatorConfiguration>
<generator>jsw</generator>
<includes>
<include>windows-x86-64</include>
</includes>
<configuration>
<property>
<name>set.default.REPO_DIR</name>
<value>../../repo</value>
</property>
</configuration>
</generatorConfiguration>
</generatorConfigurations>
</daemon>
</daemons>
</configuration>
<executions>
<execution>
<goals>
<goal>generate-daemons</goal>
<goal>create-repository</goal>
</goals>
</execution>
</executions>
</plugin>
+1悲傷但真實。 :( – Nishant 2011-05-06 10:16:18