forked from knightliao/disconf-demos-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
121 lines (106 loc) · 4.24 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.baidu.disconf</groupId>
<artifactId>disconf-demos-java</artifactId>
<version>2.0.0</version>
<packaging>pom</packaging>
<modules>
<module>disconf-spring-boot-demo</module>
<module>disconf-standalone-demo</module>
<module>disconf-standalone-dubbo-demo</module>
</modules>
<!-- TEST 報告 mvn site -->
<reporting>
<plugins>
<!-- checkstyle -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.9.1</version>
</plugin>
<!-- pmd -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<aggregate>true</aggregate>
<targetJdk>1.6</targetJdk>
</configuration>
</plugin>
<!-- 定义Site生成的Index -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.7</version>
<reportSets>
<reportSet>
<reports>
<report>index</report>
<report>summary</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<!-- site UT 插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.5</version>
<configuration>
<aggregate>true</aggregate>
<argLine>-Dfile.encoding=UTF-8</argLine>
</configuration>
<reportSets>
<reportSet>
<reports>
<!-- 单测RUN一次,其它地方都可以用 -->
<report>report-only</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<!-- 覆盖率 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.6</version>
<configuration>
<encoding>UTF-8</encoding>
<aggregate>true</aggregate>
<formats>
<format>xml</format>
<format>html</format>
</formats>
<instrumentation>
<excludes>
<exclude>**/*Proto.class</exclude>
<exclude>**/*Proto$*.class</exclude>
<exclude>**/*Test.class</exclude>
<exclude>**/*Controller.class</exclude>
<exclude>**/*Vo.class</exclude>
<exclude>**/*Form.class</exclude>
</excludes>
</instrumentation>
<check/>
</configuration>
</plugin>
<!-- findbugs -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.2</version>
<configuration>
<aggregate>true</aggregate>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
</plugin>
</plugins>
</reporting>
</project>