-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpom.xml
3391 lines (3263 loc) · 134 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.woshidaniu</groupId>
<artifactId>niukit-parent</artifactId>
<version>1.1.1</version>
<packaging>pom</packaging>
<name>niukit-parent</name>
<description>我是大牛快速开发工具集(A Toolkit For Fast Development By Woshidaniu )</description>
<url>http://github.com/woshidaniu-com/niukit</url>
<modules>
<!-- 基础工具组件 -->
<module>niukit-basemodel</module>
<module>niukit-basicutils</module>
<module>niukit-configuration</module>
<module>niukit-disruptor</module>
<module>niukit-finereport</module>
<module>niukit-freemarker</module>
<module>niukit-ftpclient</module>
<module>niukit-httpclient</module>
<module>niukit-httputils</module>
<module>niukit-javamail</module>
<module>niukit-qrcode</module>
<module>niukit-regexp</module>
<module>niukit-rocketmq</module>
<module>niukit-safety</module>
<module>niukit-search-taglib</module>
<module>niukit-security</module>
<module>niukit-shiro</module>
<module>niukit-smbclient</module>
<module>niukit-smsclient</module>
<module>niukit-snmpclient</module>
<module>niukit-spring</module>
<module>niukit-struts2</module>
<module>niukit-taglibs</module>
<module>niukit-web</module>
<module>niukit-web-ext</module>
<module>niukit-xmlhub</module>
<module>niukit-yuicompressor</module>
<module>niukit-socket</module>
<!-- 基于Activiti工作流的二次开发组件 -->
<module>niukit-bpm-parent</module>
<!-- 第三方缓存接口对接和扩展实现组件 -->
<module>niukit-cache</module>
<!-- 数据库辅助工具,支持Mysql,Oracle -->
<module>niukit-db</module>
<!-- WebService统一接口实现和扩展 -->
<module>niukit-ws</module>
<!-- 第三方消息队列统一接口与扩展 :预留结构 <module>niukit-mq</module> -->
<!-- ORM/持久层框架扩展 -->
<module>niukit-orm</module>
<module>fastdoc</module>
<!--<!– 基于XML的Word文档快速生成组件–>-->
<module>fastpdf</module>
<!--<!– 基于itext的PDF快速生成组件–>-->
<module>fastxls</module>
<!-- 基于XML的Excel快速生成组件-->
<module>niukit-cloud</module>
<module>niukit-metrics</module>
<module>niukit-qa</module>
<module>niucaclient</module>
<!-- <module>niukit-migration</module>-->
</modules>
<!-- 组织信息 -->
<organization>
<name>woshidaniu</name>
<url>http://www.woshidaniu.com</url>
</organization>
<!-- 开发者信息 -->
<developers>
<developer>
<id>kangzhidong</id>
<name>康智冬</name>
<email>worldkzd@gmail</email>
</developer>
</developers>
<!-- 配置部署的远程仓库:让Maven知道当我要发布release版本或者snapshot版本是需要发布到哪个地址 -->
<distributionManagement>
<!-- <repository>-->
<!-- <id>Releases</id>-->
<!-- <name>Nexus Release Repository</name>-->
<!-- <url>http://10.71.19.153:8081/nexus/content/repositories/releases/</url>-->
<!-- </repository>-->
<!-- <snapshotRepository>-->
<!-- <id>Snapshots</id>-->
<!-- <name>Nexus Snapshot Repository</name>-->
<!-- <url>http://10.71.19.153:8081/nexus/content/repositories/snapshots/</url>-->
<!-- <!– 表示是否为Snapshot版本分配一个包含时间戳的构建号 –>-->
<!-- <uniqueVersion>true</uniqueVersion>-->
<!-- </snapshotRepository>-->
</distributionManagement>
<!-- SCM配置: maven-release 版本升级需要 -->
<scm>
</scm>
<build>
<filters>
<!-- 过滤文件,通常是一个属性文件(名值对的形式) <filter>src/main/webapp/META-INF/auto-config.properties</filter> -->
<!-- <filter>${user.home}/antx.properties</filter> -->
</filters>
<pluginManagement>
<plugins>
<!-- 编译插件:编译主代码至主输出目录 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<!-- 设置源文件编码方式 -->
<configuration>
<defaultLibBundleDir>lib</defaultLibBundleDir>
<!-- 源代码编译版本 -->
<source>1.6</source>
<!-- 目标平台编译版本 -->
<target>1.6</target>
<!-- 字符集编码 -->
<encoding>${project.build.sourceEncoding}</encoding>
<!-- -->
<maxmem>512M</maxmem>
</configuration>
</plugin>
<!-- 资源插件:复制主资源文件至主输出目录 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.1</version>
<!-- 解决资源文件的编码问题 -->
<configuration>
<!-- 字符集编码 -->
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
<!-- 复制测试资源文件至测试输出目录复制resources到classess -->
<executions>
<execution>
<id>copy-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/classes</outputDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
<!-- <filtering>true</filtering> -->
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!-- 单元测试插件 :执行测试用例 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<!-- 跳过单元测试 -->
<skip>true</skip>
<skipTests>true</skipTests>
<!-- forkMode 可设置值有 “never”, “once”, “always” 和 “pertest”。 pretest:
每一个测试创建一个新进程,为每个测试创建新的JVM是单独测试的最彻底方式,但也是最慢的,不适合hudson上持续回归。 once:在一个进程中进行所有测试。once为默认设置,在Hudson上持续回归时建议使用默认设置。
always:在一个进程中并行的运行脚本,Junit4.7以上版本才可以使用,surefire的版本要在2.6以上提供这个功能,其中 threadCount:执行时,指定可分配的线程数量。只和参数parallel配合使用有效。默认:5。 -->
<forkMode>once</forkMode>
<argLine>-Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m
-Dfile.encoding=UTF-8</argLine>
<additionalClasspathElements>
<additionalClasspathElement>${basedir}/target/test-classes</additionalClasspathElement>
</additionalClasspathElements>
<includes>
<include>**/*Test.java</include>
</includes>
<excludes>
<exclude>**/TestBean.java</exclude>
</excludes>
</configuration>
</plugin>
<!-- jar包生成插件 :创建项目jar包 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<skipIfEmpty>false</skipIfEmpty>
<archive>
<!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 <manifest> <addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix> <mainClass>.....Main</mainClass>
</manifest> -->
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
<executions>
<!-- 增加关于接口打包的配置:配置后会在原有打包的基础上多打包一个api包 <execution> <id>package-api</id>
<goals> <goal>jar</goal> </goals> <phase>package</phase> <configuration>
<classifier>api</classifier> <includes> <include>**/interface/**</include>
</includes> </configuration> </execution> -->
<!-- <execution> <id>package-all</id> <goals> <goal>jar</goal> </goals>
<phase>package</phase> <configuration> <classifier>all</classifier> <includes>
<include>**</include> </includes> </configuration> </execution> -->
</executions>
</plugin>
<!-- jar包生成插件 :使用模块自身代码和依赖jar包打包最终的jar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createSourcesJar>true</createSourcesJar>
<shadeSourcesContent>true</shadeSourcesContent>
<shadeTestJar>false</shadeTestJar>
<createDependencyReducedPom>false</createDependencyReducedPom>
<dependencyReducedPomLocation>${basedir}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
<!-- <shadedArtifactAttached>false</shadedArtifactAttached> <shadedArtifactId>${project.artifactId}</shadedArtifactId>
<shadedClassifierName>all</shadedClassifierName> -->
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<artifactSet>
<excludes>
<exclude>junit:junit</exclude>
<exclude>org.slf4j:slf4j-api:jar:</exclude>
<exclude>javax.servlet:javax.servlet-api:jar:</exclude>
</excludes>
</artifactSet>
<transformers>
<!-- 程序入口类 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.woshidaniu.examples.Main</mainClass> </transformer> -->
<!-- 下面这段配置意思是把spring.handlers和spring.schemas文件以append方式加入到构建的jar包中,这样就不会出现xsd找不到的情况。
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.handlers</resource> </transformer> <transformer
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
<resource>META-INF/spring.schemas</resource> </transformer> -->
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<!-- assembly插件打包成jar包 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<finalName>${project.artifactId}</finalName>
<descriptors>
<descriptor>${basedir}/src/main/resources/assembly.xml</descriptor>
</descriptors>
<descriptorRefs>
<!-- jar-with-dependencies是assembly 预先写好的一个,组装描述引用(assembly descriptor);
我们可以自定义一个描述 -->
<!-- <descriptorRef>jar-with-dependencies</descriptorRef> -->
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<!-- MainClass in mainfest make a executable jar <archive> <manifest>
<mainClass>xxx.xxx</mainClass> </manifest> </archive> -->
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<!-- bind to the packaging phase -->
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 安装插件:将项目输出构件安装到本地仓库 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<!-- 发布插件 :将项目输出构件部署到远程仓库 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<!-- versions 插件: 自动进行工程版本升级 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.3</version>
</plugin>
<!-- release插件: 自动进行工程版本升级 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
</plugin>
<!-- 签名插件 :自动完成GPG签名 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 源码插件:发布时自动将源码同时发布 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<!-- 打包source文件为jar文件 -->
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<!-- 打包源码一起发布到maven仓库中 -->
<attach>true</attach>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
<executions>
<execution>
<id>attach-sources</id>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 文档插件:发布时自动生成文档 : http://codepub.cn/2016/10/18/Java-8-configure-maven-java-doc-plugin/ -->
<!-- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<configuration>
<aggregate>true</aggregate>
<argLine>-Dfile.encoding=UTF-8</argLine>
<charset>${project.build.sourceEncoding}</charset>
<encoding>${project.build.sourceEncoding}</encoding>
<docencoding>${project.build.sourceEncoding}</docencoding>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin> -->
<!-- 依赖配置生成插件 :自动复制maven依赖包到lib目录 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<!-- 拷贝依赖的jar包到lib目录 -->
<executions>
<execution>
<id>copy-dependencies</id>
<phase>compile</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<!-- <outputDirectory>${basedir}/src/main/webapp/WEB-INF/lib</outputDirectory> -->
<!-- ${project.build.directory}为Maven内置变量,缺省为target <outputDirectory>${project.build.directory}/lib</outputDirectory> -->
<!-- 表示是否不包含间接依赖的包 -->
<excludeTransitive>false</excludeTransitive>
<!-- 表示复制的jar文件去掉版本信息 -->
<stripVersion>true</stripVersion>
</configuration>
</execution>
</executions>
</plugin>
<!-- war 包生成插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<!-- 包含空目录 -->
<includeEmptyDirectories>true</includeEmptyDirectories>
<!-- 是否将webapp下的逻辑代码打包成jar文件,使用此可选配置参数可将已编译的类归档到一个jar文件。 并且classes
目录将被从Web应用程序排除在外,主要表现是classes目录的编译的类不会再war包中。 -->
<archiveClasses>false</archiveClasses>
<!-- 是否 classes目录内容(也就是WEB-INF/classes目录下的内容)可以作为一个额外的依赖附着到项目中。 打包时将war项目中相关的类文件打成独立jar包;好处是:只修改class时,可以只更新jar -->
<attachClasses>true</attachClasses>
<!--独立jar包后缀名称 -->
<classesClassifier>api</classesClassifier>
<!-- 设置无web.xml时不报错 -->
<failOnMissingWebXml>false</failOnMissingWebXml>
<!-- 必须指定,否则默认会变成在target/war/work 导致被打包进war文件,指定后为target/work -->
<workDirectory>${project.build.directory}/work</workDirectory>
<!-- 指定webapp所在目录 -->
<warSourceDirectory>${basedir}/src/main/webapp</warSourceDirectory>
<!-- 表示在打war包拷贝位于warSourceDirectory目录中的内容时要过滤的目录或文件 <warSourceExcludes>WEB-INF/classes/**,META-INF/**</warSourceExcludes> -->
<!-- 表示在打war包时过滤位于src/main/resources目录中指定的目录或文件 <packagingExcludes>*.*</packagingExcludes> -->
<!-- 配置将资源文件打到classes目录下的相关信息 -->
<webResources>
<resource>
<!-- 元配置文件的目录,相对于pom.xml文件的路径 -->
<directory>src/main/resources</directory>
<!-- 是否过滤文件,也就是是否启动auto-config的功能 -->
<filtering>true</filtering>
<!-- 目标路径 -->
<targetPath>WEB-INF/classes</targetPath>
</resource>
</webResources>
</configuration>
</plugin>
<!-- war包依赖传递拷贝插件 : 插件可以将从依赖的WAR中传递的依赖都打包到当前的WAR -->
<plugin>
<groupId>org.appfuse</groupId>
<artifactId>maven-warpath-plugin</artifactId>
<version>2.0.2</version>
<extensions>true</extensions>
<configuration>
<!--<workDirectory>${basedir}/target/warpath</workDirectory> <warpathExcludes>**/logback-test.xml</warpathExcludes> -->
<!-- below WEB-INF/classes -->
<warpathExcludes>WEB-INF/classes,**/logback-test.xml</warpathExcludes>
</configuration>
</plugin>
<!-- ant脚步执行插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>copy-war</id>
<phase>package</phase>
<configuration>
<tasks>
<delete
dir="${TOMCAT_HOME}/webapps/${project.artifactId}-${project.version}" />
<copy todir="${TOMCAT_HOME}/webapps">
<fileset dir="target">
<include name="*.war" />
</fileset>
</copy>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<!--远程部署web工程 -->
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat6-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<url>http://localhost:8080/manager/html</url>
<server>tomcat</server>
<warFile>${project.build.directory}/${project.build.finalName}.${project.packaging}</warFile>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<url>http://localhost:8080/manager/html</url>
<server>tomcat</server>
<warFile>${project.build.directory}/${project.build.finalName}.${project.packaging}</warFile>
</configuration>
</plugin>
<!-- web运行插件 -->
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.10</version>
<configuration>
<webAppSourceDirectory>src/main/webapp</webAppSourceDirectory>
<scanIntervalSeconds>0</scanIntervalSeconds>
<contextPath>/</contextPath>
<reload>manual</reload>
<webDefaultXml>src/main/resources/jetty/webdefault.xml</webDefaultXml>
<connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8088</port>
</connector>
</connectors>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- 编译插件:编译主代码至主输出目录 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<!-- 资源插件:复制主资源文件至主输出目录 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<!-- 单元测试插件 :执行测试用例 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<!-- jar包生成插件 :创建项目jar包 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
<!-- 源码插件:发布时自动将源码同时发布 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<!-- 文档插件:发布时自动生成文档 -->
<!-- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin> -->
<!-- 安装插件:将项目输出构件安装到本地仓库 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
</plugin>
<!-- 发布插件 :将项目输出构件部署到远程仓库 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
</plugin>
<!-- 依赖配置生成插件 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId>
</plugin> -->
<!-- war 包生成插件 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId>
</plugin> -->
<!-- ant脚步执行插件 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId>
</plugin> -->
<!--远程部署web工程 <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId>
</plugin> -->
<!-- web运行插件 <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId>
</plugin> -->
</plugins>
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<activiti.version>5.21.0</activiti.version>
<activemq-broker.version>5.13.0</activemq-broker.version>
<activemq-core.version>5.7.0</activemq-core.version>
<ant.version>1.8.2</ant.version>
<antlr.version>3.5.2</antlr.version>
<alibaba-druid.version>1.0.31</alibaba-druid.version>
<alibaba-fastjson.version>1.2.58</alibaba-fastjson.version>
<asm3.version>3.3.1</asm3.version>
<asm5.version>5.2</asm5.version>
<aspectj.version>1.8.9</aspectj.version>
<batik.version>1.8</batik.version>
<bcprov.version>1.54</bcprov.version>
<c3p0.version>0.9.1.2</c3p0.version>
<cas-server.version>4.2.0</cas-server.version>
<cas-client.version>3.4.1</cas-client.version>
<cglib.version>3.2.4</cglib.version>
<cos.version>20021105</cos.version>
<commons-attributes.version>2.2</commons-attributes.version>
<commons-beanutils.version>1.8.3</commons-beanutils.version>
<commons-chain.version>1.2</commons-chain.version>
<commons-codec.version>1.10</commons-codec.version>
<commons-collections.version>3.2.1</commons-collections.version>
<commons-collections4.version>4.1</commons-collections4.version>
<commons-compress.version>1.9</commons-compress.version>
<commons-compiler.version>2.6.1</commons-compiler.version>
<commons-configuration.version>1.10</commons-configuration.version>
<commons-configuration2.version>2.0</commons-configuration2.version>
<commons-csv.version>1.1</commons-csv.version>
<commons-daemon.version>1.0.15</commons-daemon.version>
<commons-dbcp.version>1.4</commons-dbcp.version>
<commons-dbcp2.version>2.1.1</commons-dbcp2.version>
<commons-dbutils.version>1.5</commons-dbutils.version>
<commons-digester.version>2.1</commons-digester.version>
<commons-digester3.version>3.2</commons-digester3.version>
<commons-email.version>1.4</commons-email.version>
<commons-exec.version>1.3</commons-exec.version>
<commons-fileupload.version>1.3.3</commons-fileupload.version>
<commons-httpclient.version>3.1</commons-httpclient.version>
<commons-io.version>2.5</commons-io.version>
<commons-jexl.version>2.1.1</commons-jexl.version>
<commons-lang.version>2.6</commons-lang.version>
<commons-lang3.version>3.5</commons-lang3.version>
<commons-logging.version>1.2</commons-logging.version>
<commons-math.version>2.2</commons-math.version>
<commons-math3.version>3.5</commons-math3.version>
<commons-net.version>3.4</commons-net.version>
<commons-pool.version>1.5.7</commons-pool.version>
<commons-pool2.version>2.4.2</commons-pool2.version>
<commons-validator.version>1.4.1</commons-validator.version>
<commons-vfs2.version>2.2</commons-vfs2.version>
<contiperf.version>2.3.4</contiperf.version>
<cssparser.version>0.9.18</cssparser.version>
<cxf.version>3.1.10</cxf.version>
<cvs.version>2.0</cvs.version>
<dbunit.version>2.5.1</dbunit.version>
<dom4j.version>1.6.1</dom4j.version>
<dozer.version>5.5.1</dozer.version>
<dwr.version>2.0.11-RELEASE</dwr.version>
<disruptor.version>3.3.6</disruptor.version>
<ehcache.version>2.10.6</ehcache.version>
<ehcache3.version>3.3.1</ehcache3.version>
<ezmorph.version>1.0.6</ezmorph.version>
<fineReport.version>8.0</fineReport.version>
<flyway.version>4.0</flyway.version>
<freemarker.version>2.3.23</freemarker.version>
<fastdfs-client.version>5.0.4</fastdfs-client.version>
<google-zxing.version>2.3.0</google-zxing.version>
<gson.version>2.2.1</gson.version>
<guava.version>19.0</guava.version>
<guice.version>4.0</guice.version>
<httpunit.version>1.7.2</httpunit.version>
<hibernate.version>5.0.6.Final</hibernate.version>
<hadoop.version>2.4.0</hadoop.version>
<hadoop-core.version>1.2.1</hadoop-core.version>
<hadoop-streaming.version>1.0.0</hadoop-streaming.version>
<hadoop-tools.version>1.2.1</hadoop-tools.version>
<hadoop-libthrift.version>0.5.0</hadoop-libthrift.version>
<hadoop-zookeeper.version>3.3.1</hadoop-zookeeper.version>
<htmlparser.version>1.4</htmlparser.version>
<hsqldb.version>2.3.3</hsqldb.version>
<httpasyncclient.version>4.1.1</httpasyncclient.version>
<httpcore.version>4.4.4</httpcore.version>
<httpcomponents.version>4.5.1</httpcomponents.version>
<httpclient.version>4.5.2</httpclient.version>
<httpmime.version>4.5.2</httpmime.version>
<ibatis-core.version>3.0</ibatis-core.version>
<ibatis-sqlmap.version>2.3.0</ibatis-sqlmap.version>
<jackson-annotations.version>2.9.0</jackson-annotations.version>
<jackson-core.version>2.9.9</jackson-core.version>
<jackson-databind.version>2.9.9.2</jackson-databind.version>
<java.cas.client.version>3.4.0</java.cas.client.version>
<jakarta-regexp.version>1.4</jakarta-regexp.version>
<jaxen.version>1.1.1</jaxen.version>
<janino.version>2.6.1</janino.version>
<javassist.version>3.21.0-GA</javassist.version>
<javax.activation.version>1.1.1</javax.activation.version>
<javax.mail-api.version>1.5.6</javax.mail-api.version>
<javax.el.version>2.1.0</javax.el.version>
<javax.jsp-api.version>2.3.1</javax.jsp-api.version>
<javax.jstl-api.version>1.2.1</javax.jstl-api.version>
<javax.jstl-impl.version>1.2.5</javax.jstl-impl.version>
<javax.persistence-api.version>1.0.2</javax.persistence-api.version>
<javax.portlet-api.version>3.0.0</javax.portlet-api.version>
<javax.servlet-api.version>3.0.1</javax.servlet-api.version>
<javax.websocket-api.version>1.1</javax.websocket-api.version>
<jaxb.version>2.2.11</jaxb.version>
<jasperreports.version>6.2.0</jasperreports.version>
<jdom.version>2.0.2</jdom.version>
<jbpm.version>6.2.0.Final</jbpm.version>
<jboss.version>1.0.1-SP3</jboss.version>
<jedis.version>2.8.0</jedis.version>
<jjwt.version>0.7.0</jjwt.version>
<jmock.version>2.6.0</jmock.version>
<jsf.version>2.0.2-b10</jsf.version>
<jsonlib.version>2.4</jsonlib.version>
<json-simple.version>1.1.1</json-simple.version>
<jsoup.version>1.10.2</jsoup.version>
<jgroups.version>3.6.10.Final</jgroups.version>
<jstl-api.version>1.2</jstl-api.version>
<jstl.version>1.1.2</jstl.version>
<junit.version>4.12</junit.version>
<jug.version>2.0.0</jug.version>
<kie.version>6.2.0.Final</kie.version>
<knowledge.version>6.2.0.Final</knowledge.version>
<lettuce.version>2.3.3</lettuce.version>
<log4j.version>1.2.17</log4j.version>
<log4j2.version>2.3</log4j2.version><!-- 2.4.x~2.7.x(JDK 1.7), 2.3.x(JDK
1.6) -->
<logback.version>1.1.3</logback.version>
<lucene.version>5.4.0</lucene.version>
<oro.version>2.0.8</oro.version>
<oracle-10g-driver.version>10.2.0.5</oracle-10g-driver.version>
<oracle-11g-driver.version>11.2.0.4</oracle-11g-driver.version>
<oracle-12c-driver.version>12.1.0.2</oracle-12c-driver.version>
<ognl.version>3.1.12</ognl.version>
<openejb.version>5.0-1</openejb.version>
<openjpa.version>2.4.1</openjpa.version>
<perf4j.version>0.9.16</perf4j.version>
<owasp-antisamy.version>1.5.5</owasp-antisamy.version>
<owasp-csrfguard.version>3.0.0</owasp-csrfguard.version>
<owasp-esapi.version>2.1.0</owasp-esapi.version>
<owasp-encode.version>1.2</owasp-encode.version>
<owasp-encode.jsp.version>1.2</owasp-encode.jsp.version>
<persistence-api.version>1.0.2</persistence-api.version>
<phloc-commons.version>4.4.4</phloc-commons.version>
<phloc-html.version>4.4.2</phloc-html.version>
<phloc-css.version>3.8.0</phloc-css.version>
<phloc-json.version>3.0.3</phloc-json.version>
<pinyin4j.version>2.5.0</pinyin4j.version>
<portlet.version>2.0</portlet.version>
<proxool.version>0.9.1</proxool.version>
<png-encoder.version>1.5</png-encoder.version>
<quartz.version>2.2.3</quartz.version>
<rabbitmq.version>3.6.0</rabbitmq.version>
<redisson.version>2.2.9</redisson.version>
<rocketmq.version>4.1.0-incubating</rocketmq.version>
<servlet-api.version>3.0.1</servlet-api.version>
<slf4j.version>1.7.19</slf4j.version>
<stax2-api.version>3.1.1</stax2-api.version>
<sitemesh.version>3.0.1</sitemesh.version>
<sitemesh3.version>3.0.1</sitemesh3.version>
<struts1.version>1.2.9</struts1.version>
<struts2.version>2.3.35</struts2.version> <!-- 2.3.x(JDK 1.6),2.5.x(JDK 1.7 ) -->
<struts2-annotations.version>1.0.6</struts2-annotations.version>
<simple-xml.version>2.7.1</simple-xml.version>
<sigar.version>1.6.5.132-6</sigar.version><!-- 1.6.4,1.6.5.132-6 -->
<smslib.version>3.5.4</smslib.version>
<snmp4j.version>2.5.2</snmp4j.version>
<shiro.version>1.2.6</shiro.version>
<spring.version>4.3.6.RELEASE</spring.version><!-- 4.3.x(JDK 1.7 )、4.1.x(JDK
1.6)、4.0.x(JDK 1.6) -->
<spring-support.version>2.0.8</spring-support.version>
<spring-osgi.version>1.2.1</spring-osgi.version>
<spring-security.version>4.0.4.RELEASE</spring-security.version>
<spring-security-oauth.version>2.0.9.RELEASE</spring-security-oauth.version>
<spring-security-web.version>2.0.4</spring-security-web.version>
<spring-webflow.version>1.0.6</spring-webflow.version>
<swingc.version>1.0.0</swingc.version>
<smallsql.version>0.21</smallsql.version>
<metaq.version>1.4.6.2</metaq.version>
<metrics.version>3.2.2</metrics.version>
<mybatis.version>3.4.2</mybatis.version>
<mybatis-spring.version>1.3.1</mybatis-spring.version>
<mybatis-docbook.version>1.0.0</mybatis-docbook.version>
<mybatis-ehcache.version>1.1.0</mybatis-ehcache.version>
<mybatis-freemarker.version>1.1.2</mybatis-freemarker.version>
<mybatis-oscache.version>1.0.2</mybatis-oscache.version>
<mybatis-redis.version>1.0.0-beta2</mybatis-redis.version>
<mybatis-hazelcast.version>1.1.1</mybatis-hazelcast.version>
<mybatis-ignite.version>1.0.3</mybatis-ignite.version>
<mybatis-memcached.version>1.0.0</mybatis-memcached.version>
<mybatis-migrations.version>3.2.1</mybatis-migrations.version>
<mybatis-guice.version>3.9</mybatis-guice.version>
<mybatis-generator.version>1.3.5</mybatis-generator.version>
<mybatis-velocity.version>1.3</mybatis-velocity.version>
<neethi.version>3.0.3</neethi.version>
<nekohtml.version>1.9.22</nekohtml.version>
<velocity.version>1.7</velocity.version>
<velocity-tools.version>2.0</velocity-tools.version>
<woodstox-core-asl.version>4.4.1</woodstox-core-asl.version>
<wsdl4j.version>1.6.3</wsdl4j.version>
<xmlbeans.version>2.6.0</xmlbeans.version>
<xerces.version>2.11.0</xerces.version>
<xmemcached.version>2.0.0</xmemcached.version>
<xmlschema-core.version>2.0.2</xmlschema-core.version>
<xstream.version>1.4.11</xstream.version>
<xml-apis.version>1.3.04</xml-apis.version>
<zip64file.version>1.02</zip64file.version>
<zip4j.version>1.3.2</zip4j.version>
<mina-core.version>2.0.9</mina-core.version>
<feed4junit.version>1.2.0</feed4junit.version>
<hamcrest.version>1.3</hamcrest.version>
<jsonpath.version>2.2.0</jsonpath.version>
<niucaclient.version>6.0</niucaclient.version>
<terracotta-toolkit-runtime.version>4.3.2</terracotta-toolkit-runtime.version>
</properties>
<dependencyManagement>
<dependencies>
<!-- ######################测试工具包###################### -->
<!--junit : Junit测试是程序员测试,即白盒测试 -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
</dependency>
<!--dbunit :dbunit是一个基于junit扩展的数据库测试框架 -->
<dependency>
<groupId>org.dbunit</groupId>
<artifactId>dbunit</artifactId>
<version>${dbunit.version}</version>
</dependency>
<!-- httpunit:HttpUnit是SourceForge下面的一个开源项目,它是基于JUnit的一个测试框架,主要关注于测试Web应用;
解决使用JUnit框架无法对远程Web内容进行测试的弊端 -->
<dependency>
<groupId>org.httpunit</groupId>
<artifactId>httpunit</artifactId>
<version>${httpunit.version}</version>
</dependency>
<!--jmock:JMock是一个使用模拟对象机制测试Java代码的开发包 -->
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock-junit4</artifactId>
<version>${jmock.version}</version>
</dependency>
<!-- ContiPerf是一个轻量级的测试工具,基于JUnit 4 开发,可用于效率测试等。 -->
<dependency>
<groupId>org.databene</groupId>
<artifactId>contiperf</artifactId>
<version>${contiperf.version}</version>
</dependency>
<!-- Perf4J 是一个新的开放源码的性能记录,监测和分析库,主要用于企业Java应用程序。 -->
<dependency>
<groupId>org.perf4j</groupId>
<artifactId>perf4j</artifactId>
<version>${perf4j.version}</version>
</dependency>
<!-- ######################JSON数据处理工具包###################### -->
<!-- fastjson 是一个性能很好的 Java 语言实现的 JSON 解析器和生成器,来自阿里巴巴的工程师开发。 主要特点: 快速FAST
(比其它任何基于Java的解析器和生成器更快,包括jackson) 强大(支持普通JDK类包括任意Java Bean Class、Collection、Map、Date或enum)
零依赖(没有依赖其它任何类库除了JDK) -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${alibaba-fastjson.version}</version>
</dependency>
<!--json-lib是一个Java类库,提供将Java对象,包括beans,maps,collections,javaarrays和xml等转换成JSON,或者反向转换的功能 -->
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>${jsonlib.version}</version>
<classifier>jdk15</classifier>
</dependency>
<!-- Simple JSON是Google开发的Java JSON解析框架,基于Apache协议。 -->
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>${json-simple.version}</version>
</dependency>
<!-- Gson 是 Google 提供的用来在 Java 对象和 JSON 数据之间进行映射的 Java 类库。可以将一个 JSON 字符串转成一个
Java 对象,或者反过来 -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${gson.version}</version>
</dependency>
<!-- ###################### Java 内部实现 ###################### -->
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0</version>
</dependency>
<!-- ###################### Java Mail 组件 ###################### -->
<!-- The JavaBeans(TM) Activation Framework is used by the JavaMail(TM)
API to manage MIME data -->
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>${javax.activation.version}</version>
</dependency>
<!-- JavaMail API -->
<dependency>
<groupId>javax.mail</groupId>
<artifactId>javax.mail-api</artifactId>
<version>${javax.mail-api.version}</version>
</dependency>
<!-- JavaMail API (sun) 注意: 有的jar没有包含sun的实现,只包含了api,这类jar名称通常为javax.mail-api-x.x.x.jar,在使用smtp协议发邮件过程中会报错:
另一种jar是包含了sun的实现的,名称通常为javax.mail-x.x.x.jar,使用smtp协议发邮件正常! -->
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>${javax.mail-api.version}</version>
</dependency>
<!-- ###################### Java Web API ###################### -->
<!-- The Java Portlet API version 3.0 developed by the Java Community
Process JSR-362 Expert Group. -->
<dependency>
<groupId>javax.portlet</groupId>
<artifactId>portlet-api</artifactId>
<version>${javax.portlet-api.version}</version>
</dependency>
<!-- Java Servlet API -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${javax.servlet-api.version}</version>
</dependency>
<!-- JavaServer Pages(TM) API -->
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>javax.servlet.jsp-api</artifactId>
<version>${javax.jsp-api.version}</version>
</dependency>
<!-- JavaServer Pages(TM) Standard Tag Library API -->
<!-- JSTL(JSP Standard Tag Library,JSP标准标签库) 是一个不断完善的开放源代码的JSP标签库,是由apache的jakarta小组来维护的。 -->
<dependency>
<groupId>javax.servlet.jsp.jstl</groupId>
<artifactId>javax.servlet.jsp.jstl-api</artifactId>
<version>${javax.jstl-api.version}</version>
</dependency>
<!-- An implementation of the JSP Standard Tag Library (JSTL). -->
<!-- Taglibs是为JSP定制标签库和相关的项目提供的一个开源仓库,如TagLibraryValidator类,和对页面生成工具的扩展来支持标签
库。 -->
<dependency>
<groupId>org.apache.taglibs</groupId>
<artifactId>taglibs-standard-impl</artifactId>
<version>${javax.jstl-impl.version}</version>
</dependency>
<!-- Expression Language 3.0 API -->
<dependency>
<groupId>javax.el</groupId>
<artifactId>javax.el-api</artifactId>
<version>${javax.el.version}</version>
</dependency>
<!-- Java Persistence API -->
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>${javax.persistence-api.version}</version>
</dependency>
<!-- JSR 356: Java API for WebSocket -->
<dependency>
<groupId>javax.websocket</groupId>
<artifactId>javax.websocket-api</artifactId>
<version>${javax.websocket-api.version}</version>
</dependency>
<dependency>
<groupId>javax.websocket</groupId>
<artifactId>javax.websocket-client-api</artifactId>
<version>${javax.websocket-api.version}</version>
</dependency>
<!-- ######################XML校验工具###################### -->
<!-- Sun Multi Schema XML Validator Isorelax -->
<dependency>
<groupId>com.sun.xml.bind.jaxb</groupId>
<artifactId>isorelax</artifactId>
<version>20090621</version>
</dependency>
<dependency>
<groupId>com.github.relaxng</groupId>
<artifactId>relaxngDatatype</artifactId>
<version>2011.1</version>
</dependency>
<!-- Sun Multi Schema XML Validator -->
<dependency>
<groupId>net.java.dev.msv</groupId>
<artifactId>msv-core</artifactId>
<version>2013.6.1</version>
</dependency>
<!-- XML Schema datatypes library -->
<dependency>
<groupId>net.java.dev.msv</groupId>
<artifactId>xsdlib</artifactId>
<version>2013.6.1</version>
</dependency>
<!-- SAX-like API for parsing XML DTDs. -->
<dependency>
<groupId>com.sun.xml.dtd-parser</groupId>
<artifactId>dtd-parser</artifactId>
<version>1.2</version>
</dependency>
<!-- ######################XML解析转换工具包###################### -->
<!-- Dom4j是一个Java的XML API,类似于jdom,用来读写XML文件的工具包。 -->
<dependency>