首页 > 代码库 > IDEA配置pom.xml
IDEA配置pom.xml
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.tcl.kuyu.salesreport</groupId>
5 <artifactId>salesreport-server</artifactId>
6 <packaging>war</packaging>
7 <version>1.0-SNAPSHOT</version>
8 <name>salesreport-server</name>
9 <url>http://maven.apache.org</url>
10
11 <!-- 刚开始的时候,我很不习惯,也不太理解为什么要用下面的标签,后来才觉得,代码就该这样。。。修改的时候也会特别的方便 -->
12 <properties>
13 <aspectj.version>1.8.9</aspectj.version>
14 <java.version>1.8</java.version>
15 <junit.version>4.12</junit.version>
16 <logback.version>1.1.7</logback.version>
17 <logback-ext-spring.version>0.1.4</logback-ext-spring.version>
18 <mysql.driver.version>5.1.38</mysql.driver.version>
19 <slf4j.version>1.7.21</slf4j.version>
20 <spring.version>4.2.5.RELEASE</spring.version>
21 <jackson.version>2.5.2</jackson.version>
22 <mybatis.version>3.4.0</mybatis.version>
23 <mybatis.spring.version>1.3.0</mybatis.spring.version>
24 <mybatis-plus.version>1.2.16</mybatis-plus.version>
25 <fastjson.version>1.2.11</fastjson.version>
26 <shiro.version>1.2.6</shiro.version>
27 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
28 <jetty.web.xml>${basedir}/jetty-webdefault.xml</jetty.web.xml>
29 </properties>
30
31
32 <dependencies>
33 <!-- junit 此处是单元测试的依赖-->
34 <dependency>
35 <groupId>junit</groupId>
36 <artifactId>junit</artifactId>
37 <version>${junit.version}</version>
38 <scope>test</scope>
39 </dependency>
40
41 <dependency>
42 <groupId>junitperf</groupId>
43 <artifactId>junitperf</artifactId>
44 <version>1.8</version>
45 <scope>test</scope>
46 </dependency>
47
48 <!-- spring -->
49 <dependency>
50 <groupId>org.springframework</groupId>
51 <artifactId>spring-aop</artifactId>
52 <version>${spring.version}</version>
53 </dependency>
54
55 <dependency>
56 <groupId>org.springframework</groupId>
57 <artifactId>spring-aspects</artifactId>
58 <version>${spring.version}</version>
59 </dependency>
60
61 <dependency>
62 <groupId>org.springframework</groupId>
63 <artifactId>spring-beans</artifactId>
64 <version>${spring.version}</version>
65 </dependency>
66
67 <dependency>
68 <groupId>org.springframework</groupId>
69 <artifactId>spring-context</artifactId>
70 <version>${spring.version}</version>
71 </dependency>
72
73 <dependency>
74 <groupId>org.springframework</groupId>
75 <artifactId>spring-context-support</artifactId>
76 <version>${spring.version}</version>
77 </dependency>
78
79 <dependency>
80 <groupId>org.springframework</groupId>
81 <artifactId>spring-core</artifactId>
82 <version>${spring.version}</version>
83 </dependency>
84
85 <dependency>
86 <groupId>org.springframework</groupId>
87 <artifactId>spring-expression</artifactId>
88 <version>${spring.version}</version>
89 </dependency>
90
91 <dependency>
92 <groupId>org.springframework</groupId>
93 <artifactId>spring-jdbc</artifactId>
94 <version>${spring.version}</version>
95 </dependency>
96
97 <dependency>
98 <groupId>org.springframework</groupId>
99 <artifactId>spring-jms</artifactId>
100 <version>${spring.version}</version>
101 </dependency>
102
103 <dependency>
104 <groupId>org.springframework</groupId>
105 <artifactId>spring-orm</artifactId>
106 <version>${spring.version}</version>
107 </dependency>
108
109 <dependency>
110 <groupId>org.springframework</groupId>
111 <artifactId>spring-oxm</artifactId>
112 <version>${spring.version}</version>
113 </dependency>
114
115 <dependency>
116 <groupId>org.springframework</groupId>
117 <artifactId>spring-test</artifactId>
118 <version>${spring.version}</version>
119 <scope>test</scope>
120 </dependency>
121
122 <dependency>
123 <groupId>org.springframework</groupId>
124 <artifactId>spring-tx</artifactId>
125 <version>${spring.version}</version>
126 </dependency>
127
128 <dependency>
129 <groupId>org.springframework</groupId>
130 <artifactId>spring-web</artifactId>
131 <version>${spring.version}</version>
132 </dependency>
133
134 <dependency>
135 <groupId>org.springframework</groupId>
136 <artifactId>spring-webmvc</artifactId>
137 <version>${spring.version}</version>
138 </dependency>
139
140 <dependency>
141 <groupId>commons-dbcp</groupId>
142 <artifactId>commons-dbcp</artifactId>
143 <version>1.4</version>
144 </dependency>
145
146
147 <!-- freemark 根据项目需要,简单的web项目的话此处是不需要的-->
148 <dependency>
149 <groupId>org.freemarker</groupId>
150 <artifactId>freemarker</artifactId>
151 <version>[2.3.19,2.4)</version>
152 </dependency>
153
154 <dependency>
155 <groupId>commons-httpclient</groupId>
156 <artifactId>commons-httpclient</artifactId>
157 <version>3.1</version>
158 </dependency>
159
160 <dependency>
161 <groupId>org.apache.commons</groupId>
162 <artifactId>commons-lang3</artifactId>
163 <version>3.1</version>
164 </dependency>
165
166 <dependency>
167 <groupId>commons-collections</groupId>
168 <artifactId>commons-collections</artifactId>
169 <version>3.2.2</version>
170 </dependency>
171
172 <dependency>
173 <groupId>com.alibaba</groupId>
174 <artifactId>fastjson</artifactId>
175 <version>${fastjson.version}</version>
176 </dependency>
177
178 <!-- logback begin -->
179 <dependency>
180 <groupId>org.slf4j</groupId>
181 <artifactId>slf4j-api</artifactId>
182 <version>${slf4j.version}</version>
183 </dependency>
184
185 <dependency>
186 <groupId>ch.qos.logback</groupId>
187 <artifactId>logback-core</artifactId>
188 <version>${logback.version}</version>
189 </dependency>
190
191 <dependency>
192 <groupId>ch.qos.logback</groupId>
193 <artifactId>logback-classic</artifactId>
194 <version>${logback.version}</version>
195 </dependency>
196 <!-- logback end -->
197
198 <dependency>
199 <groupId>org.aspectj</groupId>
200 <artifactId>aspectjrt</artifactId>
201 <version>${aspectj.version}</version>
202 </dependency>
203 <dependency>
204 <groupId>org.aspectj</groupId>
205 <artifactId>aspectjweaver</artifactId>
206 <version>${aspectj.version}</version>
207 </dependency>
208
209 <dependency>
210 <groupId>mysql</groupId>
211 <artifactId>mysql-connector-java</artifactId>
212 <version>${mysql.driver.version}</version>
213 </dependency>
214
215 <dependency>
216 <groupId>org.mybatis</groupId>
217 <artifactId>mybatis</artifactId>
218 <version>${mybatis.version}</version>
219 </dependency>
220 <dependency>
221 <groupId>org.mybatis</groupId>
222 <artifactId>mybatis-spring</artifactId>
223 <version>${mybatis.spring.version}</version>
224 </dependency>
225 <dependency>
226 <groupId>com.baomidou</groupId>
227 <artifactId>mybatis-plus</artifactId>
228 <version>${mybatis-plus.version}</version>
229 </dependency>
230
231 <dependency>
232 <groupId>com.fasterxml.jackson.core</groupId>
233 <artifactId>jackson-databind</artifactId>
234 <version>${jackson.version}</version>
235 </dependency>
236
237 <dependency>
238 <groupId>com.fasterxml.jackson.core</groupId>
239 <artifactId>jackson-core</artifactId>
240 <version>${jackson.version}</version>
241 </dependency>
242
243 <dependency>
244 <groupId>commons-fileupload</groupId>
245 <artifactId>commons-fileupload</artifactId>
246 <version>1.3.1</version>
247 </dependency>
248
249 <dependency>
250 <groupId>javax.servlet.jsp</groupId>
251 <artifactId>jsp-api</artifactId>
252 <version>2.2</version>
253 <scope>provided</scope>
254 </dependency>
255
256 <dependency>
257 <groupId>javax.servlet</groupId>
258 <artifactId>servlet-api</artifactId>
259 <version>2.5</version>
260 <scope>provided</scope>
261 </dependency>
262
263 <dependency>
264 <groupId>com.mangofactory</groupId>
265 <artifactId>swagger-springmvc</artifactId>
266 <version>1.0.2</version>
267 </dependency>
268
269 <dependency>
270 <groupId>com.fasterxml.jackson.core</groupId>
271 <artifactId>jackson-annotations</artifactId>
272 <version>${jackson.version}</version>
273 </dependency>
274
275 <dependency>
276 <groupId>com.alibaba</groupId>
277 <artifactId>druid</artifactId>
278 <version>1.0.18</version>
279 </dependency>
280
281 <dependency>
282 <groupId>javassist</groupId>
283 <artifactId>javassist</artifactId>
284 <version>3.12.1.GA</version>
285 </dependency>
286
287 <!-- shiro权限管理 -->
288 <dependency>
289 <groupId>org.apache.shiro</groupId>
290 <artifactId>shiro-core</artifactId>
291 <version>${shiro.version}</version>
292 </dependency>
293 <dependency>
294 <groupId>org.apache.shiro</groupId>
295 <artifactId>shiro-web</artifactId>
296 <version>${shiro.version}</version>
297 </dependency>
298 <!-- 如果要与spring集成,需要添加此依赖 -->
299 <dependency>
300 <groupId>org.apache.shiro</groupId>
301 <artifactId>shiro-spring</artifactId>
302 <version>${shiro.version}</version>
303 </dependency>
304 <!-- shiro权限管理 -->
305
306 </dependencies>
307
308 <build>
309 <finalName>salesreport</finalName>
310
311 <!--下面的resources里面的配置,大家可以根据自身项目需要进行选择和修改-->
312 <resources>
313 <resource>
314 <directory>src/main/resources/commons</directory>
315 <filtering>true</filtering>
316 <includes>
317 <include>**/*.*</include>
318 </includes>
319 </resource>
320 <resource>
321 <directory>src/main/resources/${env}</directory>
322 <filtering>true</filtering>
323 <includes>
324 <include>**/*.*</include>
325 </includes>
326 </resource>
327 </resources>
328
329 <plugins>
330
331 <!-- 编译插件 -->
332 <plugin>
333 <artifactId>maven-compiler-plugin</artifactId>
334 <configuration>
335 <source>1.8</source>
336 <target>1.8</target>
337 <encoding>UTF-8</encoding>
338 </configuration>
339 </plugin>
340
341 <!-- 单元测试插件 -->
342 <plugin>
343 <groupId>org.apache.maven.plugins</groupId>
344 <artifactId>maven-surefire-plugin</artifactId>
345 <version>2.19</version>
346 <configuration>
347 <skipTests>true</skipTests>
348 </configuration>
349 </plugin>
350
351 <!--jetty 插件,mvn jetty:run -->
352 <plugin>
353 <groupId>org.eclipse.jetty</groupId>
354 <artifactId>jetty-maven-plugin</artifactId>
355 <version>9.3.7.v20160115</version>
356 <configuration>
357 <webApp>
358 <webDefaultXml>${jetty.web.xml}</webDefaultXml>
359 <contextPath>/</contextPath>
360 <descriptor>${basedir}/src/main/webapp/WEB-INF/web.xml</descriptor>
361 </webApp>
362 <stopKey>exit</stopKey>
363 <stopPort>9091</stopPort>
364 <webAppSourceDirectory>${project.basedir}/src/main/webapp</webAppSourceDirectory>
365 <scanIntervalSeconds>0</scanIntervalSeconds>
366 <httpConnector>
367 <port>8080</port>
368 </httpConnector>
369 </configuration>
370 </plugin>
371
372 </plugins>
373
374
375 </build>
376
377 <profiles>
378 <profile>
379 <id>dev</id>
380 <activation>
381 <activeByDefault>true</activeByDefault>
382 </activation>
383 <properties>
384 <env>dev</env>
385 </properties>
386 </profile>
387 <profile>
388 <id>sit</id>
389 <properties>
390 <env>sit</env>
391 </properties>
392 </profile>
393 <profile>
394 <id>prod</id>
395 <properties>
396 <env>prod</env>
397 </properties>
398 </profile>
399 <profile>
400 <id>uat</id>
401 <properties>
402 <env>uat</env>
403 </properties>
404 </profile>
405 </profiles>
406
407
408 </project>
IDEA配置pom.xml
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。