You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
207 lines
6.4 KiB
207 lines
6.4 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.wsf</groupId>
|
|
<artifactId>MathApp</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
<name>MathApp</name>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<maven.compiler.source>17</maven.compiler.source>
|
|
<maven.compiler.target>17</maven.compiler.target>
|
|
<junit.version>5.10.0</junit.version>
|
|
<javafx.version>17.0.6</javafx.version>
|
|
<javafx.platform>win</javafx.platform>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!-- JavaFX 基础模块 (必需) -->
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-controls</artifactId>
|
|
<version>${javafx.version}</version>
|
|
<classifier>${javafx.platform}</classifier> <!-- 添加 -->
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-fxml</artifactId>
|
|
<version>${javafx.version}</version>
|
|
<classifier>${javafx.platform}</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-base</artifactId>
|
|
<version>${javafx.version}</version>
|
|
<classifier>${javafx.platform}</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-graphics</artifactId>
|
|
<version>${javafx.version}</version>
|
|
<classifier>${javafx.platform}</classifier>
|
|
</dependency>
|
|
<!-- 其他 JavaFX 模块也加上 classifier -->
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-web</artifactId>
|
|
<version>${javafx.version}</version>
|
|
<classifier>${javafx.platform}</classifier>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-media</artifactId>
|
|
<version>${javafx.version}</version>
|
|
<classifier>${javafx.platform}</classifier>
|
|
</dependency>
|
|
|
|
<!-- 其他依赖保持不变 -->
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-web</artifactId>
|
|
<version>${javafx.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-swing</artifactId>
|
|
<version>${javafx.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>javafx-media</artifactId>
|
|
<version>${javafx.version}</version>
|
|
</dependency>
|
|
|
|
<!-- 第三方库 -->
|
|
<dependency>
|
|
<groupId>org.controlsfx</groupId>
|
|
<artifactId>controlsfx</artifactId>
|
|
<version>11.1.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.dlsc.formsfx</groupId>
|
|
<artifactId>formsfx-core</artifactId>
|
|
<version>11.6.0</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>*</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.synedra</groupId>
|
|
<artifactId>validatorfx</artifactId>
|
|
<version>0.4.0</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>*</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.kordamp.ikonli</groupId>
|
|
<artifactId>ikonli-javafx</artifactId>
|
|
<version>12.3.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.kordamp.bootstrapfx</groupId>
|
|
<artifactId>bootstrapfx-core</artifactId>
|
|
<version>0.4.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>eu.hansolo</groupId>
|
|
<artifactId>tilesfx</artifactId>
|
|
<version>11.48</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>*</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.almasb</groupId>
|
|
<artifactId>fxgl</artifactId>
|
|
<version>17.3</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.openjfx</groupId>
|
|
<artifactId>*</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<!-- 测试依赖 -->
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-api</artifactId>
|
|
<version>${junit.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter-engine</artifactId>
|
|
<version>${junit.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.sun.mail</groupId>
|
|
<artifactId>jakarta.mail</artifactId>
|
|
<version>2.0.1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- 编译插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.11.0</version>
|
|
<configuration>
|
|
<source>17</source>
|
|
<target>17</target>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- 打包成 fat jar -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.5.0</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<transformers>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
<mainClass>com.wsf.mathapp.MathApplication</mainClass>
|
|
</transformer>
|
|
</transformers>
|
|
<!-- <filters>-->
|
|
<!-- <filter>-->
|
|
<!-- <artifact>*:*</artifact>-->
|
|
<!-- <excludes>-->
|
|
<!-- <exclude>META-INF/*.SF</exclude>-->
|
|
<!-- <exclude>META-INF/*.DSA</exclude>-->
|
|
<!-- <exclude>META-INF/*.RSA</exclude>-->
|
|
<!-- </excludes>-->
|
|
<!-- </filter>-->
|
|
<!-- </filters>-->
|
|
<!-- 关键:不要裁剪 META-INF/native -->
|
|
<minimizeJar>false</minimizeJar>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project> |