2024-06-04 14:09:07 +00: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>
|
|
|
|
<parent>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
<version>2.7.18</version>
|
|
|
|
<relativePath/>
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
<groupId>com.xiaojusurvey.engine</groupId>
|
|
|
|
<artifactId>survey-engine</artifactId>
|
|
|
|
<version>${revision}</version>
|
|
|
|
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
<modules>
|
2024-06-08 14:08:48 +00:00
|
|
|
<module>survey-checkstyle</module>
|
2024-06-04 14:09:07 +00:00
|
|
|
<module>survey-server</module>
|
|
|
|
<module>survey-common</module>
|
|
|
|
<module>survey-dal</module>
|
|
|
|
<module>survey-core</module>
|
|
|
|
<module>survey-extensions</module>
|
|
|
|
</modules>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<revision>1.0.0</revision>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<java.compiler.source.version>1.8</java.compiler.source.version>
|
|
|
|
<java.compiler.target.version>1.8</java.compiler.target.version>
|
2024-07-30 15:24:07 +00:00
|
|
|
<lombok.version>1.18.20</lombok.version>
|
2024-06-04 14:09:07 +00:00
|
|
|
<junit.version>4.12</junit.version>
|
2024-06-07 14:47:55 +00:00
|
|
|
<lang3.version>3.14.0</lang3.version>
|
|
|
|
<fastjson.version>1.2.83</fastjson.version>
|
2024-06-07 06:23:37 +00:00
|
|
|
<jwt.version>4.4.0</jwt.version>
|
2024-08-07 03:42:24 +00:00
|
|
|
<dozer.version>5.5.1</dozer.version>
|
2024-06-04 14:09:07 +00:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencyManagement>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.xiaojusurvey.engine</groupId>
|
|
|
|
<artifactId>survey-common</artifactId>
|
|
|
|
<version>${revision}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.xiaojusurvey.engine</groupId>
|
|
|
|
<artifactId>survey-dal</artifactId>
|
|
|
|
<version>${revision}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.xiaojusurvey.engine</groupId>
|
|
|
|
<artifactId>survey-core</artifactId>
|
|
|
|
<version>${revision}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.xiaojusurvey.engine</groupId>
|
|
|
|
<artifactId>survey-extensions</artifactId>
|
|
|
|
<version>${revision}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
<version>${lombok.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<version>${junit.version}</version>
|
|
|
|
</dependency>
|
2024-06-07 06:23:37 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.auth0</groupId>
|
|
|
|
<artifactId>java-jwt</artifactId>
|
|
|
|
<version>${jwt.version}</version>
|
|
|
|
</dependency>
|
2024-06-08 14:08:48 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
|
<artifactId>fastjson</artifactId>
|
|
|
|
<version>${fastjson.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
<version>${lang3.version}</version>
|
|
|
|
</dependency>
|
2024-08-07 03:42:24 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>net.sf.dozer</groupId>
|
|
|
|
<artifactId>dozer</artifactId>
|
|
|
|
<version>${dozer.version}</version>
|
|
|
|
</dependency>
|
2024-06-04 14:09:07 +00:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
</dependencyManagement>
|
|
|
|
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>dev</id>
|
|
|
|
<properties>
|
|
|
|
<spring.profiles.active>dev</spring.profiles.active>
|
|
|
|
</properties>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>test</id>
|
|
|
|
<properties>
|
|
|
|
<spring.profiles.active>test</spring.profiles.active>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>prod</id>
|
|
|
|
<properties>
|
|
|
|
<spring.profiles.active>prod</spring.profiles.active>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<!-- 定义JDK版本 -->
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<source>${java.compiler.source.version}</source>
|
|
|
|
<target>${java.compiler.target.version}</target>
|
|
|
|
<encoding>${project.build.sourceEncoding}</encoding>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-sources</id>
|
|
|
|
<goals>
|
|
|
|
<goal>jar-no-fork</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2024-06-08 14:08:48 +00:00
|
|
|
<!-- PMD插件 -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-pmd-plugin</artifactId>
|
|
|
|
<version>3.16.0</version>
|
|
|
|
<configuration>
|
|
|
|
<verbose>true</verbose>
|
|
|
|
<!-- 规范的配置 -->
|
|
|
|
<rulesets>
|
|
|
|
<ruleset>rulesets/java/ali-concurrent.xml</ruleset>
|
|
|
|
<ruleset>rulesets/java/ali-constant.xml</ruleset>
|
|
|
|
<ruleset>rulesets/java/ali-exception.xml</ruleset>
|
|
|
|
<ruleset>rulesets/java/ali-flowcontrol.xml</ruleset>
|
|
|
|
<ruleset>rulesets/java/ali-naming.xml</ruleset>
|
|
|
|
<ruleset>rulesets/java/ali-oop.xml</ruleset>
|
|
|
|
<ruleset>rulesets/java/ali-orm.xml</ruleset>
|
|
|
|
<ruleset>rulesets/java/ali-other.xml</ruleset>
|
|
|
|
<ruleset>rulesets/java/ali-set.xml</ruleset>
|
|
|
|
</rulesets>
|
|
|
|
<printFailingErrors>true</printFailingErrors>
|
|
|
|
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>pmd-check-verify</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>check</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.alibaba.p3c</groupId>
|
|
|
|
<artifactId>p3c-pmd</artifactId>
|
|
|
|
<version>2.1.1</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
|
|
<version>3.1.2</version>
|
|
|
|
<configuration>
|
|
|
|
<configLocation>checkstyle-rule.xml</configLocation>
|
|
|
|
<encoding>UTF-8</encoding>
|
|
|
|
<logViolationsToConsole>true</logViolationsToConsole>
|
|
|
|
<consoleOutput>true</consoleOutput>
|
|
|
|
<failsOnError>true</failsOnError>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>validate</id>
|
|
|
|
<phase>validate</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>check</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.xiaojusurvey.engine</groupId>
|
|
|
|
<artifactId>survey-checkstyle</artifactId>
|
|
|
|
<version>base</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.puppycrawl.tools</groupId>
|
|
|
|
<artifactId>checkstyle</artifactId>
|
|
|
|
<version>8.41.1</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<version>2.19.1</version>
|
|
|
|
<configuration>
|
|
|
|
<skip>false</skip>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2024-06-04 14:09:07 +00:00
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
</build>
|
|
|
|
</project>
|