优化打包规则,增加jf依赖
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
</parent>
|
||||
<groupId>com.example</groupId>
|
||||
<artifactId>workutils</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<version>0.0.2-SNAPSHOT</version>
|
||||
<name>workutils</name>
|
||||
<description>workutils</description>
|
||||
<properties>
|
||||
@@ -22,6 +22,14 @@
|
||||
<!-- Maven 编译/测试启动时的 JVM 参数,确保 IDEA 内运行不乱码 -->
|
||||
<argLine>-Dfile.encoding=UTF-8</argLine>
|
||||
</properties>
|
||||
<repositories>
|
||||
<!-- 本地文件仓库:存放外部 jar(如 jfxrt.jar),随项目分发 -->
|
||||
<repository>
|
||||
<id>local-lib-repo</id>
|
||||
<url>file://${project.basedir}/lib-repo</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
@@ -182,13 +190,12 @@
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<!-- JavaFX 8(OracleJDK8 内置;OpenJDK8 需安装 OpenJFX 后调整路径) -->
|
||||
<!-- JavaFX 8:jfxrt.jar 已提取至 lib/ 目录,build 时自动安装到本地 Maven 仓库 -->
|
||||
<!-- 最终打入 fat jar,JRE 环境无需内置 JavaFX -->
|
||||
<dependency>
|
||||
<groupId>com.oracle</groupId>
|
||||
<artifactId>javafx</artifactId>
|
||||
<groupId>com.oracle.javafx</groupId>
|
||||
<artifactId>jfxrt</artifactId>
|
||||
<version>8.0</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${java.home}/lib/ext/jfxrt.jar</systemPath>
|
||||
</dependency>
|
||||
|
||||
<!-- JNA: 用于 Windows 控制台代码页切换 (UTF-8) -->
|
||||
|
||||
Reference in New Issue
Block a user