|
2 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 | 4 | <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> |
9 | 11 | <packaging>pom</packaging> |
10 | 12 |
|
11 | 13 | <name>${project.artifactId}</name> |
12 | 14 | <description>MyBatis Mapper (Bill of Materials) | 依赖版本管理</description> |
13 | 15 |
|
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 | 16 | <!-- 依赖管理 --> |
24 | 17 | <dependencyManagement> |
25 | 18 | <dependencies> |
|
30 | 23 | <version>${provider.version}</version> |
31 | 24 | </dependency> |
32 | 25 | <dependency> |
33 | | - <groupId>${project.groupId}</groupId> |
| 26 | + <groupId>io.mybatis</groupId> |
34 | 27 | <artifactId>mybatis-common</artifactId> |
35 | | - <version>${mapper.version}</version> |
| 28 | + <version>${project.version}</version> |
36 | 29 | </dependency> |
37 | 30 | <dependency> |
38 | | - <groupId>${project.groupId}</groupId> |
| 31 | + <groupId>io.mybatis</groupId> |
39 | 32 | <artifactId>mybatis-mapper</artifactId> |
40 | | - <version>${mapper.version}</version> |
| 33 | + <version>${project.version}</version> |
41 | 34 | </dependency> |
42 | 35 | <dependency> |
43 | | - <groupId>${project.groupId}</groupId> |
| 36 | + <groupId>io.mybatis</groupId> |
44 | 37 | <artifactId>mybatis-service</artifactId> |
45 | | - <version>${mapper.version}</version> |
| 38 | + <version>${project.version}</version> |
46 | 39 | </dependency> |
47 | 40 | <dependency> |
48 | | - <groupId>${project.groupId}</groupId> |
| 41 | + <groupId>io.mybatis</groupId> |
49 | 42 | <artifactId>mybatis-activerecord</artifactId> |
50 | | - <version>${mapper.version}</version> |
| 43 | + <version>${project.version}</version> |
51 | 44 | </dependency> |
52 | 45 | <dependency> |
53 | | - <groupId>${project.groupId}</groupId> |
| 46 | + <groupId>io.mybatis</groupId> |
54 | 47 | <artifactId>mybatis-generator</artifactId> |
55 | | - <version>${mapper.version}</version> |
| 48 | + <version>${project.version}</version> |
56 | 49 | </dependency> |
57 | 50 | <dependency> |
58 | | - <groupId>${project.groupId}</groupId> |
| 51 | + <groupId>io.mybatis</groupId> |
59 | 52 | <artifactId>mybatis-jpa</artifactId> |
60 | | - <version>${mapper.version}</version> |
| 53 | + <version>${project.version}</version> |
61 | 54 | </dependency> |
62 | 55 | </dependencies> |
63 | 56 | </dependencyManagement> |
|
0 commit comments