-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
132 lines (121 loc) · 4 KB
/
pom.xml
File metadata and controls
132 lines (121 loc) · 4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?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">
<modelVersion>4.0.0</modelVersion>
<groupId>priv.wmc</groupId>
<artifactId>mybatis-learn</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<build>
<!-- 源码目录默认只将java文件编译生成为class到target下, 如果希望还将xml文件也生成到target目录下, 就需要做如下配置 -->
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<!-- 下面这个完全可以不用写,因为像是默认的配置 -->
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<!--
配合mybatis的useActualParamName配置项使用
作用是Mapper.class保留接口方法的形参名,从而Mapper.xml中可以根据#{形参名}取值
-->
<!-- <compilerArgs>-->
<!-- <arg>-parameters</arg>-->
<!-- </compilerArgs>-->
</configuration>
</plugin>
</plugins>
</build>
<modules>
<module>common</module>
<module>learn-01</module>
<module>learn-02</module>
<module>learn-03</module>
<module>learn-04</module>
<module>learn-05</module>
<module>learn-06</module>
<module>learn-07</module>
</modules>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>priv.wmc</groupId>
<artifactId>common</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>priv.wmc</groupId>
<artifactId>learn-01</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>priv.wmc</groupId>
<artifactId>learn-02</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>priv.wmc</groupId>
<artifactId>learn-03</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>priv.wmc</groupId>
<artifactId>learn-04</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.21</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mybatis/mybatis -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.5.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.12</version>
<scope>provided</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.13.3</version>
</dependency>
</dependencies>
</project>