107 lines
3.6 KiB
XML
107 lines
3.6 KiB
XML
<?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>
|
||
|
||
<!-- 使用 Spring Boot 官方父 POM,它提供了默认配置和依赖管理 -->
|
||
<parent>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-parent</artifactId>
|
||
<version>3.4.7</version>
|
||
<relativePath/> <!-- lookup parent from repository -->
|
||
</parent>
|
||
|
||
<groupId>com.tienon</groupId>
|
||
<artifactId>example-app</artifactId>
|
||
<version>1.0.0</version>
|
||
<packaging>jar</packaging>
|
||
|
||
|
||
<properties>
|
||
<java.version>17</java.version>
|
||
<maven.compiler.source>17</maven.compiler.source>
|
||
<maven.compiler.target>17</maven.compiler.target>
|
||
<spring-boot.version>3.4.7</spring-boot.version>
|
||
<mybatis-plus.version>3.5.14</mybatis-plus.version>
|
||
<slf4j.version>2.0.7</slf4j.version>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
|
||
<dependency>
|
||
<groupId>com.tienon.eax</groupId>
|
||
<artifactId>eax4core</artifactId>
|
||
<version>1.0.0</version>
|
||
</dependency>
|
||
|
||
<!-- Spring Boot Web 启动器,包含 Web 开发所需的核心依赖 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
</dependency>
|
||
<!-- Jakarta Bean Validation support (e.g., @NotNull, @Min) -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-validation</artifactId>
|
||
</dependency>
|
||
|
||
<!-- MyBatis-Plus 启动器,简化数据库操作 -->
|
||
<dependency>
|
||
<groupId>com.baomidou</groupId>
|
||
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
|
||
<version>${mybatis-plus.version}</version>
|
||
</dependency>
|
||
|
||
<!-- MySQL 连接驱动 -->
|
||
<dependency>
|
||
<groupId>com.mysql</groupId>
|
||
<artifactId>mysql-connector-j</artifactId>
|
||
<scope>runtime</scope> <!-- 运行时依赖 -->
|
||
</dependency>
|
||
|
||
<!-- SLF4J API -->
|
||
<dependency>
|
||
<groupId>org.slf4j</groupId>
|
||
<artifactId>slf4j-api</artifactId>
|
||
<version>${slf4j.version}</version>
|
||
</dependency>
|
||
|
||
<!-- Lombok 库,用于简化 Java 代码 -->
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<scope>provided</scope> <!-- 编译时提供,不需要打包到最终 JAR 中 -->
|
||
<!-- <version>${lombok.version}</version> --> <!-- 通常由父 POM 管理 -->
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
|
||
<!-- my gitea repository -->
|
||
<repositories>
|
||
<repository>
|
||
<id>gitea</id>
|
||
<url>https://gitea.reactgo.cn/api/packages/anyone/maven</url>
|
||
</repository>
|
||
</repositories>
|
||
|
||
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
<version>${spring-boot.version}</version>
|
||
<!-- <executions>
|
||
<execution>
|
||
<goals>
|
||
<goal>repackage</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions> -->
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</project>
|