Commit 2265e4ddc1cc025b9ed62f4f4e8837d422e860cd

Authored by 架构师-江远林
1 parent 2cddacb0

增加代码检测功能,项目根目录下执行mvn install

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