1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3 <modelVersion>4.0.0</modelVersion>
4 <groupId>com.ssm.maven.core</groupId>
5 <artifactId>ssm-maven</artifactId>
6 <packaging>war</packaging>
7 <version>1.0-SNAPSHOT</version>
8 <name>ssm-maven</name>
9 <url>http://maven.apache.org</url>
10
11 <properties>
12 <!-- 數據庫相關版本 -->
13 <jdbc.driver.version>5.1.25</jdbc.driver.version>
14 <mybatis.version>3.2.5</mybatis.version>
15 <mybatis-spring.version>1.2.2</mybatis-spring.version>
16 <!-- spring版本 -->
17 <spring.version>4.2.4.RELEASE</spring.version>
18 <!-- encoding -->
19 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20 <!-- autoconfig -->
21 <autoconfig-plugin-version>1.2</autoconfig-plugin-version>
22 <maven.test.skip>true</maven.test.skip>
23 </properties>
24
25 <dependencies>
26 <dependency>
27 <groupId>junit</groupId>
28 <artifactId>junit</artifactId>
29 <version>4.9</version>
30 <scope>test</scope>
31 </dependency>
32 <dependency>
33 <groupId>org.springframework</groupId>
34 <artifactId>spring-test</artifactId>
35 <version>${spring.version}</version>
36 <scope>test</scope>
37 </dependency>
38 <dependency>
39 <groupId>commons-logging</groupId>
40 <artifactId>commons-logging</artifactId>
41 <version>1.1.3</version>
42 </dependency>
43 <dependency>
44 <groupId>commons-collections</groupId>
45 <artifactId>commons-collections</artifactId>
46 <version>3.2.1</version>
47 </dependency>
48 <dependency>
49 <groupId>commons-io</groupId>
50 <artifactId>commons-io</artifactId>
51 <version>2.4</version>
52 </dependency>
53 <dependency>
54 <groupId>commons-lang</groupId>
55 <artifactId>commons-lang</artifactId>
56 <version>2.6</version>
57 </dependency>
58
59 <!-- Begin: 數據庫依賴包 -->
60 <dependency>
61 <groupId>org.mybatis</groupId>
62 <artifactId>mybatis</artifactId>
63 <version>${mybatis.version}</version>
64 </dependency>
65 <dependency>
66 <groupId>org.mybatis</groupId>
67 <artifactId>mybatis-spring</artifactId>
68 <version>${mybatis-spring.version}</version>
69 </dependency>
70 <dependency>
71 <groupId>mysql</groupId>
72 <artifactId>mysql-connector-java</artifactId>
73 <version>${jdbc.driver.version}</version>
74 <scope>runtime</scope>
75 </dependency>
76 <!-- End: 數據庫依賴包 -->
77
78 <!-- Begin: 日誌依賴包 -->
79 <dependency>
80 <groupId>org.slf4</groupId>
81 <artifactId>slf4j-api</artifactId>
82 <version>20160310</version>
83 </dependency>
84 <dependency>
85 <groupId>org.slf4j</groupId>
86 <artifactId>slf4j-log4j12</artifactId>
87 <version>1.7.7</version>
88 </dependency>
89 <dependency>
90 <groupId>log4j</groupId>
91 <artifactId>log4j</artifactId>
92 <version>1.2.16</version>
93 </dependency>
94 <!-- End: 日誌依賴包 -->
95
96 <!-- Begin: aspectj相關jar包-->
97 <dependency>
98 <groupId>org.aspectj</groupId>
99 <artifactId>aspectjrt</artifactId>
100 <version>1.7.4</version>
101 </dependency>
102 <dependency>
103 <groupId>org.aspectj</groupId>
104 <artifactId>aspectjweaver</artifactId>
105 <version>1.7.4</version>
106 </dependency>
107 <!-- End: aspectj相關jar包-->
108
109 <!-- Begin: spring依賴 -->
110 <dependency>
111 <groupId>org.springframework</groupId>
112 <artifactId>spring-context-support</artifactId>
113 <version>${spring.version}</version>
114 </dependency>
115 <dependency>
116 <groupId>org.springframework</groupId>
117 <artifactId>spring-jdbc</artifactId>
118 <version>${spring.version}</version>
119 </dependency>
120 <dependency>
121 <groupId>org.springframework</groupId>
122 <artifactId>spring-tx</artifactId>
123 <version>${spring.version}</version>
124 </dependency>
125 <dependency>
126 <groupId>org.springframework</groupId>
127 <artifactId>spring-webmvc</artifactId>
128 <version>${spring.version}</version>
129 </dependency>
130 <!-- End: spring依賴 -->
131
132 <dependency>
133 <groupId>javax.servlet</groupId>
134 <artifactId>javax.servlet-api</artifactId>
135 <version>3.1.0</version>
136 <scope>provided</scope>
137 </dependency>
138 <dependency>
139 <groupId>javax.servlet.jsp</groupId>
140 <artifactId>jsp-api</artifactId>
141 <version>2.2</version>
142 </dependency>
143 <dependency>
144 <groupId>javax.servlet</groupId>
145 <artifactId>jstl</artifactId>
146 <version>1.2</version>
147 </dependency>
148
149 <dependency>
150 <groupId>net.sf.json-lib</groupId>
151 <artifactId>json-lib</artifactId>
152 <version>2.2.3</version>
153 <classifier>jdk15</classifier>
154 </dependency>
155
156 <dependency>
157 <groupId>com.fasterxml.jackson.core</groupId>
158 <artifactId>jackson-databind</artifactId>
159 <version>2.5.3</version>
160 </dependency>
161
162 <dependency>
163 <groupId>com.alibaba</groupId>
164 <artifactId>fastjson</artifactId>
165 <version>1.2.4</version>
166 </dependency>
167
168 <dependency>
169 <groupId>commons-codec</groupId>
170 <artifactId>commons-codec</artifactId>
171 <version>1.4</version>
172 </dependency>
173
174 </dependencies>
175
176 <build>
177 <finalName>ssm-maven</finalName>
178 <plugins>
179
180 <plugin>
181 <groupId>org.apache.maven.plugins</groupId>
182 <artifactId>maven-compiler-plugin</artifactId>
183 <version>3.2</version>
184 <configuration>
185 <source>1.7</source>
186 <target>1.7</target>
187 </configuration>
188 </plugin>
189
190 <plugin>
191 <groupId>org.apache.tomcat.maven</groupId>
192 <artifactId>tomcat7-maven-plugin</artifactId>
193 <version>2.2</version>
194 <configuration>
195 <port>8080</port>
196 <charset>${project.build.sourceEncoding}</charset>
197 <server>tomcat7</server>
198 </configuration>
199 </plugin>
200
201 </plugins>
202 </build>
203
204 </project>