99 lines
4.1 KiB
XML
99 lines
4.1 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>
|
|||
|
|
|
|||
|
|
<groupId>com.chinaweal.youfool</groupId>
|
|||
|
|
<artifactId>prj-springboot-template</artifactId>
|
|||
|
|
<version>1.0.0-SNAPSHOT</version>
|
|||
|
|
<packaging>war</packaging>
|
|||
|
|
|
|||
|
|
<name>prj-springboot-template</name>
|
|||
|
|
<url>https://www.chinaweal.com.cn</url>
|
|||
|
|
<parent>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|||
|
|
<version>2.2.6.RELEASE</version>
|
|||
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|||
|
|
</parent>
|
|||
|
|
<properties>
|
|||
|
|
<java.version>1.8</java.version>
|
|||
|
|
<postgresql.version>42.2.8</postgresql.version>
|
|||
|
|
<easyexcel.version>2.2.2</easyexcel.version>
|
|||
|
|
<skipTests>true</skipTests>
|
|||
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|||
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|||
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|||
|
|
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
|
|||
|
|
</properties>
|
|||
|
|
<dependencies>
|
|||
|
|
<!--基础框架youfool-framework-boot-->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.chinaweal.youfool</groupId>
|
|||
|
|
<artifactId>youfool-framework-springboot</artifactId>
|
|||
|
|
<version>1.1.0-SNAPSHOT</version>
|
|||
|
|
</dependency>
|
|||
|
|
<!--postgresql-->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.postgresql</groupId>
|
|||
|
|
<artifactId>postgresql</artifactId>
|
|||
|
|
<version>${postgresql.version}</version>
|
|||
|
|
</dependency>
|
|||
|
|
<!--druid-->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.alibaba</groupId>
|
|||
|
|
<artifactId>druid-spring-boot-starter</artifactId>
|
|||
|
|
<version>1.1.21</version>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.projectlombok</groupId>
|
|||
|
|
<artifactId>lombok</artifactId>
|
|||
|
|
<version>1.18.12</version>
|
|||
|
|
<scope>provided</scope>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>junit</groupId>
|
|||
|
|
<artifactId>junit</artifactId>
|
|||
|
|
<version>4.12</version>
|
|||
|
|
<scope>test</scope>
|
|||
|
|
</dependency>
|
|||
|
|
</dependencies>
|
|||
|
|
|
|||
|
|
<build>
|
|||
|
|
<plugins>
|
|||
|
|
<plugin>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|||
|
|
</plugin>
|
|||
|
|
<!-- 代码风格检测插件 checkstyle -->
|
|||
|
|
<plugin>
|
|||
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|||
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|||
|
|
<version>3.1.1</version>
|
|||
|
|
<configuration>
|
|||
|
|
<!--encoding和consoleOutput一般配套使用,consoleOutput用来设置是否输出相关检查语句,encoding用来设置输出语句的编码格式-->
|
|||
|
|
<encoding>utf-8</encoding>
|
|||
|
|
<consoleOutput>true</consoleOutput>
|
|||
|
|
<!-- 如果在检测中出现error,则打包程序会在checkstyle程序检查完成后停下来 -->
|
|||
|
|
<failsOnError>true</failsOnError>
|
|||
|
|
<!-- 是否包括测试类 -->
|
|||
|
|
<includeTestSourceDirectory>false</includeTestSourceDirectory>
|
|||
|
|
<!-- 自定义配置目录 -->
|
|||
|
|
<configLocation>checkstyle.xml</configLocation>
|
|||
|
|
</configuration>
|
|||
|
|
<executions>
|
|||
|
|
<execution>
|
|||
|
|
<id>validate</id>
|
|||
|
|
<phase>validate</phase>
|
|||
|
|
<goals>
|
|||
|
|
<!-- checkstyle:check目标是一个普通目标,它向控制台报告违规情况和/或在发生违规情况时使构建失败 -->
|
|||
|
|
<goal>check</goal>
|
|||
|
|
</goals>
|
|||
|
|
</execution>
|
|||
|
|
</executions>
|
|||
|
|
</plugin>
|
|||
|
|
</plugins>
|
|||
|
|
</build>
|
|||
|
|
</project>
|