|
|
<?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
|
|
|
http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
<groupId>edu.math</groupId>
|
|
|
<artifactId>math-tutor</artifactId>
|
|
|
<version>1.0</version>
|
|
|
|
|
|
<properties>
|
|
|
<maven.compiler.source>17</maven.compiler.source>
|
|
|
<maven.compiler.target>17</maven.compiler.target>
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
</properties>
|
|
|
|
|
|
<dependencies>
|
|
|
<!-- JavaFX -->
|
|
|
<dependency>
|
|
|
<groupId>org.openjfx</groupId>
|
|
|
<artifactId>javafx-controls</artifactId>
|
|
|
<version>17.0.2</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.openjfx</groupId>
|
|
|
<artifactId>javafx-fxml</artifactId>
|
|
|
<version>17.0.2</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.openjfx</groupId>
|
|
|
<artifactId>javafx-graphics</artifactId>
|
|
|
<version>17.0.2</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- Gson -->
|
|
|
<dependency>
|
|
|
<groupId>com.google.code.gson</groupId>
|
|
|
<artifactId>gson</artifactId>
|
|
|
<version>2.10.1</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- ✅ JavaMail 依赖(javax.mail.*) -->
|
|
|
<dependency>
|
|
|
<groupId>com.sun.mail</groupId>
|
|
|
<artifactId>javax.mail</artifactId>
|
|
|
<version>1.6.2</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- ✅ Activation 框架(发送附件时需要) -->
|
|
|
<dependency>
|
|
|
<groupId>javax.activation</groupId>
|
|
|
<artifactId>activation</artifactId>
|
|
|
<version>1.1.1</version>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>net.objecthunter</groupId>
|
|
|
<artifactId>exp4j</artifactId>
|
|
|
<version>0.4.8</version>
|
|
|
</dependency>
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<!-- 编译插件 -->
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
<version>3.8.1</version>
|
|
|
<configuration>
|
|
|
<source>17</source>
|
|
|
<target>17</target>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
|
|
|
<!-- JavaFX 插件 -->
|
|
|
<plugin>
|
|
|
<groupId>org.openjfx</groupId>
|
|
|
<artifactId>javafx-maven-plugin</artifactId>
|
|
|
<version>0.0.8</version>
|
|
|
<configuration>
|
|
|
<mainClass>edu.math.MainApp</mainClass>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
|
|
|
<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>edu.math.MainApp</mainClass>
|
|
|
</transformer>
|
|
|
</transformers>
|
|
|
<!-- 排除签名文件,避免 SecurityException -->
|
|
|
<filters>
|
|
|
<filter>
|
|
|
<artifact>*:*</artifact>
|
|
|
<excludes>
|
|
|
<exclude>META-INF/*.SF</exclude>
|
|
|
<exclude>META-INF/*.DSA</exclude>
|
|
|
<exclude>META-INF/*.RSA</exclude>
|
|
|
</excludes>
|
|
|
</filter>
|
|
|
</filters>
|
|
|
</configuration>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
</project>
|