简体   繁体   English

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

[英]javafx-maven-plugin Updates Wrong Folder

There are two different javafx applications using javafx-maven-plugin to generate native windows installer. 有两种不同的javafx应用程序使用javafx-maven-plugin生成本机Windows安装程序。 In both applications the installers are generated and can be seen at target\\jfx\\native . 在这两个应用程序中,都会生成安装程序,并且可以在target\\jfx\\native处看到target\\jfx\\native

When the first app installer setup installation process is started, setup shows files are copied in C:\\Users\\Yunus\\AppData\\Local\\CooperativeERP . 启动第一个应用程序安装程序安装程序的安装过程时,安装程​​序将显示文件复制到C:\\Users\\Yunus\\AppData\\Local\\CooperativeERP

The problem is when the second application installation process is started it goes to the same folder and updates some files which makes first app installed unusable. 问题是,启动第二个应用程序安装过程时,它会转到同一文件夹并更新一些文件,从而使第一个应用程序无法使用。

Plugin Maven XML is as follows: 插件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>

What should i do to make the two setup install as different application and not to get to each others way. 我应该怎么做才能使两个安装程序安装为不同的应用程序,而不是互相干扰。

Found out that zen java maven plugin uses a Main class package as unique identifier for application, and in this particular case both application had the same package name. 发现zen java maven插件使用Main类包作为应用程序的唯一标识符,在这种情况下,两个应用程序都具有相同的包名称。

Changing package for one application solved my problem. 为一个应用程序更改软件包解决了我的问题。

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

相关问题 带有CDI,JPA和javafx-maven-plugin的JavaFX - JavaFX with CDI, JPA and javafx-maven-plugin 使用javafx-maven-plugin部署javafx时出错 - Error during deployment of javafx with javafx-maven-plugin 使用没有JRE的javafx-maven-plugin Maven + Build Native - Maven + Build Native with javafx-maven-plugin without JRE Maven 编译错误:包 javafx 不存在(使用 javafx-maven-plugin) - Maven Compilation Error: package javafx does not exist (with javafx-maven-plugin) Maven JavaFX 运行错误 org.openjfx:javafx-maven-plugin:0.0.6 - Maven JavaFX Run error org.openjfx:javafx-maven-plugin:0.0.6 在 JDK11 之后发布 javafx 应用程序是否需要 javafx-maven-plugin? - Is javafx-maven-plugin required for shiping a javafx application after JDK11? 如何使用 javafx-maven-plugin 运行包含 jfoenix 的 maven java fx 项目 - How to run a maven java fx project that includes jfoenix using javafx-maven-plugin javafx-maven-plugin mac pkg安装程序未显示应用程序图标 - javafx-maven-plugin mac pkg installer does not show app icon 如何将许可证添加到由javafx-maven-plugin创建的exe安装程序? - How can I add a license to an exe-installer created by javafx-maven-plugin? 为什么 javafx-maven-plugin:jlink 会导致 java.nio.file.AccessDeniedException? - Why does javafx-maven-plugin:jlink cause a java.nio.file.AccessDeniedException?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM