zhangyeguang
3 months ago
18 changed files with 287 additions and 193 deletions
@ -1,162 +1,202 @@ |
|||
<?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> |
|||
<parent> |
|||
<groupId>com.jiagutech</groupId> |
|||
<artifactId>ams-social</artifactId> |
|||
<version>${revision}</version> |
|||
</parent> |
|||
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> |
|||
<parent> |
|||
<groupId>com.jiagutech</groupId> |
|||
<artifactId>ams-social</artifactId> |
|||
<version>${revision}</version> |
|||
</parent> |
|||
|
|||
<artifactId>web</artifactId> |
|||
<artifactId>web</artifactId> |
|||
|
|||
<properties> |
|||
<maven.compiler.source>17</maven.compiler.source> |
|||
<maven.compiler.target>17</maven.compiler.target> |
|||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|||
</properties> |
|||
<properties> |
|||
<maven.compiler.source>17</maven.compiler.source> |
|||
<maven.compiler.target>17</maven.compiler.target> |
|||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|||
</properties> |
|||
|
|||
<profiles> |
|||
<profile> |
|||
<id>dev</id> |
|||
<properties> |
|||
<!-- 环境标识,需要与配置文件的名称相对应 --> |
|||
<profiles.active>dev</profiles.active> |
|||
<logging.level>info</logging.level> |
|||
</properties> |
|||
<activation> |
|||
<!-- 默认环境 --> |
|||
<activeByDefault>true</activeByDefault> |
|||
</activation> |
|||
</profile> |
|||
<profile> |
|||
<id>zyg</id> |
|||
<properties> |
|||
<profiles.active>zyg</profiles.active> |
|||
<logging.level>info</logging.level> |
|||
</properties> |
|||
</profile> |
|||
<profile> |
|||
<id>prod</id> |
|||
<properties> |
|||
<profiles.active>prod</profiles.active> |
|||
<logging.level>info</logging.level> |
|||
</properties> |
|||
</profile> |
|||
</profiles> |
|||
<dependencies> |
|||
<dependency> |
|||
<groupId>com.jiagutech</groupId> |
|||
<artifactId>system</artifactId> |
|||
<version>1.0.0-SNAPSHOT</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>com.jiagutech</groupId> |
|||
<artifactId>social</artifactId> |
|||
<version>1.0.0-SNAPSHOT</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-data-jdbc</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>mysql</groupId> |
|||
<artifactId>mysql-connector-java</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springdoc</groupId> |
|||
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> |
|||
<profiles> |
|||
<profile> |
|||
<id>dev</id> |
|||
<properties> |
|||
<!-- 环境标识,需要与配置文件的名称相对应 --> |
|||
<profiles.active>dev</profiles.active> |
|||
<logging.level>info</logging.level> |
|||
</properties> |
|||
<activation> |
|||
<!-- 默认环境 --> |
|||
<activeByDefault>true</activeByDefault> |
|||
</activation> |
|||
</profile> |
|||
<profile> |
|||
<id>zyg</id> |
|||
<properties> |
|||
<profiles.active>zyg</profiles.active> |
|||
<logging.level>info</logging.level> |
|||
</properties> |
|||
</profile> |
|||
<profile> |
|||
<id>prod</id> |
|||
<properties> |
|||
<profiles.active>prod</profiles.active> |
|||
<logging.level>info</logging.level> |
|||
</properties> |
|||
</profile> |
|||
</profiles> |
|||
<dependencies> |
|||
<dependency> |
|||
<groupId>com.jiagutech</groupId> |
|||
<artifactId>system</artifactId> |
|||
<version>1.0.0-SNAPSHOT</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>com.jiagutech</groupId> |
|||
<artifactId>social</artifactId> |
|||
<version>1.0.0-SNAPSHOT</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-data-jdbc</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>mysql</groupId> |
|||
<artifactId>mysql-connector-java</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springdoc</groupId> |
|||
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> |
|||
|
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springdoc</groupId> |
|||
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.apache.commons</groupId> |
|||
<artifactId>commons-pool2</artifactId> |
|||
<version>2.12.0</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>cn.dev33</groupId> |
|||
<artifactId>sa-token-spring-boot3-starter</artifactId> |
|||
</dependency> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springdoc</groupId> |
|||
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.apache.commons</groupId> |
|||
<artifactId>commons-pool2</artifactId> |
|||
<version>2.12.0</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>cn.dev33</groupId> |
|||
<artifactId>sa-token-spring-boot3-starter</artifactId> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>cn.dev33</groupId> |
|||
<artifactId>sa-token-redis-jackson</artifactId> |
|||
</dependency> |
|||
<!-- 添加 MapStruct 依赖 --> |
|||
<dependency> |
|||
<groupId>org.mapstruct</groupId> |
|||
<artifactId>mapstruct</artifactId> |
|||
<version>1.5.3.Final</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.amqp</groupId> |
|||
<artifactId>spring-rabbit</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.amqp</groupId> |
|||
<artifactId>spring-amqp</artifactId> |
|||
</dependency> |
|||
</dependencies> |
|||
<build> |
|||
<resources> |
|||
<resource> |
|||
<directory>src/main/resources</directory> |
|||
<filtering>true</filtering> |
|||
<includes> |
|||
<include>application.yml</include> |
|||
<include>application-${profiles.active}.yml</include> |
|||
<include>*.xml</include> |
|||
</includes> |
|||
</resource> |
|||
</resources> |
|||
<plugins> |
|||
<plugin> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-maven-plugin</artifactId> |
|||
<version>${spring-boot.version}</version> |
|||
<executions> |
|||
<execution> |
|||
<goals> |
|||
<goal>repackage</goal> |
|||
</goals> |
|||
</execution> |
|||
</executions> |
|||
</plugin> |
|||
<!-- 添加 MapStruct 插件 --> |
|||
<plugin> |
|||
<groupId>org.apache.maven.plugins</groupId> |
|||
<artifactId>maven-compiler-plugin</artifactId> |
|||
<version>3.8.1</version> |
|||
<configuration> |
|||
<source>17</source> |
|||
<target>17</target> |
|||
<annotationProcessorPaths> |
|||
<path> |
|||
<groupId>org.mapstruct</groupId> |
|||
<artifactId>mapstruct-processor</artifactId> |
|||
<version>1.5.3.Final</version> |
|||
</path> |
|||
<!-- 添加 Lombok 注解处理器 --> |
|||
<path> |
|||
<groupId>org.projectlombok</groupId> |
|||
<artifactId>lombok</artifactId> |
|||
<version>${lombok.version}</version> |
|||
</path> |
|||
</annotationProcessorPaths> |
|||
</configuration> |
|||
</plugin> |
|||
<!-- 添加 maven-pmd-plugin --> |
|||
<plugin> |
|||
<groupId>org.apache.maven.plugins</groupId> |
|||
<artifactId>maven-pmd-plugin</artifactId> |
|||
<version>3.15.0</version> |
|||
<dependencies> |
|||
<dependency> |
|||
<groupId>net.sourceforge.pmd</groupId> |
|||
<artifactId>pmd-core</artifactId> |
|||
<version>6.38.0</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>net.sourceforge.pmd</groupId> |
|||
<artifactId>pmd-java</artifactId> |
|||
<version>6.38.0</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.ow2.asm</groupId> |
|||
<artifactId>asm</artifactId> |
|||
<version>9.2</version> |
|||
</dependency> |
|||
</dependencies> |
|||
<configuration> |
|||
<linkXRef>false</linkXRef> |
|||
<sourceEncoding>UTF-8</sourceEncoding> |
|||
<minimumTokens>100</minimumTokens> |
|||
<targetJdk>17</targetJdk> |
|||
<analysisCache>true</analysisCache> |
|||
<analysisCacheLocation>${project.build.directory}/pmd/pmd.cache</analysisCacheLocation> |
|||
<outputDirectory>${project.build.directory}/pmd</outputDirectory> |
|||
<format>html</format> |
|||
<failOnViolation>false</failOnViolation> |
|||
</configuration> |
|||
<executions> |
|||
<execution> |
|||
<id>pmd-check</id> |
|||
<phase>verify</phase> |
|||
<goals> |
|||
<goal>check</goal> |
|||
<goal>cpd-check</goal> |
|||
<goal>pmd</goal> |
|||
</goals> |
|||
</execution> |
|||
</executions> |
|||
</plugin> |
|||
</plugins> |
|||
|
|||
<!-- <dependency>--> |
|||
<!-- <groupId>cn.dev33</groupId>--> |
|||
<!-- <artifactId>sa-token-redis</artifactId>--> |
|||
<!-- </dependency>--> |
|||
<dependency> |
|||
<groupId>cn.dev33</groupId> |
|||
<artifactId>sa-token-redis-jackson</artifactId> |
|||
</dependency> |
|||
<!-- 添加 MapStruct 依赖 --> |
|||
<dependency> |
|||
<groupId>org.mapstruct</groupId> |
|||
<artifactId>mapstruct</artifactId> |
|||
<version>1.5.3.Final</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.amqp</groupId> |
|||
<artifactId>spring-rabbit</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.amqp</groupId> |
|||
<artifactId>spring-amqp</artifactId> |
|||
</dependency> |
|||
</dependencies> |
|||
<build> |
|||
<resources> |
|||
<resource> |
|||
<directory>src/main/resources</directory> |
|||
<filtering>true</filtering> |
|||
<includes> |
|||
<include>application.yml</include> |
|||
<include>application-${profiles.active}.yml</include> |
|||
<include>*.xml</include> |
|||
</includes> |
|||
</resource> |
|||
</resources> |
|||
<plugins> |
|||
<plugin> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-maven-plugin</artifactId> |
|||
<version>${spring-boot.version}</version> |
|||
<executions> |
|||
<execution> |
|||
<goals> |
|||
<goal>repackage</goal> |
|||
</goals> |
|||
</execution> |
|||
</executions> |
|||
</plugin> |
|||
<!-- 添加 MapStruct 插件 --> |
|||
<plugin> |
|||
<groupId>org.apache.maven.plugins</groupId> |
|||
<artifactId>maven-compiler-plugin</artifactId> |
|||
<version>3.8.1</version> |
|||
<configuration> |
|||
<source>17</source> |
|||
<target>17</target> |
|||
<annotationProcessorPaths> |
|||
<path> |
|||
<groupId>org.mapstruct</groupId> |
|||
<artifactId>mapstruct-processor</artifactId> |
|||
<version>1.5.3.Final</version> |
|||
</path> |
|||
<!-- 添加 Lombok 注解处理器 --> |
|||
<path> |
|||
<groupId>org.projectlombok</groupId> |
|||
<artifactId>lombok</artifactId> |
|||
<version>${lombok.version}</version> |
|||
</path> |
|||
</annotationProcessorPaths> |
|||
</configuration> |
|||
</plugin> |
|||
</plugins> |
|||
|
|||
</build> |
|||
</build> |
|||
|
|||
</project> |
Loading…
Reference in new issue