|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" |
3 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 | 4 | <modelVersion>4.0.0</modelVersion> |
5 | 5 |
|
6 | 6 | <parent> |
|
15 | 15 | <version>1.0.0</version> |
16 | 16 | <packaging>jar</packaging> |
17 | 17 |
|
18 | | - <properties> |
19 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
20 | | - <java.version>1.8</java.version> |
21 | | - <maven.compiler.source>${java.version}</maven.compiler.source> |
22 | | - <maven.compiler.target>${java.version}</maven.compiler.target> |
23 | | - |
24 | | - <spring.version>4.3.13.RELEASE</spring.version> |
25 | | - <logback.version>1.2.3</logback.version> |
26 | | - <junit.version>4.12</junit.version> |
27 | | - </properties> |
28 | | - |
29 | 18 | <dependencies> |
30 | 19 | <dependency> |
31 | 20 | <groupId>org.springframework.boot</groupId> |
32 | 21 | <artifactId>spring-boot-starter-jdbc</artifactId> |
33 | 22 | </dependency> |
34 | | - <!-- db begin --> |
35 | | - <dependency> |
36 | | - <groupId>mysql</groupId> |
37 | | - <artifactId>mysql-connector-java</artifactId> |
38 | | - <version>8.0.21</version> |
39 | | - </dependency> |
40 | | - <dependency> |
41 | | - <groupId>org.apache.commons</groupId> |
42 | | - <artifactId>commons-pool2</artifactId> |
43 | | - <version>2.5.0</version> |
44 | | - </dependency> |
45 | | - <!-- db end --> |
46 | | - |
47 | | - <!-- log start --> |
48 | | - <dependency> |
49 | | - <groupId>ch.qos.logback</groupId> |
50 | | - <artifactId>logback-classic</artifactId> |
51 | | - </dependency> |
52 | | - <!-- log end --> |
53 | | - |
54 | | - <!-- spring begin --> |
55 | 23 | <dependency> |
56 | | - <groupId>org.springframework</groupId> |
57 | | - <artifactId>spring-context-support</artifactId> |
| 24 | + <groupId>org.springframework.boot</groupId> |
| 25 | + <artifactId>spring-boot-starter-test</artifactId> |
| 26 | + <scope>test</scope> |
58 | 27 | </dependency> |
59 | 28 | <dependency> |
60 | | - <groupId>org.springframework</groupId> |
61 | | - <artifactId>spring-test</artifactId> |
62 | | - <scope>test</scope> |
| 29 | + <groupId>mysql</groupId> |
| 30 | + <artifactId>mysql-connector-java</artifactId> |
63 | 31 | </dependency> |
64 | | - <!-- spring end --> |
65 | | - |
66 | | - <!-- test begin --> |
67 | 32 | <dependency> |
68 | | - <groupId>junit</groupId> |
69 | | - <artifactId>junit</artifactId> |
| 33 | + <groupId>org.projectlombok</groupId> |
| 34 | + <artifactId>lombok</artifactId> |
70 | 35 | </dependency> |
71 | | - <!-- test end --> |
72 | 36 | </dependencies> |
73 | 37 |
|
74 | | - <dependencyManagement> |
75 | | - <dependencies> |
76 | | - <dependency> |
77 | | - <groupId>org.springframework</groupId> |
78 | | - <artifactId>spring-framework-bom</artifactId> |
79 | | - <version>${spring.version}</version> |
80 | | - <type>pom</type> |
81 | | - <scope>import</scope> |
82 | | - </dependency> |
83 | | - |
84 | | - <!-- database begin --> |
85 | | - <dependency> |
86 | | - <groupId>redis.clients</groupId> |
87 | | - <artifactId>jedis</artifactId> |
88 | | - <version>${jedis.version}</version> |
89 | | - </dependency> |
90 | | - <!-- database end --> |
91 | | - |
92 | | - <!-- log begin --> |
93 | | - <dependency> |
94 | | - <groupId>ch.qos.logback</groupId> |
95 | | - <artifactId>logback-parent</artifactId> |
96 | | - <version>${logback.version}</version> |
97 | | - <type>pom</type> |
98 | | - <scope>import</scope> |
99 | | - </dependency> |
100 | | - <!-- log end --> |
101 | | - |
102 | | - <!-- test begin --> |
103 | | - <dependency> |
104 | | - <groupId>junit</groupId> |
105 | | - <artifactId>junit</artifactId> |
106 | | - <version>${junit.version}</version> |
107 | | - <scope>test</scope> |
108 | | - </dependency> |
109 | | - <!-- test end --> |
110 | | - </dependencies> |
111 | | - </dependencyManagement> |
112 | | - |
113 | 38 | <build> |
114 | | - <finalName>${project.artifactId}</finalName> |
115 | | - <resources> |
116 | | - <resource> |
117 | | - <filtering>true</filtering> |
118 | | - <directory>src/main/resources</directory> |
119 | | - <includes> |
120 | | - <include>logback.xml</include> |
121 | | - </includes> |
122 | | - </resource> |
123 | | - </resources> |
| 39 | + <plugins> |
| 40 | + <plugin> |
| 41 | + <groupId>org.springframework.boot</groupId> |
| 42 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 43 | + </plugin> |
| 44 | + </plugins> |
124 | 45 | </build> |
125 | 46 | </project> |
0 commit comments