2020-09-18 13:04:12 +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>com.chinaweal.youfool</groupId>
|
2020-12-04 17:53:04 +08:00
|
|
|
|
<artifactId>youfool-prj-springboot-template</artifactId>
|
2020-09-18 13:04:12 +08:00
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
|
|
<packaging>war</packaging>
|
2020-12-04 17:53:04 +08:00
|
|
|
|
<name>${project.artifactId}</name>
|
2020-09-18 13:04:12 +08:00
|
|
|
|
<url>https://www.chinaweal.com.cn</url>
|
2021-05-25 14:12:15 +08:00
|
|
|
|
<description>boot基础的后台模板</description>
|
2020-09-18 13:04:12 +08:00
|
|
|
|
<properties>
|
|
|
|
|
|
<java.version>1.8</java.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>
|
2021-05-25 14:12:15 +08:00
|
|
|
|
<failOnMissingWebXml>false</failOnMissingWebXml>
|
|
|
|
|
|
<spring.boot.version>2.3.5.RELEASE</spring.boot.version>
|
2022-03-03 19:15:46 +08:00
|
|
|
|
<skipTests>true</skipTests>
|
2020-09-18 13:04:12 +08:00
|
|
|
|
</properties>
|
2021-05-25 14:12:15 +08:00
|
|
|
|
|
|
|
|
|
|
<dependencyManagement>
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
|
|
|
|
<version>${spring.boot.version}</version>
|
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
|
|
2020-09-18 13:04:12 +08:00
|
|
|
|
<dependencies>
|
|
|
|
|
|
<!--基础框架youfool-framework-boot-->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.chinaweal.youfool</groupId>
|
|
|
|
|
|
<artifactId>youfool-framework-springboot</artifactId>
|
2022-03-03 19:15:46 +08:00
|
|
|
|
<version>3.0.2-SNAPSHOT</version>
|
2020-09-18 13:04:12 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
<!--postgresql-->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.postgresql</groupId>
|
|
|
|
|
|
<artifactId>postgresql</artifactId>
|
2021-05-25 14:12:15 +08:00
|
|
|
|
<version>42.2.8</version>
|
2020-09-18 13:04:12 +08:00
|
|
|
|
</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>
|
2022-03-03 19:15:46 +08:00
|
|
|
|
<!--文件应用启动校验-->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.chinaweal.youfool</groupId>
|
|
|
|
|
|
<artifactId>youfool-increpack-common</artifactId>
|
|
|
|
|
|
<version>1.0.5</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 增量打包辅助工具 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.chinaweal.youfool</groupId>
|
|
|
|
|
|
<artifactId>youfool-increpack-maven-plugin</artifactId>
|
|
|
|
|
|
<version>2.1.0</version>
|
|
|
|
|
|
</dependency>
|
2020-09-18 13:04:12 +08:00
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
|
<plugins>
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
2021-05-25 14:12:15 +08:00
|
|
|
|
<version>${spring.boot.version}</version>
|
2020-09-18 13:04:12 +08:00
|
|
|
|
</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>
|
|
|
|
|
|
<!-- 自定义配置目录 -->
|
2022-02-22 10:34:37 +08:00
|
|
|
|
<configLocation>checkstyle-v1.0.xml</configLocation>
|
2020-09-18 13:04:12 +08:00
|
|
|
|
</configuration>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<id>validate</id>
|
|
|
|
|
|
<phase>validate</phase>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<!-- checkstyle:check目标是一个普通目标,它向控制台报告违规情况和/或在发生违规情况时使构建失败 -->
|
|
|
|
|
|
<goal>check</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
2022-03-03 19:15:46 +08:00
|
|
|
|
<!--增量打包工具-->
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
|
|
<version>3.3.0</version>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<finalName>${project.artifactId}</finalName>
|
|
|
|
|
|
<descriptors>
|
|
|
|
|
|
<descriptor>target/assembly.xml</descriptor>
|
|
|
|
|
|
</descriptors>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<id>make-assembly</id>
|
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>single</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
|
|
<version>1.6.0</version>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<phase>compile</phase>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>java</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<mainClass>com.chinaweal.youfool.increpack.maven.IncrePackMain</mainClass>
|
|
|
|
|
|
<arguments>
|
|
|
|
|
|
<argument>${project.artifactId}</argument>
|
|
|
|
|
|
<argument>${project.version}</argument>
|
|
|
|
|
|
</arguments>
|
|
|
|
|
|
<cleanupDaemonThreads>false</cleanupDaemonThreads>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<id>authMac</id>
|
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>java</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<mainClass>com.chinaweal.youfool.increpack.common.AuthPackMain</mainClass>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
2020-09-18 13:04:12 +08:00
|
|
|
|
</plugins>
|
|
|
|
|
|
</build>
|
|
|
|
|
|
</project>
|