繁体   English   中英

javafx-maven-plugin更新错误的文件夹

[英]javafx-maven-plugin Updates Wrong Folder

有两种不同的javafx应用程序使用javafx-maven-plugin生成本机Windows安装程序。 在这两个应用程序中,都会生成安装程序,并且可以在target\\jfx\\native处看到target\\jfx\\native

启动第一个应用程序安装程序安装程序的安装过程时,安装程​​序将显示文件复制到C:\\Users\\Yunus\\AppData\\Local\\CooperativeERP

问题是,启动第二个应用程序安装过程时,它会转到同一文件夹并更新一些文件,从而使第一个应用程序无法使用。

插件Maven XML如下:

       <plugin>
            <groupId>com.zenjava</groupId>
            <artifactId>javafx-maven-plugin</artifactId>
            <version>8.6.0</version>
            <configuration>
                <mainClass>re.iprocu.coperativeerp.MainApp</mainClass>

                <bundleArguments>
                    <licenseFile>termsOfService.rtf</licenseFile>
                </bundleArguments>
                <additionalAppResources>src/main/additionalAppResources</additionalAppResources><!-- name does not matter, it's just some folder :D -->
                <!-- DO SHOW DEBUG-OUTPUT -->
                <verbose>true</verbose>
            </configuration>
            <executions>
                <execution>
                    <!-- required before build-native -->
                    <id>create-jfxjar</id>
                    <phase>package</phase>
                    <goals>
                        <goal>build-jar</goal>
                    </goals>
                </execution>

                <execution>
                    <id>create-native</id>
                    <phase>package</phase>
                    <goals>
                        <goal>build-native</goal>
                    </goals>
                </execution>

            </executions>
        </plugin>

我应该怎么做才能使两个安装程序安装为不同的应用程序,而不是互相干扰。

发现zen java maven插件使用Main类包作为应用程序的唯一标识符,在这种情况下,两个应用程序都具有相同的包名称。

为一个应用程序更改软件包解决了我的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM