|
|
<?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.liuhuiyu</groupId>
|
|
|
<artifactId>test2</artifactId>
|
|
|
<version>2022.1.0</version>
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
<name>test2</name>
|
|
|
|
|
|
<properties>
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|
|
<junit.version>5.9.0</junit.version>
|
|
|
<log4j2.version>2.18.0</log4j2.version>
|
|
|
<gson.version>2.9.0</gson.version>
|
|
|
<annotations.version>23.0.0</annotations.version>
|
|
|
<spring-boot-test.version>2.5.14</spring-boot-test.version>
|
|
|
<springdata.commons.version>2.5.12</springdata.commons.version>
|
|
|
<org.springframework.version>5.3.22</org.springframework.version>
|
|
|
</properties>
|
|
|
|
|
|
<dependencies>
|
|
|
<dependency>
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
<artifactId>junit-jupiter</artifactId>
|
|
|
<version>${junit.version}</version>
|
|
|
<scope>compile</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
<artifactId>log4j-core</artifactId>
|
|
|
<version>${log4j2.version}</version>
|
|
|
<scope>compile</scope>
|
|
|
</dependency>
|
|
|
<!-- endregion -->
|
|
|
<dependency>
|
|
|
<groupId>com.google.code.gson</groupId>
|
|
|
<artifactId>gson</artifactId>
|
|
|
<version>${gson.version}</version>
|
|
|
<scope>compile</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
|
<version>3.1.0</version>
|
|
|
<scope>compile</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-test</artifactId>
|
|
|
<version>${spring-boot-test.version}</version>
|
|
|
<scope>compile</scope>
|
|
|
<exclusions>
|
|
|
<exclusion>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-beans</artifactId>
|
|
|
</exclusion>
|
|
|
<exclusion>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-context</artifactId>
|
|
|
</exclusion>
|
|
|
<exclusion>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-core</artifactId>
|
|
|
</exclusion>
|
|
|
</exclusions>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.data</groupId>
|
|
|
<artifactId>spring-data-commons</artifactId>
|
|
|
<version>${springdata.commons.version}</version>
|
|
|
<scope>compile</scope>
|
|
|
<exclusions>
|
|
|
<exclusion>
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
</exclusion>
|
|
|
<exclusion>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-beans</artifactId>
|
|
|
</exclusion>
|
|
|
<exclusion>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-core</artifactId>
|
|
|
</exclusion>
|
|
|
</exclusions>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.jetbrains</groupId>
|
|
|
<artifactId>annotations</artifactId>
|
|
|
<version>${annotations.version}</version>
|
|
|
<scope>compile</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-core</artifactId>
|
|
|
<version>${org.springframework.version}</version>
|
|
|
<scope>compile</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-test</artifactId>
|
|
|
<version>${org.springframework.version}</version>
|
|
|
<scope>compile</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-beans</artifactId>
|
|
|
<version>${org.springframework.version}</version>
|
|
|
<scope>compile</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-web</artifactId>
|
|
|
<version>${org.springframework.version}</version>
|
|
|
<scope>compile</scope>
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
<!--项目部署和发布的话需要配置: 在pom.xml中添加 distributionManagement 配置-->
|
|
|
<!-- maven仓库配置 deploy时可推送到配置的仓库中 -->
|
|
|
<distributionManagement>
|
|
|
<repository>
|
|
|
<id>maven-releases</id>
|
|
|
<name>Nexus Releases Repository Pro</name>
|
|
|
<url>http://47.242.184.139:8081/repository/maven-releases/</url>
|
|
|
</repository>
|
|
|
<snapshotRepository>
|
|
|
<id>maven-snapshots</id>
|
|
|
<name>Nexus Snapshots Repository Pro</name>
|
|
|
<url>http://47.242.184.139:8081/repository/maven-snapshots/</url>
|
|
|
</snapshotRepository>
|
|
|
</distributionManagement>
|
|
|
<!--在项目中使用pom.xml进行下载依赖配置的话可以单独使用:
|
|
|
注意:项目中使用的maven,如果已经在settings.xml中配置过后就无需在配置此项-->
|
|
|
<repositories>
|
|
|
<repository>
|
|
|
<id>repository</id>
|
|
|
<url>http://47.242.184.139:8081/repository/maven-public/</url>
|
|
|
<releases>
|
|
|
<enabled>true</enabled>
|
|
|
</releases>
|
|
|
<snapshots>
|
|
|
<enabled>true</enabled>
|
|
|
</snapshots>
|
|
|
</repository>
|
|
|
</repositories>
|
|
|
<pluginRepositories>
|
|
|
<pluginRepository>
|
|
|
<id>central</id>
|
|
|
<url>http://47.242.184.139:8081/repository/maven-central/</url>
|
|
|
<releases>
|
|
|
<enabled>true</enabled>
|
|
|
</releases>
|
|
|
<snapshots>
|
|
|
<enabled>false</enabled>
|
|
|
</snapshots>
|
|
|
</pluginRepository>
|
|
|
</pluginRepositories>
|
|
|
</project>
|