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 >
0 commit comments