Browse Source

refactor(dependencies): 统一MyBatis-Plus依赖管理并移除冗余测试依赖

- 在父pom中使用属性变量统一管理mybatis-plus-boot-starter版本
- 移除firefighting-pressure-service中的mybatis-spring-boot-starter-test测试依赖
- 删除manhole-service中重复的mybatis-plus-boot-starter版本声明
- 通过mybatis-plus-boot-starter统一提供相关测试支持,避免依赖冲突
林仔 4 days ago
parent
commit
de097d083d
3 changed files with 4 additions and 10 deletions
  1. 2 7
      firefighting-pressure-service/pom.xml
  2. 1 2
      manhole-service/pom.xml
  3. 1 1
      pom.xml

+ 2 - 7
firefighting-pressure-service/pom.xml

@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?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">
@@ -34,12 +34,7 @@
             <artifactId>zksy-system</artifactId>
             <version>3.9.0</version>
         </dependency>
-        <dependency>
-            <groupId>org.mybatis.spring.boot</groupId>
-            <artifactId>mybatis-spring-boot-starter-test</artifactId>
-            <version>3.0.5</version>
-            <scope>test</scope>
-        </dependency>
+        <!-- mybatis-spring-boot-starter-test 已由 mybatis-plus-boot-starter 提供兼容版本,无需单独引入 -->
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-web</artifactId>

+ 1 - 2
manhole-service/pom.xml

@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?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>
@@ -44,7 +44,6 @@
         <dependency>
             <groupId>com.baomidou</groupId>
             <artifactId>mybatis-plus-boot-starter</artifactId>
-            <version>3.5.5</version>
         </dependency>
         <!--nacos 服务注册发现-->
         <dependency>

+ 1 - 1
pom.xml

@@ -85,7 +85,7 @@
             <dependency>
                 <groupId>com.baomidou</groupId>
                 <artifactId>mybatis-plus-boot-starter</artifactId>
-                <version>3.5.5</version>
+                <version>${mybatis-plus.version}</version>
             </dependency>
             <!--hutool工具包-->
             <dependency>