Sil*_*ert 5 java netbeans javafx inno-setup maven
在 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>
Run Code Online (Sandbox Code Playgroud)
您始终可以从批处理文件 (.bat) 编译 Inno Setup 脚本。
只需在批处理文件中使用以下语法:
path\to\ISCC.exe path\to\your\file.iss
Run Code Online (Sandbox Code Playgroud)
详细内容请参见:如何在 Inno Setup 中使用命令行编译器编译脚本。
因此,您所需要做的就是从 Maven/Netbeans/xml调用批处理文件。
PS 我没有使用 Maven 或 Netbeans 的经验(但是我是 Inno Setup 专家),所以我无法粘贴确切的解决方案。