【发布时间】:2020-01-05 12:28:36
【问题描述】:
在 netbeans 8.2 中,我可以使用原生包创建安装程序。 我尝试在 Netbeans 11 中使用 maven 和 javafx-maven-plugin 做同样的事情。
我使用 install jfx:native 作为构建操作。
这是我的 pom.xml 文件 http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 ClienteIntegradorMaven 1.0-快照 UTF-8 12 12 ClienteIntegradorMaven
</properties>
<dependencies>
<!-- https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc -->
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>7.4.1.jre12</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>12.0.2</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>12.0.2</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.12</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.11.2</version>
<type>jar</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>12</release>
</configuration>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.3</version>
<configuration>
<release>12</release>
<jlinkImageName>hellofx</jlinkImageName>
<launcher>launcher</launcher>
<mainClass>clienteintegrador4.ClienteIntegrador4</mainClass>
<executable>C:\Program Files\Java\jdk-12.0.2\bin\java</executable>
</configuration>
</plugin>
</plugins>
</build>
</project>
【问题讨论】:
标签: java maven javafx netbeans inno-setup