Commit 3fc7a47c0d4f52134d2ec9178f2a63f2c64e5963

Authored by 架构师-江远林
1 parent 85e537ab

提交代码规范检测mvn install 可以在http://172.16.8.244:9000/projects

看到代码状况
.settings/org.eclipse.core.resources.prefs
1   -eclipse.preferences.version=1
2   -encoding/<project>=UTF-8
  1 +eclipse.preferences.version=1
  2 +encoding/<project>=UTF-8
... ...
.settings/org.eclipse.jdt.core.prefs
1   -eclipse.preferences.version=1
2   -org.eclipse.jdt.core.compiler.codegen.targetPlatform=
3   -org.eclipse.jdt.core.compiler.compliance=
4   -org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5   -org.eclipse.jdt.core.compiler.source=
  1 +eclipse.preferences.version=1
  2 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
  3 +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
  4 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=
  5 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
  6 +org.eclipse.jdt.core.compiler.compliance=1.7
  7 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate
  8 +org.eclipse.jdt.core.compiler.debug.localVariable=generate
  9 +org.eclipse.jdt.core.compiler.debug.sourceFile=generate
  10 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
  11 +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
  12 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
  13 +org.eclipse.jdt.core.compiler.source=
... ...
.settings/org.eclipse.m2e.core.prefs
1   -activeProfiles=
2   -eclipse.preferences.version=1
3   -resolveWorkspaceProjects=true
4   -version=1
  1 +activeProfiles=
  2 +eclipse.preferences.version=1
  3 +resolveWorkspaceProjects=true
  4 +version=1
