修改运行脚本
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
<java.version>17</java.version>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<maven.compiler.release>17</maven.compiler.release>
|
||||
<!-- 当 JDK 版本与项目不匹配时,取消注释下行 -->
|
||||
<!-- <maven.compiler.release>17</maven.compiler.release> -->
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<!-- Maven 编译/测试启动时的 JVM 参数,确保 IDEA 内运行不乱码 -->
|
||||
@@ -26,13 +27,10 @@
|
||||
<javafx.version>17.0.14</javafx.version>
|
||||
<!-- AtlantaFX 版本 -->
|
||||
<atlantafx.version>2.0.1</atlantafx.version>
|
||||
<!-- 指定 JDK 17 路径(系统默认 JDK 8 时启用) -->
|
||||
<jdk17.home>C:\Program Files\Java\jdk-17</jdk17.home>
|
||||
</properties>
|
||||
<repositories>
|
||||
<!-- 本地文件仓库:存放外部 jar,随项目分发 -->
|
||||
<repository>
|
||||
<id>local-lib-repo</id>
|
||||
<url>file://${project.basedir}/lib</url>
|
||||
</repository>
|
||||
<!-- AtlantaFX Maven 仓库 -->
|
||||
<repository>
|
||||
<id>sonatype-snapshots</id>
|
||||
@@ -196,6 +194,20 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<!-- 强制使用 JDK 17 编译(系统默认 JDK 8 时必需) -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.11.0</version>
|
||||
<configuration>
|
||||
<release>17</release>
|
||||
<verbose>true</verbose>
|
||||
<fork>true</fork>
|
||||
<executable>${jdk17.home}\bin\javac</executable>
|
||||
<compilerVersion>17</compilerVersion>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
@@ -228,7 +240,8 @@
|
||||
<mainClass>org.springframework.boot.loader.JarLauncher</mainClass>
|
||||
</classPath>
|
||||
<jre>
|
||||
<minVersion>1.8.0</minVersion>
|
||||
<path>jre</path>
|
||||
<minVersion>17</minVersion>
|
||||
<opts>
|
||||
<opt>-Dfile.encoding=UTF-8</opt>
|
||||
</opts>
|
||||
|
||||
Reference in New Issue
Block a user