2019-10-20 20:30:10 +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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
<groupId>com.hccake</groupId>
|
|
|
|
|
<artifactId>ballcat</artifactId>
|
|
|
|
|
<packaging>pom</packaging>
|
2020-05-21 16:58:07 +08:00
|
|
|
<version>${revision}</version>
|
2019-10-20 20:30:10 +08:00
|
|
|
<modules>
|
|
|
|
|
<module>ballcat-admin</module>
|
2019-12-10 17:34:08 +08:00
|
|
|
<module>ballcat-api</module>
|
2019-10-20 20:30:10 +08:00
|
|
|
<module>ballcat-common</module>
|
|
|
|
|
<module>ballcat-codegen</module>
|
2019-10-21 20:34:49 +08:00
|
|
|
<module>ballcat-monitor</module>
|
2020-05-21 17:08:29 +08:00
|
|
|
<module>ballcat-dependencies</module>
|
2020-06-03 21:10:16 +08:00
|
|
|
<module>ballcat-starters</module>
|
2019-10-20 20:30:10 +08:00
|
|
|
</modules>
|
|
|
|
|
<name>ballcat</name>
|
|
|
|
|
<description>项目基本脚手架</description>
|
|
|
|
|
|
|
|
|
|
<properties>
|
2020-05-21 16:58:07 +08:00
|
|
|
<revision>0.0.1-SNAPSHOT</revision>
|
2019-10-20 20:30:10 +08:00
|
|
|
|
|
|
|
|
<java.version>1.8</java.version>
|
|
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
|
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|
|
|
|
|
2020-03-31 11:40:42 +08:00
|
|
|
<spring-boot.version>2.2.6.RELEASE</spring-boot.version>
|
2020-03-02 21:50:25 +08:00
|
|
|
<spring-security-oauth2.version>2.3.6.RELEASE</spring-security-oauth2.version>
|
2019-10-20 20:30:10 +08:00
|
|
|
<spring-platform.version>Cairo-SR8</spring-platform.version>
|
2020-03-31 11:40:42 +08:00
|
|
|
<org.mapstruct.version>1.3.1.Final</org.mapstruct.version>
|
2019-10-20 20:30:10 +08:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.mapstruct</groupId>
|
|
|
|
|
<artifactId>mapstruct</artifactId>
|
|
|
|
|
<version>${org.mapstruct.version}</version>
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.mapstruct</groupId>
|
|
|
|
|
<artifactId>mapstruct-processor</artifactId>
|
|
|
|
|
<version>${org.mapstruct.version}</version>
|
|
|
|
|
<optional>true</optional>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.security</groupId>
|
|
|
|
|
<artifactId>spring-security-test</artifactId>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dependencyManagement>
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.hccake</groupId>
|
2020-05-21 17:08:29 +08:00
|
|
|
<artifactId>ballcat-dependencies</artifactId>
|
2020-05-22 11:58:17 +08:00
|
|
|
<version>${revision}</version>
|
2020-03-02 21:50:25 +08:00
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
2019-10-20 20:30:10 +08:00
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
|
|
|
<version>${spring-boot.version}</version>
|
|
|
|
|
<type>pom</type>
|
|
|
|
|
<scope>import</scope>
|
|
|
|
|
</dependency>
|
2020-03-02 21:50:25 +08:00
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.security.oauth</groupId>
|
|
|
|
|
<artifactId>spring-security-oauth2</artifactId>
|
|
|
|
|
<version>${spring-security-oauth2.version}</version>
|
|
|
|
|
</dependency>
|
2019-10-20 20:30:10 +08:00
|
|
|
<!--web 模块-->
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
<version>${spring-boot.version}</version>
|
|
|
|
|
<exclusions>
|
|
|
|
|
<!--排除tomcat依赖-->
|
|
|
|
|
<exclusion>
|
|
|
|
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
</exclusion>
|
|
|
|
|
</exclusions>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<build>
|
2019-10-21 19:30:22 +08:00
|
|
|
<pluginManagement>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
<version>${spring-boot.version}</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<goals>
|
2019-10-21 20:34:49 +08:00
|
|
|
<goal>build-info</goal>
|
2019-10-21 19:30:22 +08:00
|
|
|
<goal>repackage</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</pluginManagement>
|
2019-10-20 20:30:10 +08:00
|
|
|
<!--重要 如果不设置resource 会导致application.yaml中的@@找不到pom文件中的配置-->
|
|
|
|
|
<resources>
|
|
|
|
|
<resource>
|
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
|
<filtering>true</filtering>
|
2019-10-21 20:34:49 +08:00
|
|
|
<excludes>
|
|
|
|
|
<exclude>static/report/**</exclude>
|
|
|
|
|
<exclude>**/*.woff</exclude>
|
|
|
|
|
<exclude>**/*.woff2</exclude>
|
|
|
|
|
<exclude>**/*.ttf</exclude>
|
|
|
|
|
</excludes>
|
|
|
|
|
</resource>
|
|
|
|
|
<resource>
|
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
|
<filtering>false</filtering>
|
|
|
|
|
<includes>
|
|
|
|
|
<include>static/report/**</include>
|
|
|
|
|
<include>**/*.woff</include>
|
|
|
|
|
<include>**/*.woff2</include>
|
|
|
|
|
<include>**/*.ttf</include>
|
|
|
|
|
</includes>
|
2019-10-20 20:30:10 +08:00
|
|
|
</resource>
|
|
|
|
|
</resources>
|
|
|
|
|
<plugins>
|
|
|
|
|
<plugin>
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
<version>3.8.0</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<target>${maven.compiler.target}</target>
|
|
|
|
|
<source>${maven.compiler.source}</source>
|
|
|
|
|
<encoding>${project.build.sourceEncoding}</encoding>
|
|
|
|
|
<skip>true</skip>
|
|
|
|
|
</configuration>
|
|
|
|
|
</plugin>
|
2020-05-22 11:58:17 +08:00
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
|
<artifactId>flatten-maven-plugin</artifactId>
|
|
|
|
|
<version>1.1.0</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<updatePomFile>true</updatePomFile>
|
|
|
|
|
<flattenMode>resolveCiFriendliesOnly</flattenMode>
|
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>flatten</id>
|
|
|
|
|
<phase>process-resources</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>flatten</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>flatten.clean</id>
|
|
|
|
|
<phase>clean</phase>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>clean</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
2019-10-20 20:30:10 +08:00
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--环境变量-->
|
|
|
|
|
<profiles>
|
|
|
|
|
<profile>
|
|
|
|
|
<id>dev</id>
|
|
|
|
|
<properties>
|
|
|
|
|
<profiles.active>dev</profiles.active>
|
|
|
|
|
</properties>
|
|
|
|
|
<activation>
|
|
|
|
|
<!-- 默认环境 -->
|
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
|
</activation>
|
|
|
|
|
</profile>
|
|
|
|
|
<profile>
|
|
|
|
|
<id>test</id>
|
|
|
|
|
<properties>
|
|
|
|
|
<profiles.active>test</profiles.active>
|
|
|
|
|
</properties>
|
|
|
|
|
</profile>
|
|
|
|
|
<profile>
|
|
|
|
|
<id>prod</id>
|
|
|
|
|
<properties>
|
|
|
|
|
<profiles.active>prod</profiles.active>
|
|
|
|
|
</properties>
|
|
|
|
|
</profile>
|
|
|
|
|
</profiles>
|
|
|
|
|
|
|
|
|
|
</project>
|