![](/img/trans.png)
[英]Maven : Build native installer of javaFX application with Inno Setup script
[英]How to create an executable installer for JavaFX aplication using Maven and Inno Setup in Netbeans 11
在netbeans 8.2中,我使用本機捆綁包創建安裝程序。 我嘗試使用maven和javafx-maven-plugin在Netbeans 11中做同樣的事情。
我使用install jfx:native作為構建操作。
這是我的pom.xml文件http://maven.apache.org/maven-v4_0_0.xsd“> 4.0.0 ClienteIntegradorMaven 1.0-SNAPSHOT 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>
您始終可以從批處理文件(.bat)編譯Inno Setup腳本。
只需在批處理文件中使用以下語法:
path\to\ISCC.exe path\to\your\file.iss
請參閱詳細信息:如何使用Inno Setup中的命令行編譯器編譯腳本。
所以你需要的是從Maven / Netbeans / xml 調用批處理文件。
PS我沒有Maven或Netbeans的經驗(但我是Inno安裝專家)所以我無法粘貼確切的解決方案。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.