|
|
<?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>jpa</artifactId>
|
|
|
<version>2021.1.0</version>
|
|
|
|
|
|
<name>jpa</name>
|
|
|
<url>http://www.liuhuiyu.com</url>
|
|
|
|
|
|
<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.versions>4.13.2</junit.versions>
|
|
|
<annotations.versions>23.0.0</annotations.versions>
|
|
|
<com.liuhuiyu.dto.versions>2021.1.0</com.liuhuiyu.dto.versions>
|
|
|
<com.liuhuiyu.test.versions>2022.1.0</com.liuhuiyu.test.versions>
|
|
|
<spring.versions>2.1.6.RELEASE</spring.versions>
|
|
|
<log4j2.version>2.18.0</log4j2.version>
|
|
|
<guava.version>31.1-jre</guava.version>
|
|
|
</properties>
|
|
|
<dependencies>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
|
<version>${spring.versions}</version>
|
|
|
<exclusions>
|
|
|
<exclusion>
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
<artifactId>log4j-api</artifactId>
|
|
|
</exclusion>
|
|
|
<exclusion>
|
|
|
<groupId>ch.qos.logback</groupId>
|
|
|
<artifactId>logback-classic</artifactId>
|
|
|
</exclusion>
|
|
|
<exclusion>
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
<artifactId>log4j-to-slf4j</artifactId>
|
|
|
</exclusion>
|
|
|
</exclusions>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.jetbrains</groupId>
|
|
|
<artifactId>annotations</artifactId>
|
|
|
<version>${annotations.versions}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.liuhuiyu</groupId>
|
|
|
<artifactId>dto</artifactId>
|
|
|
<version>${com.liuhuiyu.dto.versions}</version>
|
|
|
</dependency>
|
|
|
<!-- region引入log4j2依赖 -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
|
<artifactId>log4j-core</artifactId>
|
|
|
<version>${log4j2.version}</version>
|
|
|
<scope>compile</scope>
|
|
|
</dependency>
|
|
|
<!-- endregion -->
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
<artifactId>guava</artifactId>
|
|
|
<version>${guava.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.liuhuiyu</groupId>
|
|
|
<artifactId>test2</artifactId>
|
|
|
<version>${com.liuhuiyu.test.versions}</version>
|
|
|
<scope>test</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>
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
<version>3.0.0</version>
|
|
|
<!-- 绑定source插件到Maven的生命周期,并在生命周期后执行绑定的source的goal -->
|
|
|
<executions>
|
|
|
<execution>
|
|
|
<!-- 绑定source插件到Maven的生命周期 -->
|
|
|
<phase>compile</phase>
|
|
|
<!--在生命周期后执行绑定的source插件的goals -->
|
|
|
<goals>
|
|
|
<goal>jar-no-fork</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
|
|
|
</plugins>
|
|
|
</build>
|
|
|
</project>
|