131 lines
4.7 KiB
XML
131 lines
4.7 KiB
XML
<?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>
|
||
<parent>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-parent</artifactId>
|
||
<version>4.1.0</version>
|
||
<relativePath/> <!-- lookup parent from repository -->
|
||
</parent>
|
||
<groupId>cn.g3soft</groupId>
|
||
<artifactId>erp-api</artifactId>
|
||
<version>0.0.1-SNAPSHOT</version>
|
||
<name>erp-api</name>
|
||
<description>erp-api</description>
|
||
<properties>
|
||
<java.version>21</java.version>
|
||
<!--
|
||
默认排除的 JUnit 标签。打上 @Tag("db") 的用例需要连真实 SQL Server,
|
||
在没有工作流表的库上会直接构建失败,因此**默认不随 mvnw test 运行**;
|
||
要跑它们用 -Pdb-tests(见文件末尾的 profile)。
|
||
-->
|
||
<excluded.groups>db</excluded.groups>
|
||
</properties>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-webmvc</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-jdbc</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>druid</artifactId>
|
||
<version>1.2.18</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.jsonwebtoken</groupId>
|
||
<artifactId>jjwt-api</artifactId>
|
||
<version>0.12.6</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.jsonwebtoken</groupId>
|
||
<artifactId>jjwt-impl</artifactId>
|
||
<version>0.12.6</version>
|
||
<scope>runtime</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.jsonwebtoken</groupId>
|
||
<artifactId>jjwt-jackson</artifactId>
|
||
<version>0.12.6</version>
|
||
<scope>runtime</scope>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.fasterxml.jackson.core</groupId>
|
||
<artifactId>jackson-databind</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.lionsoul</groupId>
|
||
<artifactId>ip2region</artifactId>
|
||
<version>3.3.7</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.github.ua-parser</groupId>
|
||
<artifactId>uap-java</artifactId>
|
||
<version>1.6.1</version>
|
||
</dependency>
|
||
|
||
<!-- Excel 导出:Apache Fesod (Incubating)(EasyExcel 的 Apache 续作),
|
||
自带 POI 5.5.1 / Commons CSV / Ehcache,不要再单独引 POI 以免版本冲突 -->
|
||
<dependency>
|
||
<groupId>org.apache.fesod</groupId>
|
||
<artifactId>fesod-sheet</artifactId>
|
||
<version>2.0.2-incubating</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-devtools</artifactId>
|
||
<scope>runtime</scope>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.microsoft.sqlserver</groupId>
|
||
<artifactId>mssql-jdbc</artifactId>
|
||
<scope>runtime</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-webmvc-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-surefire-plugin</artifactId>
|
||
<configuration>
|
||
<!-- 默认跳过需要真库的用例;-Pdb-tests 会把它置空 -->
|
||
<excludedGroups>${excluded.groups}</excludedGroups>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
|
||
<profiles>
|
||
<!--
|
||
连真库的集成测试(打 @Tag("db")):./mvnw.cmd -o test -Pdb-tests
|
||
前置条件:server/config/dbconfigs/G3HD.properties 指向的库里已执行 sql/ 下的
|
||
workflow 建表与注册脚本(含 13 张 wf_* 表、s_power 动作权限点、mock 数据)。
|
||
-->
|
||
<profile>
|
||
<id>db-tests</id>
|
||
<properties>
|
||
<excluded.groups></excluded.groups>
|
||
</properties>
|
||
</profile>
|
||
</profiles>
|
||
|
||
</project>
|