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的更多相关文章

  1. (转)Maven的pom.xml文件结构之Build配置build

    在Maven的pom.xml文件中,Build相关配置包含两个部分,一个是<build>,另一个是<reporting>,这里我们只介绍<build>. 1. 在M ...

  2. (六)Maven之pom.xml文件简单说明

    通过前面几部分知识,我们对maven已经有了初步的印象,就像Make的Makefile.Ant的build.xml一样,Maven项目的核心是pom.xml.POM(Project Object Mo ...

  3. maven 的 pom.xml 文件报错:ArtifactTransferException: Failure to transfer

    因为maven下载依赖jar包时,特别慢,所以取消了下载过程,再次打开eclipse时,maven的pom.xml文件报错如下: ArtifactTransferException: Failure ...

  4. maven的pom.xml深入理解

    maven的pom.xml的具体使用和各个xml标签的作用.这样设计的原理是什么? maven实战的第17章-18章是架构方面的知识

  5. Maven项目pom.xml文件简单解析

    Maven项目pom.xml简单解析 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="h ...

  6. maven项目pom.xml第一行报错

    maven项目pom.xml第一行报错 这是第一行:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi= ...

  7. 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文件中 < ...

  8. SSH项目搭建(四)——Maven的pom.xml配置

    史上最全的maven的pom.xml文件详解: https://www.cnblogs.com/qq765065332/p/9238135.html 下面的节点有不理解是啥意思的可以到上面链接的文章里 ...

  9. maven(4)------maven核心pom.xml文件常用元素分析

    在maven项目中,pom文件是核心文件 pom.xml: <?xml version="1.0" encoding="UTF-8"?> <p ...

  10. 史上最全的maven的pom.xml文件详解(转载)

    此文出处:史上最全的maven的pom.xml文件详解——阿豪聊干货 <project xmlns="http://maven.apache.org/POM/4.0.0" x ...

随机推荐

  1. maven打包找不到本地jar包的解决方法

    有时候我们在项目中会引入一些本地jar包,在maven打包时会找不到这些jar,我们需要在pom.xml中的 <pluginManagement> <plugins> < ...

  2. .Net 6.0:WebAPI配置跨域

    NuGet程序包管理,搜cors,并下载 紧接着在Program中添加代码 builder.Services.AddCors(options =>{ options.AddPolicy(name ...

  3. java读取虚拟串口数据

    语言:java 虚拟串口工具:Virtual Serial Port Driver Pro 9.0,选择pairing模块下,点击add virtual paring按钮即可创建串口对,还无法自定义o ...

  4. PV动态供给之nfs

    需求描述:利用nfs实现PV动态供给 前提:部署好nfs服务器  这里地址是 192.168.1.35  path: /ifs/k8s NFS:是一个主流的文件共享服务器. # yum install ...

  5. mybatis面试资料

    1.#{}和${}的区别 #{} 数据类型检查: 若检测到字符串类型,就加上引号: 若检测到数值类型,就不加引号. 安全检查: 若变量的值带有引号,会对引号进行转义处理,这样可以防止sql注入. ${ ...

  6. M1芯片的Mac上如何安装Windows系统

    ​ 其实和安装非M1的mac没什么区别,唯一就是找到arm版本的win10镜像文件. 一.安装 Parallels Desktop 16 1. 双击打开dmg格式的安装包,并双击 「Install P ...

  7. js截取数组

    在JavaScript中,可以使用 slice() 方法来截取数组的一部分.该方法接受两个参数,第一个参数是截取的起始位置(包括该位置),第二个参数是截取的结束位置(不包括该位置). 例如,假设有一个 ...

  8. 去除Bam文件中的PCR 重复

    1.使用samtools 去除重复 samtools sort -n -@ 20 file.bam |samtools fixmate -m -@20 - - |samtools sort -@ 20 ...

  9. List循环问题

    list循环时的问题,报错,称找不到该字段属性,原因如下: 1.字段名与toString里不匹配: 2.首字母大写了: 原回答:https://blog.csdn.net/qq_42671193/ar ...

  10. OnlyOffice调用逻辑