mirror of
https://github.com/moshowgame/SpringBootCodeGenerator.git
synced 2025-12-26 05:48:33 +08:00
296 lines
8.7 KiB
XML
296 lines
8.7 KiB
XML
<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.softdev.system</groupId>
|
||
<artifactId>SpringBootCodeGenerator</artifactId>
|
||
<version>2025</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<parent>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-parent</artifactId>
|
||
<version>3.5.8</version>
|
||
</parent>
|
||
|
||
<repositories>
|
||
<repository>
|
||
<id>alimaven</id>
|
||
<name>aliyun maven</name>
|
||
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
|
||
</repository>
|
||
</repositories>
|
||
|
||
<properties>
|
||
<!-- 指定编码 -->
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
<!-- 指定jdk版本 -->
|
||
<java.version>17</java.version>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
|
||
<!-- https://mvnrepository.com/artifact/com.github.jsqlparser/jsqlparser -->
|
||
<dependency>
|
||
<groupId>com.github.jsqlparser</groupId>
|
||
<artifactId>jsqlparser</artifactId>
|
||
<version>5.3</version>
|
||
</dependency>
|
||
<!-- JUnit 5 -->
|
||
<dependency>
|
||
<groupId>org.junit.jupiter</groupId>
|
||
<artifactId>junit-jupiter</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<!-- Mockito for JUnit 5 -->
|
||
<dependency>
|
||
<groupId>org.mockito</groupId>
|
||
<artifactId>mockito-core</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.mockito</groupId>
|
||
<artifactId>mockito-junit-jupiter</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<!-- Spring Boot Test -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>org.junit.vintage</groupId>
|
||
<artifactId>junit-vintage-engine</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-autoconfigure</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
<!-- 排除Tomcat依赖 -->
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<!-- 添加 Undertow依赖 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-undertow</artifactId>
|
||
</dependency>
|
||
|
||
<!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
|
||
<!-- <dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>fastjson</artifactId>
|
||
<version>2.0.34</version>
|
||
</dependency> -->
|
||
<!-- FastJson2中FastJsonHttpMessageConverter找不到类问题 by https://zhengkai.blog.csdn.net/-->
|
||
<!-- https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2 -->
|
||
<dependency>
|
||
<groupId>com.alibaba.fastjson2</groupId>
|
||
<artifactId>fastjson2</artifactId>
|
||
<version>2.0.60</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.alibaba.fastjson2</groupId>
|
||
<artifactId>fastjson2-extension</artifactId>
|
||
<version>2.0.60</version>
|
||
</dependency>
|
||
<!-- https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2-extension-spring6 -->
|
||
<dependency>
|
||
<groupId>com.alibaba.fastjson2</groupId>
|
||
<artifactId>fastjson2-extension-spring6</artifactId>
|
||
<version>2.0.59</version>
|
||
</dependency>
|
||
|
||
|
||
<!-- 支持 @ConfigurationProperties 注解 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
|
||
<!-- spring-boot-devtools依赖包 -->
|
||
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-devtools -->
|
||
<!--<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-devtools</artifactId>
|
||
<version>2.0.4.RELEASE</version>
|
||
</dependency>-->
|
||
|
||
<!-- spring热部署 -->
|
||
<!--<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>springloaded</artifactId>
|
||
<version>1.2.8.RELEASE</version>
|
||
</dependency>-->
|
||
|
||
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<version>1.18.42</version>
|
||
</dependency>
|
||
|
||
<!-- freemarker -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-freemarker</artifactId>
|
||
</dependency>
|
||
<!--server issue-->
|
||
<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
|
||
<!-- <dependency>
|
||
<groupId>javax.xml.bind</groupId>
|
||
<artifactId>jaxb-api</artifactId>
|
||
<version>2.3.1</version>
|
||
</dependency> -->
|
||
<!-- https://mvnrepository.com/artifact/jakarta.xml.bind/jakarta.xml.bind-api -->
|
||
<dependency>
|
||
<groupId>jakarta.xml.bind</groupId>
|
||
<artifactId>jakarta.xml.bind-api</artifactId>
|
||
<version>4.0.4</version>
|
||
</dependency>
|
||
|
||
|
||
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-lang3</artifactId>
|
||
<version>3.18.0</version>
|
||
</dependency>
|
||
<!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
|
||
<dependency>
|
||
<groupId>commons-io</groupId>
|
||
<artifactId>commons-io</artifactId>
|
||
<version>2.20.0</version>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
|
||
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
</plugin>
|
||
|
||
<!-- Maven Surefire Plugin for JUnit 5 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-surefire-plugin</artifactId>
|
||
<version>3.5.2</version>
|
||
<configuration>
|
||
<useSystemClassLoader>false</useSystemClassLoader>
|
||
<includes>
|
||
<include>**/*Test.java</include>
|
||
<include>**/*Tests.java</include>
|
||
</includes>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
<!-- JaCoCo Maven Plugin for Code Coverage -->
|
||
<plugin>
|
||
<groupId>org.jacoco</groupId>
|
||
<artifactId>jacoco-maven-plugin</artifactId>
|
||
<version>0.8.11</version>
|
||
<executions>
|
||
<!-- 准备JaCoCo代理,用于收集覆盖率数据 -->
|
||
<execution>
|
||
<id>prepare-agent</id>
|
||
<goals>
|
||
<goal>prepare-agent</goal>
|
||
</goals>
|
||
</execution>
|
||
|
||
<!-- 生成覆盖率报告 -->
|
||
<execution>
|
||
<id>report</id>
|
||
<phase>test</phase>
|
||
<goals>
|
||
<goal>report</goal>
|
||
</goals>
|
||
</execution>
|
||
|
||
<!-- 检查覆盖率阈值 -->
|
||
<execution>
|
||
<id>check</id>
|
||
<goals>
|
||
<goal>check</goal>
|
||
</goals>
|
||
<configuration>
|
||
<rules>
|
||
<rule>
|
||
<element>BUNDLE</element>
|
||
<limits>
|
||
<!-- 指令覆盖率最低要求 -->
|
||
<limit>
|
||
<counter>INSTRUCTION</counter>
|
||
<value>COVEREDRATIO</value>
|
||
<minimum>0.00</minimum>
|
||
</limit>
|
||
<!-- 分支覆盖率最低要求 -->
|
||
<limit>
|
||
<counter>BRANCH</counter>
|
||
<value>COVEREDRATIO</value>
|
||
<minimum>0.00</minimum>
|
||
</limit>
|
||
<!-- 类覆盖率最低要求 -->
|
||
<limit>
|
||
<counter>CLASS</counter>
|
||
<value>COVEREDRATIO</value>
|
||
<minimum>0.00</minimum>
|
||
</limit>
|
||
<!-- 方法覆盖率最低要求 -->
|
||
<limit>
|
||
<counter>METHOD</counter>
|
||
<value>COVEREDRATIO</value>
|
||
<minimum>0.00</minimum>
|
||
</limit>
|
||
<!-- 行覆盖率最低要求 -->
|
||
<limit>
|
||
<counter>LINE</counter>
|
||
<value>COVEREDRATIO</value>
|
||
<minimum>0.00</minimum>
|
||
</limit>
|
||
</limits>
|
||
</rule>
|
||
</rules>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
<configuration>
|
||
<!-- 排除不需要生成覆盖率报告的类 -->
|
||
<excludes>
|
||
<exclude>**/Application.class</exclude>
|
||
<exclude>**/config/**</exclude>
|
||
<exclude>**/dto/**</exclude>
|
||
<exclude>**/vo/**</exclude>
|
||
<exclude>**/entity/**</exclude>
|
||
<exclude>**/util/exception/**</exclude>
|
||
</excludes>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
|
||
|
||
|
||
|
||
</project>
|