maven 基本配置

 1 <?xml version="1.0" encoding="UTF-8"?>
 2 <project xmlns="http://maven.apache.org/POM/4.0.0"
 3          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 5     <modelVersion>4.0.0</modelVersion>
 6 
 7     <groupId>wms</groupId>
 8     <artifactId>wms</artifactId>
 9     <version>1.0-SNAPSHOT</version>
10 
11     <build>
12         <plugins>
13             <plugin>
14                 <groupId>org.apache.maven.plugins</groupId>
15                 <artifactId>maven-compiler-plugin</artifactId>
16                 <version>2.3.2</version>
17                 <configuration>
18                     <source>1.8</source>
19                     <target>1.8</target>
20                 </configuration>
21             </plugin>
22         </plugins>
23     </build>
24 
25     <dependencies>
26         <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
27         <dependency>
28             <groupId>org.springframework</groupId>
29             <artifactId>spring-webmvc</artifactId>
30             <version>4.3.5.RELEASE</version>
31         </dependency>
32         <!-- https://mvnrepository.com/artifact/org.springframework/spring-orm -->
33         <dependency>
34             <groupId>org.springframework</groupId>
35             <artifactId>spring-orm</artifactId>
36             <version>4.3.5.RELEASE</version>
37         </dependency>
38         <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
39         <dependency>
40             <groupId>com.fasterxml.jackson.core</groupId>
41             <artifactId>jackson-databind</artifactId>
42             <version>2.8.7</version>
43         </dependency>
44         <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
45         <dependency>
46             <groupId>mysql</groupId>
47             <artifactId>mysql-connector-java</artifactId>
48             <version>5.1.39</version>
49         </dependency>
50         <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-core -->
51         <dependency>
52             <groupId>org.hibernate</groupId>
53             <artifactId>hibernate-core</artifactId>
54             <version>5.2.6.Final</version>
55         </dependency>
56         <!-- https://mvnrepository.com/artifact/com.mchange/c3p0 -->
57         <dependency>
58             <groupId>com.mchange</groupId>
59             <artifactId>c3p0</artifactId>
60             <version>0.9.5.2</version>
61         </dependency>
62         <!-- https://mvnrepository.com/artifact/log4j/log4j -->
63         <dependency>
64             <groupId>log4j</groupId>
65             <artifactId>log4j</artifactId>
66             <version>1.2.17</version>
67         </dependency>
68 
69     </dependencies>
70 
71 </project>

 

posted on 2017-03-30 14:26  jonney_wang  阅读(185)  评论(0编辑  收藏  举报

导航