Windows 64 位上的 java 服务包装器的 appassembler 插件是否损坏?

发布于 2024-08-30 13:09:42 字数 2608 浏览 3 评论 0原文

我正在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

稀香 2024-09-06 13:09:42

该插件包含的 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).

萤火眠眠 2024-09-06 13:09:42

有人已经构建了您可以下载 64 位 Windows 版本。或者您可以构建它你自己。

Someone has built the 64-bit Windows version that you can download. Or you can build it yourself.

稍尽春風 2024-09-06 13:09:42

看看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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文