Windows 64 位上的 java 服务包装器的 appassembler 插件是否损坏?
我正在 32 位 Windows 上进行开发,并使用 appassembler 创建 java 服务包装器程序集,并且工作正常。但我还需要创建一个 64 位程序集以部署到开发服务器。在以下配置中,我已将 32 位平台替换为 64 位平台,请参阅
部分。但它不再将包装器 jar 和 dll 放在 lib 文件夹中。如果我完全省略包含,我会得到 linux、solaris、Mac OSX 和 Win32 库,但不会得到 win64。
有人能做到这一点吗?
<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>
I'm developing on 32bit windows and am using appassembler to create a java service wrapper assembly, and it works ok. But I need to also create a 64bit assembly for deployment to a dev server. In the following config I have substituted the 32bit platform with the 64bit, see the <includes>
section. But it no longer places the wrapper jar and dll in the lib folder. If I omit the includes completely, I get linux, solaris, Mac OSX and Win32 libraries, but no win64.
Anyone got this working?
<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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
该插件包含的 Java Service Wrapper 社区版本没有可用的 Windows 64 版本(必须从 购买http://wrapper.tanukisoftware.org/ 站点)。
The community version of the Java Service Wrapper included by the plugin does not have a Windows 64 version available (it must be purchased from the http://wrapper.tanukisoftware.org/ site).
有人已经构建了您可以下载 64 位 Windows 版本。或者您可以构建它你自己。
Someone has built the 64-bit Windows version that you can download. Or you can build it yourself.
看看http://yajsw.sourceforge.net/。
它试图兼容具有免费 64 位支持的 Java Service Wrapper 的重新实现。
Take a look at http://yajsw.sourceforge.net/.
It's trying to be compatible reimlementation of Java Service Wrapper that has free 64-bit support.