maven 通用pom.xml
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>com.test</groupId>
8 <artifactId>helloworld</artifactId>
9 <version>1.0-SNAPSHOT</version>
10
11 <properties>
12 <spring.version>4.2.6.RELEASE</spring.version>
13 <struts2.version>2.3.16.1</struts2.version>
14
15 <lucene.version>4.0.0</lucene.version>
16 <solr.version>4.0.0</solr.version>
17 <httpclient.version>4.1.2</httpclient.version>
18
19 <hibernate.version>4.3.4.Final</hibernate.version>
20 <mybatis.version>3.2.6</mybatis.version>
21 <mysql.version>5.1.29</mysql.version>
22 <ojdbc14.version>10.2.0.4.0</ojdbc14.version>
23
24 <servlet-api.version>2.5</servlet-api.version>
25 <jsp-api.version>2.2</jsp-api.version>
26 <jstl.version>1.2</jstl.version>
27
28 <fastjson.version>1.1.39</fastjson.version>
29
30 <commons-dbcp2.version>2.0</commons-dbcp2.version>
31 <commons-pool2.version>2.2</commons-pool2.version>
32 <commons-logging.version>1.1.3</commons-logging.version>
33 <commons-io.version>1.3.2</commons-io.version>
34 <commons-lang3.version>3.3.1</commons-lang3.version>
35 <commons-fileupload.version>1.2.1</commons-fileupload.version>
36
37 <log4j.version>1.2.17</log4j.version>
38 <slf4j.version>1.7.6</slf4j.version>
39 <dom4j.version>1.6.1</dom4j.version>
40 <jfreechart.version>1.0.17</jfreechart.version>
41 <shiro.version>1.2.3</shiro.version>
42
43 <aspectjweaver.version>1.7.4</aspectjweaver.version>
44 <bonecp.version>0.8.0.RELEASE</bonecp.version>
45 <druid.version>1.0.4</druid.version>
46 <c3p0.version>0.9.2.1</c3p0.version>
47 <testng.version>6.8.8</testng.version>
48 <junit.version>4.11</junit.version>
49 <freemarker.version>2.3.20</freemarker.version>
50 <velocity.version>1.7</velocity.version>
51 <tapestry.version>5.3.7</tapestry.version>
52
53 <asm.version>4.2</asm.version>
54 <cglib.version>3.1</cglib.version>
55
56 <!-- Plugin的属性定义 -->
57 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
58 <jdk.version>1.7</jdk.version>
59
60 <vendor.name>HaiPeng Wang</vendor.name>
61 <verdor.domain>http://www.whp8.com</verdor.domain>
62 </properties>
63
64 <dependencies>
65
66 <!--⑤ 依赖的测试类库-->
67 <dependency>
68 <groupId>org.springframework</groupId>
69 <artifactId>spring-test</artifactId>
70 <version>${spring.version}</version>
71 </dependency>
72
73 <dependency>
74 <groupId>junit</groupId>
75 <artifactId>junit</artifactId>
76 <version>4.8.2</version>
77 <scope>test</scope>
78 </dependency>
79
80 <!-- spring相关 -->
81 <dependency>
82 <groupId>org.springframework</groupId>
83 <artifactId>spring-core</artifactId>
84 <version>${spring.version}</version>
85 </dependency>
86 <dependency>
87 <groupId>org.springframework</groupId>
88 <artifactId>spring-beans</artifactId>
89 <version>${spring.version}</version>
90 </dependency>
91 <dependency>
92 <groupId>org.springframework</groupId>
93 <artifactId>spring-context</artifactId>
94 <version>${spring.version}</version>
95 </dependency>
96 <dependency>
97 <groupId>org.springframework</groupId>
98 <artifactId>spring-jdbc</artifactId>
99 <version>${spring.version}</version>
100 </dependency>
101 <dependency>
102 <groupId>org.springframework</groupId>
103 <artifactId>spring-web</artifactId>
104 <version>${spring.version}</version>
105 </dependency>
106 <dependency>
107 <groupId>org.springframework</groupId>
108 <artifactId>spring-webmvc</artifactId>
109 <version>${spring.version}</version>
110 </dependency>
111 <dependency>
112 <groupId>org.springframework</groupId>
113 <artifactId>spring-aop</artifactId>
114 <version>${spring.version}</version>
115 </dependency>
116 <dependency>
117 <groupId>org.springframework</groupId>
118 <artifactId>spring-tx</artifactId>
119 <version>${spring.version}</version>
120 </dependency>
121 <dependency>
122 <groupId>org.springframework</groupId>
123 <artifactId>spring-orm</artifactId>
124 <version>${spring.version}</version>
125 </dependency>
126 <dependency>
127 <groupId>org.springframework</groupId>
128 <artifactId>spring-context-support</artifactId>
129 <version>${spring.version}</version>
130 </dependency>
131 <dependency>
132 <groupId>org.springframework</groupId>
133 <artifactId>spring-test</artifactId>
134 <version>${spring.version}</version>
135 </dependency>
136 <dependency>
137 <groupId>org.springframework</groupId>
138 <artifactId>spring-jms</artifactId>
139 <version>${spring.version}</version>
140 </dependency>
141
142 <!-- 依赖的WEB类库-->
143 <!--<dependency>-->
144 <!--<groupId>javax.servlet.jsp</groupId>-->
145 <!--<artifactId>jsp-api</artifactId>-->
146 <!--<version>${jsp-api.version}</version>-->
147 <!--</dependency>-->
148 <dependency>
149 <groupId>javax.servlet</groupId>
150 <artifactId>servlet-api</artifactId>
151 <version>${servlet-api.version}</version>
152 </dependency>
153 <dependency>
154 <groupId>javax.servlet</groupId>
155 <artifactId>jstl</artifactId>
156 <version>${jstl.version}</version>
157 </dependency>
158
159 <!-- Json -->
160 <dependency>
161 <groupId>com.alibaba</groupId>
162 <artifactId>fastjson</artifactId>
163 <version>${fastjson.version}</version>
164 </dependency>
165
166 <dependency>
167 <groupId>com.google.guava</groupId>
168 <artifactId>guava</artifactId>
169 <version>r05</version>
170 </dependency>
171
172 <dependency>
173 <groupId>org.apache.httpcomponents</groupId>
174 <artifactId>httpclient</artifactId>
175 <version>${httpclient.version}</version>
176 </dependency>
177
178 <dependency>
179 <groupId>org.apache.httpcomponents</groupId>
180 <artifactId>httpcore</artifactId>
181 <version>${httpclient.version}</version>
182 </dependency>
183
184 <dependency>
185 <groupId>org.apache.httpcomponents</groupId>
186 <artifactId>httpclient-cache</artifactId>
187 <version>${httpclient.version}</version>
188 </dependency>
189
190 <dependency>
191 <groupId>org.apache.httpcomponents</groupId>
192 <artifactId>httpmime</artifactId>
193 <version>${httpclient.version}</version>
194 </dependency>
195
196
197 <dependency>
198 <groupId>commons-logging</groupId>
199 <artifactId>commons-logging</artifactId>
200 <version>1.1</version>
201 <exclusions>
202 <exclusion>
203 <groupId>logkit</groupId>
204 <artifactId>logkit</artifactId>
205 </exclusion>
206 <exclusion>
207 <groupId>avalon-framework</groupId>
208 <artifactId>avalon-framework</artifactId>
209 </exclusion>
210 </exclusions>
211 </dependency>
212
213 <dependency>
214 <groupId>org.slf4j</groupId>
215 <artifactId>slf4j-api</artifactId>
216 <version>1.6.4</version>
217 </dependency>
218
219 <dependency>
220 <groupId>org.slf4j</groupId>
221 <artifactId>slf4j-log4j12</artifactId>
222 <version>1.6.4</version>
223 </dependency>
224
225 <dependency>
226 <groupId>commons-lang</groupId>
227 <artifactId>commons-lang</artifactId>
228 <version>2.5</version>
229 </dependency>
230
231 <dependency>
232 <groupId>commons-io</groupId>
233 <artifactId>commons-io</artifactId>
234 <version>2.1</version>
235 </dependency>
236
237 <dependency>
238 <groupId>commons-codec</groupId>
239 <artifactId>commons-codec</artifactId>
240 <version>1.5</version>
241 </dependency>
242
243 <dependency>
244 <groupId>commons-beanutils</groupId>
245 <artifactId>commons-beanutils</artifactId>
246 <version>1.8.0</version>
247 </dependency>
248
249 <dependency>
250 <groupId>commons-collections</groupId>
251 <artifactId>commons-collections</artifactId>
252 <version>3.2</version>
253 </dependency>
254
255 <dependency>
256 <groupId>commons-fileupload</groupId>
257 <artifactId>commons-fileupload</artifactId>
258 <version>1.2.1</version>
259 </dependency>
260
261
262 <dependency>
263 <groupId>jstl</groupId>
264 <artifactId>jstl</artifactId>
265 <version>1.2</version>
266 </dependency>
267
268 <dependency>
269 <groupId>javax.servlet</groupId>
270 <artifactId>servlet-api</artifactId>
271 <version>2.5</version>
272 <scope>compile</scope>
273 </dependency>
274
275
276 <dependency>
277 <groupId>javax.servlet.jsp</groupId>
278 <artifactId>jsp-api</artifactId>
279 <version>2.0</version>
280 <scope>compile</scope>
281 </dependency>
282
283 <dependency>
284 <groupId>net.sf.json-lib</groupId>
285 <artifactId>json-lib</artifactId>
286 <version>2.1</version>
287 <classifier>jdk15</classifier>
288 </dependency>
289
290 <dependency>
291 <groupId>net.sf.ezmorph</groupId>
292 <artifactId>ezmorph</artifactId>
293 <version>1.0.6</version>
294 </dependency>
295
296 <dependency>
297 <groupId>log4j</groupId>
298 <artifactId>log4j</artifactId>
299 <version>1.2.16</version>
300 </dependency>
301
302 <dependency>
303 <groupId>junit</groupId>
304 <artifactId>junit</artifactId>
305 <version>4.8.2</version>
306 <scope>test</scope>
307 </dependency>
308
309
310 </dependencies>
311
312
313 <build>
314 <plugins>
315
316 <plugin>
317 <groupId>org.apache.maven.plugins</groupId>
318 <artifactId>maven-compiler-plugin</artifactId>
319 <version>2.5.1</version>
320 <configuration>
321 <source>1.6</source>
322 <target>1.6</target>
323 <encoding>UTF-8</encoding>
324 </configuration>
325 </plugin>
326
327 <plugin>
328 <groupId>org.mortbay.jetty</groupId>
329 <artifactId>maven-jetty-plugin</artifactId>
330 <version>6.1.26</version>
331 <configuration>
332 <scanIntervalSeconds>10</scanIntervalSeconds>
333 <webApp>
334 <contextPath>${project.artifactId}</contextPath>
335 </webApp>
336 <connectors>
337 <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
338 <port>8080</port>
339 </connector>
340 </connectors>
341 </configuration>
342 </plugin>
343
344 <plugin>
345 <groupId>org.apache.maven.plugins</groupId>
346 <artifactId>maven-war-plugin</artifactId>
347 <configuration>
348 <warName>${project.artifactId}</warName>
349
350 <archive>
351 <compress>true</compress>
352 <forced>true</forced>
353 <index>false</index>
354 <manifest>
355 <addClasspath>true</addClasspath>
356 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
357 <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
358 </manifest>
359 <manifestEntries>
360 <url>${project.url}</url>
361 <Implementation-Vendor>${vendor.name}</Implementation-Vendor>
362 <Vendor-domain>${verdor.domain}</Vendor-domain>
363 </manifestEntries>
364 </archive>
365 </configuration>
366
367 </plugin>
368
369 <plugin>
370 <groupId>org.apache.maven.plugins</groupId>
371 <artifactId>maven-javadoc-plugin</artifactId>
372 <version>2.5</version>
373 <configuration>
374 <author>true</author>
375 <locale>zh_CN</locale>
376 <doctitle>${project.artifactId} Javadoc</doctitle>
377 </configuration>
378 </plugin>
379
380 </plugins>
381 </build>
382
383 </project>
maven 通用pom.xml的更多相关文章
- (转)Maven的pom.xml文件结构之Build配置build
在Maven的pom.xml文件中,Build相关配置包含两个部分,一个是<build>,另一个是<reporting>,这里我们只介绍<build>. 1. 在M ...
- (六)Maven之pom.xml文件简单说明
通过前面几部分知识,我们对maven已经有了初步的印象,就像Make的Makefile.Ant的build.xml一样,Maven项目的核心是pom.xml.POM(Project Object Mo ...
- maven 的 pom.xml 文件报错:ArtifactTransferException: Failure to transfer
因为maven下载依赖jar包时,特别慢,所以取消了下载过程,再次打开eclipse时,maven的pom.xml文件报错如下: ArtifactTransferException: Failure ...
- maven的pom.xml深入理解
maven的pom.xml的具体使用和各个xml标签的作用.这样设计的原理是什么? maven实战的第17章-18章是架构方面的知识
- Maven项目pom.xml文件简单解析
Maven项目pom.xml简单解析 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="h ...
- maven项目pom.xml第一行报错
maven项目pom.xml第一行报错 这是第一行:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi= ...
- java maven项目 pom.xml plugin 报错, build path 找不到 jconsole-1.8.0.jar 和 tools-1.8.0.jar 包
maven项目pom.xml突然报错,在Java Build Path 中并没有引用的jar包出现在了Maven Dependencies的依赖包中. 这个错误直接导致了pom.xml文件中 < ...
- SSH项目搭建(四)——Maven的pom.xml配置
史上最全的maven的pom.xml文件详解: https://www.cnblogs.com/qq765065332/p/9238135.html 下面的节点有不理解是啥意思的可以到上面链接的文章里 ...
- maven(4)------maven核心pom.xml文件常用元素分析
在maven项目中,pom文件是核心文件 pom.xml: <?xml version="1.0" encoding="UTF-8"?> <p ...
- 史上最全的maven的pom.xml文件详解(转载)
此文出处:史上最全的maven的pom.xml文件详解——阿豪聊干货 <project xmlns="http://maven.apache.org/POM/4.0.0" x ...
随机推荐
- 鉄道旅行 (Railroad Trip)
题意 有 \(n\) 个城市, \(n-1\) 条道路.其中第 \(i\) 个城市和第 \(i+1\) 个城市由第 \(i\) 条道路连接.通过一条道路有两种付费方式:每次支付费用 \(a_i\) , ...
- CF1753C Wish I Knew How to Sort
正解: 这场我打过,E 题没做出来. 状态:\(dp_i\) 表示前 \(x\) 个有 \(i\) 个 \(0\),剩余步数的期望,\(x\) 为原序列 \(0\) 的个数. 转移:\(dp_i = ...
- ionic混合开发总结之调用手机相机
整理一下,给接触ionic的伙伴们一些参考,少走弯路. 调用手机的前提是已经成功创建了项目. 首先,要下载两个插件,一个是 cordova-plugin-camera,是调用相机的插件,还有一个是Ng ...
- Windows Python2.7环境 安装paramiko模块(转)
http://t.zoukankan.com/staffyoung-p-5587450.html 链接,网上大多数都是同一篇文章 Paramiko是用python语言写的一个模块,遵循SSH2协议,支 ...
- go对数组对象排序
1.根据时间对数组对象排序 package main import ( "fmt" "time" "github.com/ah ...
- .net core 3.1项目运行在Windows server 2012R2服务器上,Decimal类型小数点不见了,求解!32112.7958
.net core 3.1项目运行在Windows server 2012R2服务器上,Decimal类型小数点不见了,求解! string str = "1002910.8241" ...
- LeetCode(Java版)
两数之和 题目描述 给定一个整数数组和一个目标值,找出数组中和为目标值的两个数. 你可以假设每个输入只对应一种答案,且同样的元素不能被重复利用. 示例: 给定 nums = [2, 7, 11, 15 ...
- 升级grafana
We recommend everyone to upgrade Grafana often to stay up to date with the latest fixes and enhancem ...
- 遍历operation
std::ostringstream out; double f8Value; NXOpen::CAM::CAMSetup *camSetup = displayPart->CAMSetup() ...
- [OC] 按照 元素 中的某个属性 来对数组进行排序
数组需要是 NSMutableArray 类型: //ascending - YES:升序,1,2,3 NO:降序:3,2,1 NSArray *sortDescriptors = [NSArray ...