Skip to content

Commit 8d6d219

Browse files
committed
完善 mapper-bom
1 parent 0150592 commit 8d6d219

File tree

5 files changed

+26
-31
lines changed

5 files changed

+26
-31
lines changed

activerecord/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
<dependency>
3232
<groupId>io.mybatis</groupId>
3333
<artifactId>mybatis-mapper</artifactId>
34+
<version>${project.version}</version>
3435
</dependency>
3536
<dependency>
3637
<groupId>org.mybatis</groupId>

bom/pom.xml

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,17 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5-
6-
<groupId>io.mybatis</groupId>
7-
<artifactId>mybatis-bom</artifactId>
8-
<version>1.2.2</version>
5+
<parent>
6+
<artifactId>mybatis-parent</artifactId>
7+
<groupId>io.mybatis</groupId>
8+
<version>${revision}</version>
9+
</parent>
10+
<artifactId>mapper-bom</artifactId>
911
<packaging>pom</packaging>
1012

1113
<name>${project.artifactId}</name>
1214
<description>MyBatis Mapper (Bill of Materials) | 依赖版本管理</description>
1315

14-
<properties>
15-
<!--
16-
All dependencies listed in this pom will have version same as the version of this pom.
17-
-->
18-
<mapper.version>${project.version}</mapper.version>
19-
<!-- 通用方法核心 -->
20-
<provider.version>1.1.1</provider.version>
21-
</properties>
22-
2316
<!-- 依赖管理 -->
2417
<dependencyManagement>
2518
<dependencies>
@@ -30,34 +23,34 @@
3023
<version>${provider.version}</version>
3124
</dependency>
3225
<dependency>
33-
<groupId>${project.groupId}</groupId>
26+
<groupId>io.mybatis</groupId>
3427
<artifactId>mybatis-common</artifactId>
35-
<version>${mapper.version}</version>
28+
<version>${project.version}</version>
3629
</dependency>
3730
<dependency>
38-
<groupId>${project.groupId}</groupId>
31+
<groupId>io.mybatis</groupId>
3932
<artifactId>mybatis-mapper</artifactId>
40-
<version>${mapper.version}</version>
33+
<version>${project.version}</version>
4134
</dependency>
4235
<dependency>
43-
<groupId>${project.groupId}</groupId>
36+
<groupId>io.mybatis</groupId>
4437
<artifactId>mybatis-service</artifactId>
45-
<version>${mapper.version}</version>
38+
<version>${project.version}</version>
4639
</dependency>
4740
<dependency>
48-
<groupId>${project.groupId}</groupId>
41+
<groupId>io.mybatis</groupId>
4942
<artifactId>mybatis-activerecord</artifactId>
50-
<version>${mapper.version}</version>
43+
<version>${project.version}</version>
5144
</dependency>
5245
<dependency>
53-
<groupId>${project.groupId}</groupId>
46+
<groupId>io.mybatis</groupId>
5447
<artifactId>mybatis-generator</artifactId>
55-
<version>${mapper.version}</version>
48+
<version>${project.version}</version>
5649
</dependency>
5750
<dependency>
58-
<groupId>${project.groupId}</groupId>
51+
<groupId>io.mybatis</groupId>
5952
<artifactId>mybatis-jpa</artifactId>
60-
<version>${mapper.version}</version>
53+
<version>${project.version}</version>
6154
</dependency>
6255
</dependencies>
6356
</dependencyManagement>

mapper/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<dependency>
3636
<groupId>io.mybatis</groupId>
3737
<artifactId>mybatis-common</artifactId>
38+
<version>${project.version}</version>
3839
</dependency>
3940
<dependency>
4041
<groupId>junit</groupId>

pom.xml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,11 @@
8484
<dependencyManagement>
8585
<dependencies>
8686
<dependency>
87-
<groupId>${project.groupId}</groupId>
88-
<artifactId>mybatis-bom</artifactId>
89-
<version>${project.version}</version>
90-
<type>pom</type>
91-
<scope>import</scope>
87+
<groupId>io.mybatis</groupId>
88+
<artifactId>mybatis-provider</artifactId>
89+
<version>${provider.version}</version>
9290
</dependency>
93-
91+
9492
<dependency>
9593
<groupId>org.mybatis</groupId>
9694
<artifactId>mybatis</artifactId>

service/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@
3131
<dependency>
3232
<groupId>io.mybatis</groupId>
3333
<artifactId>mybatis-mapper</artifactId>
34+
<version>${project.version}</version>
3435
</dependency>
3536
<dependency>
3637
<groupId>io.mybatis</groupId>
3738
<artifactId>mybatis-common</artifactId>
39+
<version>${project.version}</version>
3840
</dependency>
3941
<dependency>
4042
<groupId>org.mybatis</groupId>

0 commit comments

Comments
 (0)