Skip to content

Commit 0150592

Browse files
committed
Merge remote-tracking branch 'github/master' into develop
2 parents 6e9cb29 + 4c13265 commit 0150592

File tree

5 files changed

+71
-7
lines changed

5 files changed

+71
-7
lines changed

activerecord/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
<dependency>
3232
<groupId>io.mybatis</groupId>
3333
<artifactId>mybatis-mapper</artifactId>
34-
<version>${project.version}</version>
3534
</dependency>
3635
<dependency>
3736
<groupId>org.mybatis</groupId>

bom/pom.xml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>io.mybatis</groupId>
7+
<artifactId>mybatis-bom</artifactId>
8+
<version>1.2.2</version>
9+
<packaging>pom</packaging>
10+
11+
<name>${project.artifactId}</name>
12+
<description>MyBatis Mapper (Bill of Materials) | 依赖版本管理</description>
13+
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+
23+
<!-- 依赖管理 -->
24+
<dependencyManagement>
25+
<dependencies>
26+
<!-- 版本号不统一&项目并不在一起,是否放在此处声明 -->
27+
<dependency>
28+
<groupId>io.mybatis</groupId>
29+
<artifactId>mybatis-provider</artifactId>
30+
<version>${provider.version}</version>
31+
</dependency>
32+
<dependency>
33+
<groupId>${project.groupId}</groupId>
34+
<artifactId>mybatis-common</artifactId>
35+
<version>${mapper.version}</version>
36+
</dependency>
37+
<dependency>
38+
<groupId>${project.groupId}</groupId>
39+
<artifactId>mybatis-mapper</artifactId>
40+
<version>${mapper.version}</version>
41+
</dependency>
42+
<dependency>
43+
<groupId>${project.groupId}</groupId>
44+
<artifactId>mybatis-service</artifactId>
45+
<version>${mapper.version}</version>
46+
</dependency>
47+
<dependency>
48+
<groupId>${project.groupId}</groupId>
49+
<artifactId>mybatis-activerecord</artifactId>
50+
<version>${mapper.version}</version>
51+
</dependency>
52+
<dependency>
53+
<groupId>${project.groupId}</groupId>
54+
<artifactId>mybatis-generator</artifactId>
55+
<version>${mapper.version}</version>
56+
</dependency>
57+
<dependency>
58+
<groupId>${project.groupId}</groupId>
59+
<artifactId>mybatis-jpa</artifactId>
60+
<version>${mapper.version}</version>
61+
</dependency>
62+
</dependencies>
63+
</dependencyManagement>
64+
65+
</project>

mapper/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
<dependency>
3636
<groupId>io.mybatis</groupId>
3737
<artifactId>mybatis-common</artifactId>
38-
<version>${project.version}</version>
3938
</dependency>
4039
<dependency>
4140
<groupId>junit</groupId>

pom.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
</scm>
5151

5252
<modules>
53+
<module>bom</module>
5354
<module>mapper</module>
5455
<module>service</module>
5556
<module>activerecord</module>
@@ -83,9 +84,11 @@
8384
<dependencyManagement>
8485
<dependencies>
8586
<dependency>
86-
<groupId>io.mybatis</groupId>
87-
<artifactId>mybatis-provider</artifactId>
88-
<version>${provider.version}</version>
87+
<groupId>${project.groupId}</groupId>
88+
<artifactId>mybatis-bom</artifactId>
89+
<version>${project.version}</version>
90+
<type>pom</type>
91+
<scope>import</scope>
8992
</dependency>
9093

9194
<dependency>

service/pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@
3131
<dependency>
3232
<groupId>io.mybatis</groupId>
3333
<artifactId>mybatis-mapper</artifactId>
34-
<version>${project.version}</version>
3534
</dependency>
3635
<dependency>
3736
<groupId>io.mybatis</groupId>
3837
<artifactId>mybatis-common</artifactId>
39-
<version>${project.version}</version>
4038
</dependency>
4139
<dependency>
4240
<groupId>org.mybatis</groupId>

0 commit comments

Comments
 (0)