vue-pro/yudao-admin-server/pom.xml

132 lines
4.6 KiB
XML
Raw Normal View History

2021-04-28 00:01:14 +08:00
<?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>cn.iocoder.boot</groupId>
<artifactId>yudao-admin-server</artifactId>
<version>${revision}</version>
2021-04-28 13:59:28 +08:00
2021-04-28 00:01:14 +08:00
<packaging>jar</packaging>
<name>yudao-admin-server</name>
<description>管理后台 Server提供其 API 接口</description>
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
2021-04-28 13:59:28 +08:00
<properties>
<revision>1.0.0</revision>
2021-04-29 02:07:27 +08:00
<!-- Maven 相关 -->
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
<!-- 统一依赖管理 -->
2021-04-28 20:40:48 +08:00
<spring.boot.version>2.4.4</spring.boot.version>
2021-04-29 02:07:27 +08:00
<!-- 工具类相关 -->
<lombok.version>1.16.14</lombok.version>
<mapstruct.version>1.4.1.Final</mapstruct.version>
2021-04-28 13:59:28 +08:00
</properties>
<dependencies>
<dependency>
<groupId>cn.iocoder.boot</groupId>
<artifactId>yudao-framework</artifactId>
<version>${revision}</version>
</dependency>
2021-04-28 20:40:48 +08:00
2021-04-29 02:07:27 +08:00
<!-- 工具类相关 -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId> <!-- use mapstruct-jdk8 for Java 8 or higher -->
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-jdk8</artifactId>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
</dependency>
<!-- Test 测试相关 -->
2021-04-28 20:40:48 +08:00
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.h2database</groupId> <!-- 单元测试,我们采用 H2 作为数据库 -->
<artifactId>h2</artifactId>
2021-04-29 02:07:27 +08:00
<scope>test</scope>
2021-04-28 20:40:48 +08:00
</dependency>
<dependency>
<groupId>com.github.fppt</groupId> <!-- 单元测试,我们采用内嵌的 Redis 数据库 -->
<artifactId>jedis-mock</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>uk.co.jemos.podam</groupId> <!-- 单元测试,随机生成 POJO 类 -->
<artifactId>podam</artifactId>
<scope>test</scope>
</dependency>
2021-04-28 13:59:28 +08:00
</dependencies>
2021-04-28 00:01:14 +08:00
2021-04-28 13:59:28 +08:00
<build>
<plugins>
2021-04-29 02:07:27 +08:00
<!-- 打包 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring.boot.version}</version>
<configuration>
<fork>true</fork>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal> <!-- 将原来的 jar 打入其中 -->
</goals>
</execution>
</executions>
</plugin>
<!-- 提供给 mapstruct 使用 -->
2021-04-28 13:59:28 +08:00
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
2021-04-29 02:07:27 +08:00
<version>${maven-compiler-plugin.version}</version>
2021-04-28 13:59:28 +08:00
<configuration>
2021-04-29 02:07:27 +08:00
<source>${java.version}</source>
<target>${java.version}</target>
<annotationProcessorPaths>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${mapstruct.version}</version>
</path>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
2021-04-28 13:59:28 +08:00
</configuration>
</plugin>
</plugins>
</build>
2021-04-28 00:01:14 +08:00
</project>