<?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.szyx.tcm</groupId> <artifactId>szyx-tcm-supervision</artifactId> <version>0.0.1-SNAPSHOT</version> <name>szyx-tcm-supervision</name> <description>szyx-tcm-supervision</description> <properties> <java.version>1.8</java.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <application.name>szyx-tcm-supervision</application.name> <spring-boot.version>2.7.6</spring-boot.version> <hutool.version>6.0.0-M4</hutool.version> <fastjson.version>2.0.47</fastjson.version> <commons-lang3.version>3.8.1</commons-lang3.version> <swagger-ui.version>1.9.3</swagger-ui.version> <swagger.version>3.0.0</swagger.version> <swagger-annotations.version>1.5.20</swagger-annotations.version> <mapstruct.version>1.5.4.Final</mapstruct.version> <knife4j.version>2.0.9</knife4j.version> <redisson.version>3.20.0</redisson.version> <async-http-client.version>2.5.3</async-http-client.version> <mybatis-plus.version>3.5.5</mybatis-plus.version> <jackson.version>2.10.3</jackson.version> <caffeine.version>2.8.8</caffeine.version> </properties> <dependencies> <dependency> <groupId>com.51trust.rd</groupId> <artifactId>common-model</artifactId> <version>1.0.1</version> </dependency> <dependency> <groupId>com.51trust.rd</groupId> <artifactId>common-util</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>com.51trust.rd</groupId> <artifactId>common-web</artifactId> <version>1.0.0</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-xml</artifactId> </dependency> <dependency> <groupId>com.github.ben-manes.caffeine</groupId> <artifactId>caffeine</artifactId> <version>${caffeine.version}</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validation</artifactId> </dependency> <!--日志集成--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-logging</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <!--aop--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> <dependency> <groupId>org.asynchttpclient</groupId> <artifactId>async-http-client</artifactId> <version>${async-http-client.version}</version> </dependency> <!--数据库相关--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>${mybatis-plus.version}</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.1.23</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.28</version> </dependency> <!-- <dependency>--> <!-- <groupId>com.mysql</groupId>--> <!-- <artifactId>mysql-connector-j</artifactId>--> <!-- <scope>runtime</scope>--> <!-- </dependency>--> <!-- <dependency>--> <!-- <groupId>org.redisson</groupId>--> <!-- <artifactId>redisson-spring-boot-starter</artifactId>--> <!-- <exclusions>--> <!-- <exclusion>--> <!-- <groupId>org.redisson</groupId>--> <!-- <artifactId>redisson-spring-data-30</artifactId>--> <!-- </exclusion>--> <!-- </exclusions>--> <!-- <version>${redisson.version}</version>--> <!-- </dependency>--> <!-- <dependency>--> <!-- <groupId>org.redisson</groupId>--> <!-- <artifactId>redisson-spring-data-23</artifactId>--> <!-- <version>${redisson.version}</version>--> <!-- </dependency>--> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>org.mapstruct</groupId> <artifactId>mapstruct</artifactId> <version>${mapstruct.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.mapstruct</groupId> <artifactId>mapstruct-processor</artifactId> <version>${mapstruct.version}</version> </dependency> <dependency> <groupId>org.dromara.hutool</groupId> <artifactId>hutool-all</artifactId> <version>${hutool.version}</version> </dependency> <!--Apache 工具包--> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>${commons-lang3.version}</version> </dependency> <!--谷歌核心个工具包--> <!-- https://mvnrepository.com/artifact/com.google.guava/guava --> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>32.0.1-jre</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-pool2</artifactId> </dependency> <dependency> <groupId>com.alibaba.fastjson2</groupId> <artifactId>fastjson2</artifactId> <version>${fastjson.version}</version> </dependency> <!-- api doc --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>${swagger.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.github.xiaoymin</groupId> <artifactId>knife4j-micro-spring-boot-starter</artifactId> <version>${knife4j.version}</version> </dependency> <dependency> <groupId>com.github.xiaoymin</groupId> <artifactId>knife4j-spring-boot-starter</artifactId> <version>${knife4j.version}</version> </dependency> <dependency> <groupId>io.swagger</groupId> <artifactId>swagger-annotations</artifactId> <version>${swagger-annotations.version}</version> <scope>compile</scope> </dependency> </dependencies> <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> <repositories> <repository> <id>51trust</id> <name>51trust</name> <url>http://nexus.51trust.net/repository/maven-public/</url> </repository> </repositories> <distributionManagement> <repository> <id>snapshots</id> <url>http://nexus.51trust.net/repository/maven-snapshots/</url> </repository> </distributionManagement> <build> <finalName>${application.name}</finalName> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> <includes> <include>spring/**</include> <include>templates/**</include> <include>**/*.ttf</include> <include>META-INF/**</include> <include>logback-spring.xml</include> <include>mybatis/**/*.xml</include> <include>application.properties</include> <include>application-${profile.active}.properties</include> <include>bootstrap.properties</include> </includes> </resource> <resource> <directory>src/main/resources</directory> <filtering>false</filtering> <includes> <include>static/**</include> <include>template/**</include> </includes> </resource> </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${spring-boot.version}</version> <configuration> <mainClass>com.szyx.tcm.supervision.SupervisionApplication</mainClass> <skip>true</skip> </configuration> <executions> <execution> <id>repackage</id> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.1.0</version> <configuration> <nonFilteredFileExtensions> <nonFilteredFileExtension>ttf</nonFilteredFileExtension> <nonFilteredFileExtension>ftl</nonFilteredFileExtension> <nonFilteredFileExtension>html</nonFilteredFileExtension> </nonFilteredFileExtensions> </configuration> </plugin> </plugins> </build> <profiles> <!-- local --> <profile> <id>local</id> <properties> <log.level>info</log.level> <profile.active>local</profile.active> </properties> <!-- <activation>--> <!-- <activeByDefault>true</activeByDefault>--> <!-- </activation>--> </profile> <!-- dev --> <profile> <id>dev</id> <properties> <log.level>debug</log.level> <profile.active>dev</profile.active> </properties> </profile> <!-- test --> <profile> <id>test</id> <properties> <log.level>info</log.level> <profile.active>test</profile.active> </properties> </profile> <!-- on --> <profile> <id>prod</id> <properties> <log.level>info</log.level> <profile.active>prod</profile.active> </properties> </profile> </profiles> </project>