[英]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.