... ...
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/xsd/maven-4.0.0.xsd">
3   - <modelVersion>4.0.0</modelVersion>
4   -
5   - <groupId>com.ylp.common</groupId>
6   - <artifactId>ylp-common-parent</artifactId>
7   - <version>1.0-Release</version>
8   - <packaging>pom</packaging>
9   -
10   - <name>ylp-common-parent</name>
11   - <url>http://maven.apache.org</url>
12   -
13   - <!-- 全局属性配置 -->
14   - <profiles>
15   -
16   - <!-- 开发环境 -->
17   - <profile>
18   - <id>main</id>
19   - <properties>
20   - <!-- 部署环境(对应配置文件版本) -->
21   - <env>main</env>
22   - <ver>3.0-SNAPSHOT</ver>
23   - <maven.test.skip>false</maven.test.skip>
24   - </properties>
25   - <!-- 设置默认环境 -->
26   - <activation>
27   - <activeByDefault>true</activeByDefault>
28   - </activation>
29   - </profile>
30   -
31   - <!-- 测试环境 -->
32   - <profile>
33   - <id>test</id>
34   - <properties>
35   - <!-- 部署环境(对应配置文件版本) -->
36   - <env>test</env>
37   - <ver>3.0-SNAPSHOT</ver>
38   - </properties>
39   - </profile>
40   -
41   - <!-- qa环境 -->
42   - <profile>
43   - <id>qa</id>
44   - <properties>
45   - <!-- 部署环境(对应配置文件版本) -->
46   - <env>qa</env>
47   - <ver>1.0-Release</ver>
48   - </properties>
49   - </profile>
50   -
51   - <!-- prod环境 -->
52   - <profile>
53   - <id>prod</id>
54   - <properties>
55   - <!-- 部署环境(对应配置文件版本) -->
56   - <env>prod</env>
57   - <ver>1.0-Release</ver>
58   - </properties>
59   - </profile>
60   -
61   - </profiles>
62   -
63   - <distributionManagement>
64   - <repository>
65   - <id>nexus-releases</id>
66   - <name>Nexus Release Repository</name>
67   - <url>http://nexus.vipzhuang.cn/content/repositories/releases/</url>
68   - </repository>
69   - <snapshotRepository>
70   - <id>nexus-snapshots</id>
71   - <name>Nexus Snapshot Repository</name>
72   - <url>http://nexus.vipzhuang.cn/content/repositories/snapshots/</url>
73   - </snapshotRepository>
74   - </distributionManagement>
75   -
76   - <repositories>
77   - <repository>
78   - <id>nexus</id>
79   - <url>http://nexus.vipzhuang.cn/content/groups/public</url>
80   - <releases>
81   - <enabled>true</enabled>
82   - </releases>
83   - <snapshots>
84   - <enabled>false</enabled>
85   - </snapshots>
86   - </repository>
87   - <repository>
88   - <id>nexus-snapshots</id>
89   - <url>http://nexus.vipzhuang.cn/content/repositories/snapshots/</url>
90   - <releases>
91   - <enabled>false</enabled>
92   - </releases>
93   - <snapshots>
94   - <enabled>true</enabled>
95   - </snapshots>
96   - </repository>
97   - </repositories>
98   -
99   - <properties>
100   - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
101   -
102   - <!-- frameworks -->
103   - <org.springframework.version>3.2.4.RELEASE</org.springframework.version>
104   -
105   - </properties>
106   -
107   - <dependencies>
108   - <!-- Test Dependency Begin -->
109   - <dependency>
110   - <groupId>junit</groupId>
111   - <artifactId>junit</artifactId>
112   - <version>4.11</version>
113   - </dependency>
114   - <!-- Test Dependency End -->
115   - </dependencies>
116   -
117   - <dependencyManagement>
118   - <dependencies>
119   - <!-- Common Dependency Begin -->
120   - <dependency>
121   - <groupId>xalan</groupId>
122   - <artifactId>xalan</artifactId>
123   - <version>2.7.1</version>
124   - </dependency>
125   - <dependency>
126   - <groupId>antlr</groupId>
127   - <artifactId>antlr</artifactId>
128   - <version>2.7.6</version>
129   - </dependency>
130   - <dependency>
131   - <groupId>aopalliance</groupId>
132   - <artifactId>aopalliance</artifactId>
133   - <version>1.0</version>
134   - </dependency>
135   - <dependency>
136   - <groupId>org.aspectj</groupId>
137   - <artifactId>aspectjweaver</artifactId>
138   - <version>1.7.3</version>
139   - </dependency>
140   - <dependency>
141   - <groupId>cglib</groupId>
142   - <artifactId>cglib</artifactId>
143   - <version>2.2.2</version>
144   - </dependency>
145   - <dependency>
146   - <groupId>asm</groupId>
147   - <artifactId>asm</artifactId>
148   - <version>3.3.1</version>
149   - </dependency>
150   - <dependency>
151   - <groupId>net.sf.json-lib</groupId>
152   - <artifactId>json-lib</artifactId>
153   - <version>2.3</version>
154   - <classifier>jdk15</classifier>
155   - <scope>compile</scope>
156   - </dependency>
157   - <dependency>
158   - <groupId>org.codehaus.jackson</groupId>
159   - <artifactId>jackson-core-asl</artifactId>
160   - <version>1.9.13</version>
161   - </dependency>
162   - <dependency>
163   - <groupId>org.codehaus.jackson</groupId>
164   - <artifactId>jackson-mapper-asl</artifactId>
165   - <version>1.9.13</version>
166   - </dependency>
167   - <dependency>
168   - <groupId>ognl</groupId>
169   - <artifactId>ognl</artifactId>
170   - <version>3.0.6</version>
171   - </dependency>
172   - <dependency>
173   - <groupId>oro</groupId>
174   - <artifactId>oro</artifactId>
175   - <version>2.0.8</version>
176   - </dependency>
177   - <dependency>
178   - <groupId>commons-net</groupId>
179   - <artifactId>commons-net</artifactId>
180   - <version>3.2</version>
181   - </dependency>
182   - <dependency>
183   - <groupId>commons-beanutils</groupId>
184   - <artifactId>commons-beanutils</artifactId>
185   - <version>1.8.0</version>
186   - </dependency>
187   - <dependency>
188   - <groupId>commons-codec</groupId>
189   - <artifactId>commons-codec</artifactId>
190   - <version>1.8</version>
191   - </dependency>
192   - <dependency>
193   - <groupId>commons-collections</groupId>
194   - <artifactId>commons-collections</artifactId>
195   - <version>3.2</version>
196   - </dependency>
197   - <dependency>
198   - <groupId>commons-digester</groupId>
199   - <artifactId>commons-digester</artifactId>
200   - <version>2.0</version>
201   - </dependency>
202   - <dependency>
203   - <groupId>commons-fileupload</groupId>
204   - <artifactId>commons-fileupload</artifactId>
205   - <version>1.3.1</version>
206   - </dependency>
207   - <dependency>
208   - <groupId>commons-io</groupId>
209   - <artifactId>commons-io</artifactId>
210   - <version>2.4</version>
211   - </dependency>
212   - <dependency>
213   - <groupId>commons-lang</groupId>
214   - <artifactId>commons-lang</artifactId>
215   - <version>2.5</version>
216   - </dependency>
217   - <dependency>
218   - <groupId>org.apache.commons</groupId>
219   - <artifactId>commons-lang3</artifactId>
220   - <version>3.1</version>
221   - </dependency>
222   - <dependency>
223   - <groupId>commons-logging</groupId>
224   - <artifactId>commons-logging</artifactId>
225   - <version>1.1.3</version>
226   - </dependency>
227   - <dependency>
228   - <groupId>commons-validator</groupId>
229   - <artifactId>commons-validator</artifactId>
230   - <version>1.1.4</version>
231   - </dependency>
232   - <dependency>
233   - <groupId>commons-cli</groupId>
234   - <artifactId>commons-cli</artifactId>
235   - <version>1.2</version>
236   - </dependency>
237   - <dependency>
238   - <groupId>dom4j</groupId>
239   - <artifactId>dom4j</artifactId>
240   - <version>1.6.1</version>
241   - </dependency>
242   - <dependency>
243   - <groupId>net.sf.ezmorph</groupId>
244   - <artifactId>ezmorph</artifactId>
245   - <version>1.0.6</version>
246   - </dependency>
247   - <dependency>
248   - <groupId>javassist</groupId>
249   - <artifactId>javassist</artifactId>
250   - <version>3.12.1.GA</version>
251   - </dependency>
252   - <dependency>
253   - <groupId>jstl</groupId>
254   - <artifactId>jstl</artifactId>
255   - <version>1.2</version>
256   - </dependency>
257   - <dependency>
258   - <groupId>javax.transaction</groupId>
259   - <artifactId>jta</artifactId>
260   - <version>1.1</version>
261   - </dependency>
262   - <dependency>
263   - <groupId>log4j</groupId>
264   - <artifactId>log4j</artifactId>
265   - <version>1.2.17</version>
266   - </dependency>
267   - <dependency>
268   - <groupId>org.slf4j</groupId>
269   - <artifactId>slf4j-api</artifactId>
270   - <version>1.7.5</version>
271   - </dependency>
272   - <dependency>
273   - <groupId>org.slf4j</groupId>
274   - <artifactId>slf4j-log4j12</artifactId>
275   - <version>1.7.5</version>
276   - </dependency>
277   - <dependency>
278   - <groupId>net.sourceforge.jexcelapi</groupId>
279   - <artifactId>jxl</artifactId>
280   - <version>2.6.12</version>
281   - </dependency>
282   - <!-- <dependency> <groupId>com.alibaba.external</groupId> <artifactId>sourceforge.spring</artifactId>
283   - <version>2.0.1</version> </dependency> <dependency> <groupId>com.alibaba.external</groupId>
284   - <artifactId>jakarta.commons.poolg</artifactId> <version>1.3</version> </dependency> -->
285   - <dependency>
286   - <groupId>org.jdom</groupId>
287   - <artifactId>jdom</artifactId>
288   - <version>1.1.3</version>
289   - </dependency>
290   - <dependency>
291   - <groupId>jaxen</groupId>
292   - <artifactId>jaxen</artifactId>
293   - <version>1.1.1</version>
294   - </dependency>
295   - <dependency>
296   - <groupId>com.alibaba</groupId>
297   - <artifactId>dubbo</artifactId>
298   - <version>2.5.3</version>
299   - </dependency>
300   - <dependency>
301   - <groupId>redis.clients</groupId>
302   - <artifactId>jedis</artifactId>
303   - <version>2.8.1</version>
304   - </dependency>
305   -
306   - <!-- Common Dependency End -->
307   -
308   - <!-- Zookeeper 用于分布式服务管理 -->
309   - <dependency>
310   - <groupId>org.apache.zookeeper</groupId>
311   - <artifactId>zookeeper</artifactId>
312   - <version>3.4.5</version>
313   - </dependency>
314   - <dependency>
315   - <groupId>com.101tec</groupId>
316   - <artifactId>zkclient</artifactId>
317   - <version>0.3</version>
318   - </dependency>
319   - <!-- Zookeeper 用于分布式服务管理 end -->
320   -
321   -
322   - <!-- Spring Dependency Begin -->
323   - <dependency>
324   - <groupId>org.springframework</groupId>
325   - <artifactId>spring-aop</artifactId>
326   - <version>${org.springframework.version}</version>
327   - </dependency>
328   - <dependency>
329   - <groupId>org.springframework</groupId>
330   - <artifactId>spring-aspects</artifactId>
331   - <version>${org.springframework.version}</version>
332   - </dependency>
333   - <dependency>
334   - <groupId>org.springframework</groupId>
335   - <artifactId>spring-beans</artifactId>
336   - <version>${org.springframework.version}</version>
337   - </dependency>
338   - <dependency>
339   - <groupId>org.springframework</groupId>
340   - <artifactId>spring-context</artifactId>
341   - <version>${org.springframework.version}</version>
342   - </dependency>
343   - <dependency>
344   - <groupId>org.springframework</groupId>
345   - <artifactId>spring-context-support</artifactId>
346   - <version>${org.springframework.version}</version>
347   - </dependency>
348   - <dependency>
349   - <groupId>org.springframework</groupId>
350   - <artifactId>spring-core</artifactId>
351   - <version>${org.springframework.version}</version>
352   - </dependency>
353   - <dependency>
354   - <groupId>org.springframework</groupId>
355   - <artifactId>spring-expression</artifactId>
356   - <version>${org.springframework.version}</version>
357   - </dependency>
358   - <dependency>
359   - <groupId>org.springframework</groupId>
360   - <artifactId>spring-instrument</artifactId>
361   - <version>${org.springframework.version}</version>
362   - </dependency>
363   - <dependency>
364   - <groupId>org.springframework</groupId>
365   - <artifactId>spring-instrument-tomcat</artifactId>
366   - <version>${org.springframework.version}</version>
367   - </dependency>
368   - <dependency>
369   - <groupId>org.springframework</groupId>
370   - <artifactId>spring-jdbc</artifactId>
371   - <version>${org.springframework.version}</version>
372   - </dependency>
373   - <dependency>
374   - <groupId>org.springframework</groupId>
375   - <artifactId>spring-jms</artifactId>
376   - <version>${org.springframework.version}</version>
377   - </dependency>
378   - <dependency>
379   - <groupId>org.springframework</groupId>
380   - <artifactId>spring-orm</artifactId>
381   - <version>${org.springframework.version}</version>
382   - </dependency>
383   - <dependency>
384   - <groupId>org.springframework</groupId>
385   - <artifactId>spring-oxm</artifactId>
386   - <version>${org.springframework.version}</version>
387   - </dependency>
388   - <dependency>
389   - <groupId>org.springframework</groupId>
390   - <artifactId>spring-struts</artifactId>
391   - <version>${org.springframework.version}</version>
392   - </dependency>
393   - <dependency>
394   - <groupId>org.springframework</groupId>
395   - <artifactId>spring-test</artifactId>
396   - <version>${org.springframework.version}</version>
397   - <scope>test</scope>
398   - </dependency>
399   - <dependency>
400   - <groupId>org.springframework</groupId>
401   - <artifactId>spring-tx</artifactId>
402   - <version>${org.springframework.version}</version>
403   - </dependency>
404   - <dependency>
405   - <groupId>org.springframework</groupId>
406   - <artifactId>spring-web</artifactId>
407   - <version>${org.springframework.version}</version>
408   - </dependency>
409   - <dependency>
410   - <groupId>org.springframework</groupId>
411   - <artifactId>spring-webmvc</artifactId>
412   - <version>${org.springframework.version}</version>
413   - </dependency>
414   - <dependency>
415   - <groupId>org.springframework</groupId>
416   - <artifactId>spring-webmvc-portlet</artifactId>
417   - <version>${org.springframework.version}</version>
418   - </dependency>
419   - <!-- Spring Dependency End -->
420   -
421   - <!-- MyBatis Dependency Begin -->
422   - <dependency>
423   - <groupId>org.mybatis</groupId>
424   - <artifactId>mybatis</artifactId>
425   - <version>3.2.8</version>
426   - </dependency>
427   - <dependency>
428   - <groupId>org.mybatis</groupId>
429   - <artifactId>mybatis-spring</artifactId>
430   - <version>1.2.2</version>
431   - </dependency>
432   - <!-- MyBatis Dependency End -->
433   -
434   - <!-- Mysql Driver Begin -->
435   - <dependency>
436   - <groupId>mysql</groupId>
437   - <artifactId>mysql-connector-java</artifactId>
438   - <version>5.1.32</version>
439   - </dependency>
440   - <!-- Mysql Driver End -->
441   -
442   - <!-- Others Begin -->
443   - <dependency>
444   - <groupId>com.google.code</groupId>
445   - <artifactId>kaptcha</artifactId>
446   - <version>2.3.2</version>
447   - </dependency>
448   - <dependency>
449   - <groupId>org.apache.tomcat</groupId>
450   - <artifactId>servlet-api</artifactId>
451   - <version>6.0.37</version>
452   - </dependency>
453   - <dependency>
454   - <groupId>org.apache.tomcat</groupId>
455   - <artifactId>jsp-api</artifactId>
456   - <version>6.0.37</version>
457   - </dependency>
458   - <dependency>
459   - <groupId>org.freemarker</groupId>
460   - <artifactId>freemarker</artifactId>
461   - <version>2.3.19</version>
462   - </dependency>
463   - <dependency>
464   - <groupId>com.alibaba</groupId>
465   - <artifactId>druid</artifactId>
466   - <version>1.0.12</version>
467   - </dependency>
468   - <dependency>
469   - <groupId>com.alibaba</groupId>
470   - <artifactId>fastjson</artifactId>
471   - <version>1.1.41</version>
472   - </dependency>
473   - <dependency>
474   - <groupId>org.apache.httpcomponents</groupId>
475   - <artifactId>httpclient</artifactId>
476   - <version>4.5.2</version>
477   - </dependency>
478   - <dependency>
479   - <groupId>org.jboss.netty</groupId>
480   - <artifactId>netty</artifactId>
481   - <version>3.2.5.Final</version>
482   - </dependency>
483   - <dependency>
484   - <groupId>org.apache.activemq</groupId>
485   - <artifactId>activemq-all</artifactId>
486   - <version>5.8.0</version>
487   - </dependency>
488   - <dependency>
489   - <groupId>org.apache.activemq</groupId>
490   - <artifactId>activemq-pool</artifactId>
491   - <version>5.8.0</version>
492   - </dependency>
493   - <!-- Others End -->
494   -
495   -
496   - <dependency>
497   - <groupId>org.jsoup</groupId>
498   - <artifactId>jsoup</artifactId>
499   - <version>1.7.3</version>
500   - </dependency>
501   -
502   - <!-- dozer bean copy -->
503   - <dependency>
504   - <groupId>net.sf.dozer</groupId>
505   - <artifactId>dozer</artifactId>
506   - <version>${dozer.version}</version>
507   - <exclusions>
508   - <exclusion>
509   - <groupId>org.slf4j</groupId>
510   - <artifactId>slf4j-log4j12</artifactId>
511   - </exclusion>
512   - </exclusions>
513   - </dependency>
514   -
515   - </dependencies>
516   - </dependencyManagement>
517   -
518   - <build>
519   - <plugins>
520   - <plugin>
521   - <groupId>org.apache.maven.plugins</groupId>
522   - <artifactId>maven-deploy-plugin</artifactId>
523   - <version>2.7</version>
524   - <configuration>
525   - <uniqueVersion>false</uniqueVersion>
526   - </configuration>
527   - </plugin>
528   - <plugin>
529   - <groupId>org.apache.maven.plugins</groupId>
530   - <artifactId>maven-eclipse-plugin</artifactId>
531   - <version>2.8</version>
532   - </plugin>
533   - <plugin>
534   - <groupId>org.apache.maven.plugins</groupId>
535   - <artifactId>maven-compiler-plugin</artifactId>
536   - <version>2.3.2</version>
537   - <configuration>
538   - <failOnError>true</failOnError>
539   - <verbose>true</verbose>
540   - <fork>true</fork>
541   - <compilerArgument>-nowarn</compilerArgument>
542   - <source>1.6</source>
543   - <target>1.6</target>
544   - <encoding>UTF-8</encoding>
545   - </configuration>
546   - </plugin>
547   - <plugin>
548   - <groupId>org.apache.maven.plugins</groupId>
549   - <artifactId>maven-source-plugin</artifactId>
550   - <version>2.1.2</version>
551   - <executions>
552   - <execution>
553   - <id>attach-sources</id>
554   - <goals>
555   - <goal>jar</goal>
556   - </goals>
557   - </execution>
558   - </executions>
559   - </plugin>
560   - </plugins>
561   - </build>
562   -
563   - <reporting>
564   - <plugins>
565   -
566   - <plugin>
567   - <groupId>org.apache.maven.plugins</groupId>
568   - <artifactId>maven-checkstyle-plugin</artifactId>
569   - <version>2.10</version>
570   - <configuration>
571   - <configLocation>config/sun_checks.xml</configLocation>
572   - <suppressionsLocation>config/checkstyle-suppressions.xml</suppressionsLocation>
573   - <encoding>UTF-8</encoding>
574   - </configuration>
575   - </plugin>
576   -
577   - <plugin>
578   - <groupId>org.apache.maven.plugins</groupId>
579   - <artifactId>maven-pmd-plugin</artifactId>
580   - <version>3.0.1</version>
581   - <configuration>
582   - <rulesets>
583   - <!-- pmd 5.0.2 的Java所规则如下 -->
584   - <!-- <ruleset>rulesets/java/android.xml</ruleset> -->
585   - <ruleset>rulesets/java/basic.xml</ruleset>
586   - <ruleset>rulesets/java/braces.xml</ruleset>
587   - <ruleset>rulesets/java/clone.xml</ruleset>
588   - <ruleset>rulesets/java/codesize.xml</ruleset>
589   - <ruleset>rulesets/java/controversial.xml</ruleset>
590   - <ruleset>rulesets/java/coupling.xml</ruleset>
591   - <ruleset>rulesets/java/design.xml</ruleset>
592   - <ruleset>rulesets/java/empty.xml</ruleset>
593   - <ruleset>rulesets/java/finalizers.xml</ruleset>
594   - <ruleset>rulesets/java/imports.xml</ruleset>
595   - <ruleset>rulesets/java/j2ee.xml</ruleset>
596   - <ruleset>rulesets/java/javabeans.xml</ruleset>
597   - <ruleset>rulesets/java/junit.xml</ruleset>
598   - <ruleset>rulesets/java/logging-jakarta-commons.xml</ruleset>
599   - <ruleset>rulesets/java/logging-java.xml</ruleset>
600   - <ruleset>rulesets/java/migrating.xml</ruleset>
601   - <ruleset>rulesets/java/naming.xml</ruleset>
602   - <ruleset>rulesets/java/optimizations.xml</ruleset>
603   - <ruleset>rulesets/java/strictexception.xml</ruleset>
604   - <ruleset>rulesets/java/strings.xml</ruleset>
605   - <ruleset>rulesets/java/sunsecure.xml</ruleset>
606   - <ruleset>rulesets/java/typeresolution.xml</ruleset>
607   - <ruleset>rulesets/java/unnecessary.xml</ruleset>
608   - <ruleset>rulesets/java/unusedcode.xml</ruleset>
609   - </rulesets>
610   - <aggregate>true</aggregate>
611   - </configuration>
612   - </plugin>
613   -
614   - <plugin>
615   - <groupId>org.codehaus.mojo</groupId>
616   - <artifactId>findbugs-maven-plugin</artifactId>
617   - <version>2.5.2</version>
618   - </plugin>
619   -
620   - <plugin>
621   - <!-- 添加了jxr插件 ,用来在生成的结果中可以通过link找到代码对应的行 -->
622   - <groupId>org.apache.maven.plugins</groupId>
623   - <artifactId>maven-jxr-plugin</artifactId>
624   - <version>2.3</version>
625   - <!-- 支持聚合报告 -->
626   - <configuration>
627   - <aggregate>true</aggregate>
628   - </configuration>
629   - </plugin>
630   -
631   - </plugins>
632   - </reporting>
633   -
  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/xsd/maven-4.0.0.xsd">
  3 + <modelVersion>4.0.0</modelVersion>
  4 +
  5 + <groupId>com.ylp.common</groupId>
  6 + <artifactId>ylp-common-parent</artifactId>
  7 + <version>1.0-Release</version>
  8 + <packaging>pom</packaging>
  9 +
  10 + <name>ylp-common-parent</name>
  11 + <url>http://maven.apache.org</url>
  12 +
  13 + <!-- 全局属性配置 -->
  14 + <profiles>
  15 +
  16 + <!-- 开发环境 -->
  17 + <profile>
  18 + <id>main</id>
  19 + <properties>
  20 + <!-- 部署环境(对应配置文件版本) -->
  21 + <env>main</env>
  22 + <ver>3.0-SNAPSHOT</ver>
  23 + <maven.test.skip>false</maven.test.skip>
  24 + </properties>
  25 + <!-- 设置默认环境 -->
  26 + <activation>
  27 + <activeByDefault>true</activeByDefault>
  28 + </activation>
  29 + </profile>
  30 +
  31 + <!-- 测试环境 -->
  32 + <profile>
  33 + <id>test</id>
  34 + <properties>
  35 + <!-- 部署环境(对应配置文件版本) -->
  36 + <env>test</env>
  37 + <ver>3.0-SNAPSHOT</ver>
  38 + </properties>
  39 + </profile>
  40 +
  41 + <!-- qa环境 -->
  42 + <profile>
  43 + <id>qa</id>
  44 + <properties>
  45 + <!-- 部署环境(对应配置文件版本) -->
  46 + <env>qa</env>
  47 + <ver>1.0-Release</ver>
  48 + </properties>
  49 + </profile>
  50 +
  51 + <!-- prod环境 -->
  52 + <profile>
  53 + <id>prod</id>
  54 + <properties>
  55 + <!-- 部署环境(对应配置文件版本) -->
  56 + <env>prod</env>
  57 + <ver>1.0-Release</ver>
  58 + </properties>
  59 + </profile>
  60 +
  61 + </profiles>
  62 +
  63 + <distributionManagement>
  64 + <repository>
  65 + <id>nexus-releases</id>
  66 + <name>Nexus Release Repository</name>
  67 + <url>http://nexus.vipzhuang.cn/content/repositories/releases/</url>
  68 + </repository>
  69 + <snapshotRepository>
  70 + <id>nexus-snapshots</id>
  71 + <name>Nexus Snapshot Repository</name>
  72 + <url>http://nexus.vipzhuang.cn/content/repositories/snapshots/</url>
  73 + </snapshotRepository>
  74 + </distributionManagement>
  75 +
  76 + <repositories>
  77 + <repository>
  78 + <id>nexus</id>
  79 + <url>http://nexus.vipzhuang.cn/content/groups/public</url>
  80 + <releases>
  81 + <enabled>true</enabled>
  82 + </releases>
  83 + <snapshots>
  84 + <enabled>false</enabled>
  85 + </snapshots>
  86 + </repository>
  87 + <repository>
  88 + <id>nexus-snapshots</id>
  89 + <url>http://nexus.vipzhuang.cn/content/repositories/snapshots/</url>
  90 + <releases>
  91 + <enabled>false</enabled>
  92 + </releases>
  93 + <snapshots>
  94 + <enabled>true</enabled>
  95 + </snapshots>
  96 + </repository>
  97 + </repositories>
  98 +
  99 + <properties>
  100 + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  101 +
  102 + <!-- frameworks -->
  103 + <org.springframework.version>3.2.4.RELEASE</org.springframework.version>
  104 + <sonar.host.url>http://172.16.8.244:9000</sonar.host.url>
  105 + <sonar.language>java</sonar.language>
  106 + <sonar.inclusions>src/main/java/**/*.java</sonar.inclusions>
  107 + <sonar.java.binaries>target/classes</sonar.java.binaries>
  108 + <sonar.java.libraries>target/dependency/*.jar</sonar.java.libraries>
  109 + <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
  110 + <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
  111 +
  112 + </properties>
  113 +
  114 + <dependencies>
  115 + <!-- Test Dependency Begin -->
  116 + <dependency>
  117 + <groupId>junit</groupId>
  118 + <artifactId>junit</artifactId>
  119 + <version>4.11</version>
  120 + </dependency>
  121 + <!-- Test Dependency End -->
  122 + </dependencies>
  123 +
  124 + <dependencyManagement>
  125 + <dependencies>
  126 + <!-- Common Dependency Begin -->
  127 + <dependency>
  128 + <groupId>xalan</groupId>
  129 + <artifactId>xalan</artifactId>
  130 + <version>2.7.1</version>
  131 + </dependency>
  132 + <dependency>
  133 + <groupId>antlr</groupId>
  134 + <artifactId>antlr</artifactId>
  135 + <version>2.7.6</version>
  136 + </dependency>
  137 + <dependency>
  138 + <groupId>aopalliance</groupId>
  139 + <artifactId>aopalliance</artifactId>
  140 + <version>1.0</version>
  141 + </dependency>
  142 + <dependency>
  143 + <groupId>org.aspectj</groupId>
  144 + <artifactId>aspectjweaver</artifactId>
  145 + <version>1.7.3</version>
  146 + </dependency>
  147 + <dependency>
  148 + <groupId>cglib</groupId>
  149 + <artifactId>cglib</artifactId>
  150 + <version>2.2.2</version>
  151 + </dependency>
  152 + <dependency>
  153 + <groupId>asm</groupId>
  154 + <artifactId>asm</artifactId>
  155 + <version>3.3.1</version>
  156 + </dependency>
  157 + <dependency>
  158 + <groupId>net.sf.json-lib</groupId>
  159 + <artifactId>json-lib</artifactId>
  160 + <version>2.3</version>
  161 + <classifier>jdk15</classifier>
  162 + <scope>compile</scope>
  163 + </dependency>
  164 + <dependency>
  165 + <groupId>org.codehaus.jackson</groupId>
  166 + <artifactId>jackson-core-asl</artifactId>
  167 + <version>1.9.13</version>
  168 + </dependency>
  169 + <dependency>
  170 + <groupId>org.codehaus.jackson</groupId>
  171 + <artifactId>jackson-mapper-asl</artifactId>
  172 + <version>1.9.13</version>
  173 + </dependency>
  174 + <dependency>
  175 + <groupId>ognl</groupId>
  176 + <artifactId>ognl</artifactId>
  177 + <version>3.0.6</version>
  178 + </dependency>
  179 + <dependency>
  180 + <groupId>oro</groupId>
  181 + <artifactId>oro</artifactId>
  182 + <version>2.0.8</version>
  183 + </dependency>
  184 + <dependency>
  185 + <groupId>commons-net</groupId>
  186 + <artifactId>commons-net</artifactId>
  187 + <version>3.2</version>
  188 + </dependency>
  189 + <dependency>
  190 + <groupId>commons-beanutils</groupId>
  191 + <artifactId>commons-beanutils</artifactId>
  192 + <version>1.8.0</version>
  193 + </dependency>
  194 + <dependency>
  195 + <groupId>commons-codec</groupId>
  196 + <artifactId>commons-codec</artifactId>
  197 + <version>1.8</version>
  198 + </dependency>
  199 + <dependency>
  200 + <groupId>commons-collections</groupId>
  201 + <artifactId>commons-collections</artifactId>
  202 + <version>3.2</version>
  203 + </dependency>
  204 + <dependency>
  205 + <groupId>commons-digester</groupId>
  206 + <artifactId>commons-digester</artifactId>
  207 + <version>2.0</version>
  208 + </dependency>
  209 + <dependency>
  210 + <groupId>commons-fileupload</groupId>
  211 + <artifactId>commons-fileupload</artifactId>
  212 + <version>1.3.1</version>
  213 + </dependency>
  214 + <dependency>
  215 + <groupId>commons-io</groupId>
  216 + <artifactId>commons-io</artifactId>
  217 + <version>2.4</version>
  218 + </dependency>
  219 + <dependency>
  220 + <groupId>commons-lang</groupId>
  221 + <artifactId>commons-lang</artifactId>
  222 + <version>2.5</version>
  223 + </dependency>
  224 + <dependency>
  225 + <groupId>org.apache.commons</groupId>
  226 + <artifactId>commons-lang3</artifactId>
  227 + <version>3.1</version>
  228 + </dependency>
  229 + <dependency>
  230 + <groupId>commons-logging</groupId>
  231 + <artifactId>commons-logging</artifactId>
  232 + <version>1.1.3</version>
  233 + </dependency>
  234 + <dependency>
  235 + <groupId>commons-validator</groupId>
  236 + <artifactId>commons-validator</artifactId>
  237 + <version>1.1.4</version>
  238 + </dependency>
  239 + <dependency>
  240 + <groupId>commons-cli</groupId>
  241 + <artifactId>commons-cli</artifactId>
  242 + <version>1.2</version>
  243 + </dependency>
  244 + <dependency>
  245 + <groupId>dom4j</groupId>
  246 + <artifactId>dom4j</artifactId>
  247 + <version>1.6.1</version>
  248 + </dependency>
  249 + <dependency>
  250 + <groupId>net.sf.ezmorph</groupId>
  251 + <artifactId>ezmorph</artifactId>
  252 + <version>1.0.6</version>
  253 + </dependency>
  254 + <dependency>
  255 + <groupId>javassist</groupId>
  256 + <artifactId>javassist</artifactId>
  257 + <version>3.12.1.GA</version>
  258 + </dependency>
  259 + <dependency>
  260 + <groupId>jstl</groupId>
  261 + <artifactId>jstl</artifactId>
  262 + <version>1.2</version>
  263 + </dependency>
  264 + <dependency>
  265 + <groupId>javax.transaction</groupId>
  266 + <artifactId>jta</artifactId>
  267 + <version>1.1</version>
  268 + </dependency>
  269 + <dependency>
  270 + <groupId>log4j</groupId>
  271 + <artifactId>log4j</artifactId>
  272 + <version>1.2.17</version>
  273 + </dependency>
  274 + <dependency>
  275 + <groupId>org.slf4j</groupId>
  276 + <artifactId>slf4j-api</artifactId>
  277 + <version>1.7.5</version>
  278 + </dependency>
  279 + <dependency>
  280 + <groupId>org.slf4j</groupId>
  281 + <artifactId>slf4j-log4j12</artifactId>
  282 + <version>1.7.5</version>
  283 + </dependency>
  284 + <dependency>
  285 + <groupId>net.sourceforge.jexcelapi</groupId>
  286 + <artifactId>jxl</artifactId>
  287 + <version>2.6.12</version>
  288 + </dependency>
  289 + <!-- <dependency> <groupId>com.alibaba.external</groupId> <artifactId>sourceforge.spring</artifactId>
  290 + <version>2.0.1</version> </dependency> <dependency> <groupId>com.alibaba.external</groupId>
  291 + <artifactId>jakarta.commons.poolg</artifactId> <version>1.3</version> </dependency> -->
  292 + <dependency>
  293 + <groupId>org.jdom</groupId>
  294 + <artifactId>jdom</artifactId>
  295 + <version>1.1.3</version>
  296 + </dependency>
  297 + <dependency>
  298 + <groupId>jaxen</groupId>
  299 + <artifactId>jaxen</artifactId>
  300 + <version>1.1.1</version>
  301 + </dependency>
  302 + <dependency>
  303 + <groupId>com.alibaba</groupId>
  304 + <artifactId>dubbo</artifactId>
  305 + <version>2.5.3</version>
  306 + </dependency>
  307 + <dependency>
  308 + <groupId>redis.clients</groupId>
  309 + <artifactId>jedis</artifactId>
  310 + <version>2.8.1</version>
  311 + </dependency>
  312 +
  313 + <!-- Common Dependency End -->
  314 +
  315 + <!-- Zookeeper 用于分布式服务管理 -->
  316 + <dependency>
  317 + <groupId>org.apache.zookeeper</groupId>
  318 + <artifactId>zookeeper</artifactId>
  319 + <version>3.4.5</version>
  320 + </dependency>
  321 + <dependency>
  322 + <groupId>com.101tec</groupId>
  323 + <artifactId>zkclient</artifactId>
  324 + <version>0.3</version>
  325 + </dependency>
  326 + <!-- Zookeeper 用于分布式服务管理 end -->
  327 +
  328 +
  329 + <!-- Spring Dependency Begin -->
  330 + <dependency>
  331 + <groupId>org.springframework</groupId>
  332 + <artifactId>spring-aop</artifactId>
  333 + <version>${org.springframework.version}</version>
  334 + </dependency>
  335 + <dependency>
  336 + <groupId>org.springframework</groupId>
  337 + <artifactId>spring-aspects</artifactId>
  338 + <version>${org.springframework.version}</version>
  339 + </dependency>
  340 + <dependency>
  341 + <groupId>org.springframework</groupId>
  342 + <artifactId>spring-beans</artifactId>
  343 + <version>${org.springframework.version}</version>
  344 + </dependency>
  345 + <dependency>
  346 + <groupId>org.springframework</groupId>
  347 + <artifactId>spring-context</artifactId>
  348 + <version>${org.springframework.version}</version>
  349 + </dependency>
  350 + <dependency>
  351 + <groupId>org.springframework</groupId>
  352 + <artifactId>spring-context-support</artifactId>
  353 + <version>${org.springframework.version}</version>
  354 + </dependency>
  355 + <dependency>
  356 + <groupId>org.springframework</groupId>
  357 + <artifactId>spring-core</artifactId>
  358 + <version>${org.springframework.version}</version>
  359 + </dependency>
  360 + <dependency>
  361 + <groupId>org.springframework</groupId>
  362 + <artifactId>spring-expression</artifactId>
  363 + <version>${org.springframework.version}</version>
  364 + </dependency>
  365 + <dependency>
  366 + <groupId>org.springframework</groupId>
  367 + <artifactId>spring-instrument</artifactId>
  368 + <version>${org.springframework.version}</version>
  369 + </dependency>
  370 + <dependency>
  371 + <groupId>org.springframework</groupId>
  372 + <artifactId>spring-instrument-tomcat</artifactId>
  373 + <version>${org.springframework.version}</version>
  374 + </dependency>
  375 + <dependency>
  376 + <groupId>org.springframework</groupId>
  377 + <artifactId>spring-jdbc</artifactId>
  378 + <version>${org.springframework.version}</version>
  379 + </dependency>
  380 + <dependency>
  381 + <groupId>org.springframework</groupId>
  382 + <artifactId>spring-jms</artifactId>
  383 + <version>${org.springframework.version}</version>
  384 + </dependency>
  385 + <dependency>
  386 + <groupId>org.springframework</groupId>
  387 + <artifactId>spring-orm</artifactId>
  388 + <version>${org.springframework.version}</version>
  389 + </dependency>
  390 + <dependency>
  391 + <groupId>org.springframework</groupId>
  392 + <artifactId>spring-oxm</artifactId>
  393 + <version>${org.springframework.version}</version>
  394 + </dependency>
  395 + <dependency>
  396 + <groupId>org.springframework</groupId>
  397 + <artifactId>spring-struts</artifactId>
  398 + <version>${org.springframework.version}</version>
  399 + </dependency>
  400 + <dependency>
  401 + <groupId>org.springframework</groupId>
  402 + <artifactId>spring-test</artifactId>
  403 + <version>${org.springframework.version}</version>
  404 + <scope>test</scope>
  405 + </dependency>
  406 + <dependency>
  407 + <groupId>org.springframework</groupId>
  408 + <artifactId>spring-tx</artifactId>
  409 + <version>${org.springframework.version}</version>
  410 + </dependency>
  411 + <dependency>
  412 + <groupId>org.springframework</groupId>
  413 + <artifactId>spring-web</artifactId>
  414 + <version>${org.springframework.version}</version>
  415 + </dependency>
  416 + <dependency>
  417 + <groupId>org.springframework</groupId>
  418 + <artifactId>spring-webmvc</artifactId>
  419 + <version>${org.springframework.version}</version>
  420 + </dependency>
  421 + <dependency>
  422 + <groupId>org.springframework</groupId>
  423 + <artifactId>spring-webmvc-portlet</artifactId>
  424 + <version>${org.springframework.version}</version>
  425 + </dependency>
  426 + <!-- Spring Dependency End -->
  427 +
  428 + <!-- MyBatis Dependency Begin -->
  429 + <dependency>
  430 + <groupId>org.mybatis</groupId>
  431 + <artifactId>mybatis</artifactId>
  432 + <version>3.2.8</version>
  433 + </dependency>
  434 + <dependency>
  435 + <groupId>org.mybatis</groupId>
  436 + <artifactId>mybatis-spring</artifactId>
  437 + <version>1.2.2</version>
  438 + </dependency>
  439 + <!-- MyBatis Dependency End -->
  440 +
  441 + <!-- Mysql Driver Begin -->
  442 + <dependency>
  443 + <groupId>mysql</groupId>
  444 + <artifactId>mysql-connector-java</artifactId>
  445 + <version>5.1.32</version>
  446 + </dependency>
  447 + <!-- Mysql Driver End -->
  448 +
  449 + <!-- Others Begin -->
  450 + <dependency>
  451 + <groupId>com.google.code</groupId>
  452 + <artifactId>kaptcha</artifactId>
  453 + <version>2.3.2</version>
  454 + </dependency>
  455 + <dependency>
  456 + <groupId>org.apache.tomcat</groupId>
  457 + <artifactId>servlet-api</artifactId>
  458 + <version>6.0.37</version>
  459 + </dependency>
  460 + <dependency>
  461 + <groupId>org.apache.tomcat</groupId>
  462 + <artifactId>jsp-api</artifactId>
  463 + <version>6.0.37</version>
  464 + </dependency>
  465 + <dependency>
  466 + <groupId>org.freemarker</groupId>
  467 + <artifactId>freemarker</artifactId>
  468 + <version>2.3.19</version>
  469 + </dependency>
  470 + <dependency>
  471 + <groupId>com.alibaba</groupId>
  472 + <artifactId>druid</artifactId>
  473 + <version>1.0.12</version>
  474 + </dependency>
  475 + <dependency>
  476 + <groupId>com.alibaba</groupId>
  477 + <artifactId>fastjson</artifactId>
  478 + <version>1.1.41</version>
  479 + </dependency>
  480 + <dependency>
  481 + <groupId>org.apache.httpcomponents</groupId>
  482 + <artifactId>httpclient</artifactId>
  483 + <version>4.5.2</version>
  484 + </dependency>
  485 + <dependency>
  486 + <groupId>org.jboss.netty</groupId>
  487 + <artifactId>netty</artifactId>
  488 + <version>3.2.5.Final</version>
  489 + </dependency>
  490 + <dependency>
  491 + <groupId>org.apache.activemq</groupId>
  492 + <artifactId>activemq-all</artifactId>
  493 + <version>5.8.0</version>
  494 + </dependency>
  495 + <dependency>
  496 + <groupId>org.apache.activemq</groupId>
  497 + <artifactId>activemq-pool</artifactId>
  498 + <version>5.8.0</version>
  499 + </dependency>
  500 + <!-- Others End -->
  501 +
  502 +
  503 + <dependency>
  504 + <groupId>org.jsoup</groupId>
  505 + <artifactId>jsoup</artifactId>
  506 + <version>1.7.3</version>
  507 + </dependency>
  508 +
  509 + <!-- dozer bean copy -->
  510 + <dependency>
  511 + <groupId>net.sf.dozer</groupId>
  512 + <artifactId>dozer</artifactId>
  513 + <version>${dozer.version}</version>
  514 + <exclusions>
  515 + <exclusion>
  516 + <groupId>org.slf4j</groupId>
  517 + <artifactId>slf4j-log4j12</artifactId>
  518 + </exclusion>
  519 + </exclusions>
  520 + </dependency>
  521 +
  522 + </dependencies>
  523 + </dependencyManagement>
  524 +
  525 + <build>
  526 + <plugins>
  527 + <plugin>
  528 + <groupId>org.apache.maven.plugins</groupId>
  529 + <artifactId>maven-deploy-plugin</artifactId>
  530 + <version>2.7</version>
  531 + <configuration>
  532 + <uniqueVersion>false</uniqueVersion>
  533 + </configuration>
  534 + </plugin>
  535 + <plugin>
  536 + <groupId>org.apache.maven.plugins</groupId>
  537 + <artifactId>maven-eclipse-plugin</artifactId>
  538 + <version>2.8</version>
  539 + </plugin>
  540 + <plugin>
  541 + <groupId>org.apache.maven.plugins</groupId>
  542 + <artifactId>maven-compiler-plugin</artifactId>
  543 + <version>2.3.2</version>
  544 + <configuration>
  545 + <failOnError>true</failOnError>
  546 + <verbose>true</verbose>
  547 + <fork>true</fork>
  548 + <compilerArgument>-nowarn</compilerArgument>
  549 + <source>1.7</source>
  550 + <target>1.7</target>
  551 + <encoding>UTF-8</encoding>
  552 + </configuration>
  553 + </plugin>
  554 + <plugin>
  555 + <groupId>org.apache.maven.plugins</groupId>
  556 + <artifactId>maven-source-plugin</artifactId>
  557 + <version>2.1.2</version>
  558 + <executions>
  559 + <execution>
  560 + <id>attach-sources</id>
  561 + <goals>
  562 + <goal>jar</goal>
  563 + </goals>
  564 + </execution>
  565 + </executions>
  566 + </plugin>
  567 +
  568 +
  569 +
  570 + <!-- 切换到项目根目录执行mvn clean compile test package sonar:sonar能够生成测试报告 http://172.16.8.244:9000可以查看 -->
  571 + <plugin>
  572 + <groupId>org.sonarsource.scanner.maven</groupId>
  573 + <artifactId>sonar-maven-plugin</artifactId>
  574 + <version>3.3.0.603</version>
  575 + <executions>
  576 + <execution>
  577 + <id>sonar</id>
  578 + <phase>package</phase>
  579 + <goals>
  580 + <goal>sonar</goal>
  581 + </goals>
  582 + </execution>
  583 + </executions>
  584 + </plugin>
  585 + <!-- 拷贝依赖包插件 -->
  586 + <plugin>
  587 + <groupId>org.apache.maven.plugins</groupId>
  588 + <artifactId>maven-dependency-plugin</artifactId>
  589 + <version>3.0.0</version>
  590 + <executions>
  591 + <execution>
  592 + <id>copy</id>
  593 + <phase>process-resources</phase>
  594 + <goals>
  595 + <goal>copy-dependencies</goal>
  596 + </goals>
  597 + </execution>
  598 + </executions>
  599 + </plugin>
  600 +
  601 + <!-- 单元测试插件 -->
  602 + <plugin>
  603 + <groupId>org.apache.maven.plugins</groupId>
  604 + <artifactId>maven-surefire-plugin</artifactId>
  605 + <version>2.19.1</version>
  606 + </plugin>
  607 + <!-- 集成测试插件 -->
  608 + <plugin>
  609 + <groupId>org.apache.maven.plugins</groupId>
  610 + <artifactId>maven-failsafe-plugin</artifactId>
  611 + <version>2.19.1</version>
  612 + </plugin>
  613 + <!-- 覆盖率统计插件 -->
  614 + <plugin>
  615 + <groupId>org.jacoco</groupId>
  616 + <artifactId>jacoco-maven-plugin</artifactId>
  617 + <version>0.7.9</version>
  618 + <configuration>
  619 + <append>true</append>
  620 + </configuration>
  621 + <executions>
  622 + <execution>
  623 + <id>agent-for-ut</id>
  624 + <goals>
  625 + <goal>prepare-agent</goal>
  626 + </goals>
  627 + </execution>
  628 + <execution>
  629 + <id>agent-for-it</id>
  630 + <goals>
  631 + <goal>prepare-agent-integration</goal>
  632 + </goals>
  633 + </execution>
  634 + <execution>
  635 + <id>jacoco-site</id>
  636 + <phase>test</phase>
  637 + <goals>
  638 + <goal>report</goal>
  639 + </goals>
  640 + </execution>
  641 + </executions>
  642 + </plugin>
  643 + <!-- 性能测试,安全测试,docker发布插件,暂略 -->
  644 +
  645 +
  646 + </plugins>
  647 + </build>
  648 +
  649 + <reporting>
  650 + <plugins>
  651 +
  652 + <plugin>
  653 + <groupId>org.apache.maven.plugins</groupId>
  654 + <artifactId>maven-checkstyle-plugin</artifactId>
  655 + <version>2.10</version>
  656 + <configuration>
  657 + <configLocation>config/sun_checks.xml</configLocation>
  658 + <suppressionsLocation>config/checkstyle-suppressions.xml</suppressionsLocation>
  659 + <encoding>UTF-8</encoding>
  660 + </configuration>
  661 + </plugin>
  662 +
  663 + <plugin>
  664 + <groupId>org.apache.maven.plugins</groupId>
  665 + <artifactId>maven-pmd-plugin</artifactId>
  666 + <version>3.0.1</version>
  667 + <configuration>
  668 + <rulesets>
  669 + <!-- pmd 5.0.2 的Java所规则如下 -->
  670 + <!-- <ruleset>rulesets/java/android.xml</ruleset> -->
  671 + <ruleset>rulesets/java/basic.xml</ruleset>
  672 + <ruleset>rulesets/java/braces.xml</ruleset>
  673 + <ruleset>rulesets/java/clone.xml</ruleset>
  674 + <ruleset>rulesets/java/codesize.xml</ruleset>
  675 + <ruleset>rulesets/java/controversial.xml</ruleset>
  676 + <ruleset>rulesets/java/coupling.xml</ruleset>
  677 + <ruleset>rulesets/java/design.xml</ruleset>
  678 + <ruleset>rulesets/java/empty.xml</ruleset>
  679 + <ruleset>rulesets/java/finalizers.xml</ruleset>
  680 + <ruleset>rulesets/java/imports.xml</ruleset>
  681 + <ruleset>rulesets/java/j2ee.xml</ruleset>
  682 + <ruleset>rulesets/java/javabeans.xml</ruleset>
  683 + <ruleset>rulesets/java/junit.xml</ruleset>
  684 + <ruleset>rulesets/java/logging-jakarta-commons.xml</ruleset>
  685 + <ruleset>rulesets/java/logging-java.xml</ruleset>
  686 + <ruleset>rulesets/java/migrating.xml</ruleset>
  687 + <ruleset>rulesets/java/naming.xml</ruleset>
  688 + <ruleset>rulesets/java/optimizations.xml</ruleset>
  689 + <ruleset>rulesets/java/strictexception.xml</ruleset>
  690 + <ruleset>rulesets/java/strings.xml</ruleset>
  691 + <ruleset>rulesets/java/sunsecure.xml</ruleset>
  692 + <ruleset>rulesets/java/typeresolution.xml</ruleset>
  693 + <ruleset>rulesets/java/unnecessary.xml</ruleset>
  694 + <ruleset>rulesets/java/unusedcode.xml</ruleset>
  695 + </rulesets>
  696 + <aggregate>true</aggregate>
  697 + </configuration>
  698 + </plugin>
  699 +
  700 + <plugin>
  701 + <groupId>org.codehaus.mojo</groupId>
  702 + <artifactId>findbugs-maven-plugin</artifactId>
  703 + <version>2.5.2</version>
  704 + </plugin>
  705 +
  706 + <plugin>
  707 + <!-- 添加了jxr插件 ,用来在生成的结果中可以通过link找到代码对应的行 -->
  708 + <groupId>org.apache.maven.plugins</groupId>
  709 + <artifactId>maven-jxr-plugin</artifactId>
  710 + <version>2.3</version>
  711 + <!-- 支持聚合报告 -->
  712 + <configuration>
  713 + <aggregate>true</aggregate>
  714 + </configuration>
  715 + </plugin>
  716 +
  717 + </plugins>
  718 + </reporting>
  719 +
634 720 </project>
635 721 \ No newline at end of file
... ...