|
|
<?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>com.mathlearning</groupId>
|
|
|
<artifactId>math-learning-app</artifactId>
|
|
|
<version>1.0.0</version>
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
<properties>
|
|
|
<maven.compiler.source>11</maven.compiler.source>
|
|
|
<maven.compiler.target>11</maven.compiler.target>
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
</properties>
|
|
|
|
|
|
<dependencies>
|
|
|
<!-- JavaMail for email verification -->
|
|
|
<dependency>
|
|
|
<groupId>com.sun.mail</groupId>
|
|
|
<artifactId>javax.mail</artifactId>
|
|
|
<version>1.6.2</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- JSON processing -->
|
|
|
<dependency>
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
<artifactId>jackson-core</artifactId>
|
|
|
<version>2.15.2</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
<version>2.15.2</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
|
|
<version>2.15.2</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- Password hashing -->
|
|
|
<dependency>
|
|
|
<groupId>at.favre.lib</groupId>
|
|
|
<artifactId>bcrypt</artifactId>
|
|
|
<version>0.9.0</version>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<!-- 编译器插件 -->
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
<version>3.11.0</version>
|
|
|
<configuration>
|
|
|
<source>11</source>
|
|
|
<target>11</target>
|
|
|
<encoding>UTF-8</encoding>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
|
|
|
<!-- Assembly Plugin 用于创建包含所有依赖的可执行JAR -->
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
<version>3.6.0</version>
|
|
|
<configuration>
|
|
|
<archive>
|
|
|
<manifest>
|
|
|
<!-- 重要:根据你的实际主类修改这里 -->
|
|
|
<mainClass>mathlearning.App</mainClass>
|
|
|
</manifest>
|
|
|
</archive>
|
|
|
<descriptorRefs>
|
|
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
|
|
</descriptorRefs>
|
|
|
<appendAssemblyId>false</appendAssemblyId> <!-- 可选:生成不带分类器的JAR -->
|
|
|
</configuration>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
<id>make-assembly</id>
|
|
|
<phase>package</phase>
|
|
|
<goals>
|
|
|
<goal>single</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
</project> |