|
18 | 18 | <checkstyle.skip>${wc.qa.skip}</checkstyle.skip> |
19 | 19 | <findbugs.skip>${wc.qa.skip}</findbugs.skip> |
20 | 20 | <pmd.skip>${wc.qa.skip}</pmd.skip> |
| 21 | + <badges.skip>${wc.qa.skip}</badges.skip> |
| 22 | + <javadoc.excluded.packages></javadoc.excluded.packages> |
| 23 | + <checkstyle.excludes></checkstyle.excludes> |
21 | 24 | </properties> |
22 | 25 |
|
23 | 26 | <description> |
|
37 | 40 | <configLocation>bordertech/checkstyle.xml</configLocation> |
38 | 41 | <consoleOutput>true</consoleOutput> |
39 | 42 | <failsOnError>true</failsOnError> |
| 43 | + <failOnViolation>true</failOnViolation> |
40 | 44 | <linkXRef>false</linkXRef> |
41 | 45 | <includeTestSourceDirectory>false</includeTestSourceDirectory> |
42 | 46 | </configuration> |
|
86 | 90 | <artifactId>findbugs-maven-plugin</artifactId> |
87 | 91 | <version>3.0.3</version> |
88 | 92 | <configuration> |
| 93 | + <failOnError>true</failOnError> |
89 | 94 | <effort>Max</effort> |
90 | 95 | <includeTests>false</includeTests> |
91 | 96 | <threshold>Medium</threshold> |
|
108 | 113 | </execution> |
109 | 114 | </executions> |
110 | 115 | </plugin> |
| 116 | + |
| 117 | + <!-- Code coverage. --> |
| 118 | + <!-- Run twice for the report. --> |
| 119 | + <plugin> |
| 120 | + <groupId>org.jacoco</groupId> |
| 121 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 122 | + <version>0.7.5.201505241946</version> |
| 123 | + <executions> |
| 124 | + <!-- Prepare jacco agent. --> |
| 125 | + <execution> |
| 126 | + <id>jacoco-agent</id> |
| 127 | + <goals> |
| 128 | + <goal>prepare-agent</goal> |
| 129 | + </goals> |
| 130 | + <configuration> |
| 131 | + <propertyName>surefireArgLine</propertyName> |
| 132 | + </configuration> |
| 133 | + </execution> |
| 134 | + </executions> |
| 135 | + </plugin> |
| 136 | + |
| 137 | + <!-- Generate badges. --> |
| 138 | + <plugin> |
| 139 | + <groupId>com.github.bordertech.buildtools</groupId> |
| 140 | + <artifactId>badger</artifactId> |
| 141 | + <version>1.0.1-SNAPSHOT</version> |
| 142 | + <executions> |
| 143 | + <execution> |
| 144 | + <phase>post-site</phase> |
| 145 | + <goals> |
| 146 | + <goal>badges</goal> |
| 147 | + </goals> |
| 148 | + <configuration> |
| 149 | + <skip>${badges.skip}</skip> |
| 150 | + <outputDir>target/site/badges</outputDir> |
| 151 | + <inputFiles> |
| 152 | + <inputFile>target/pmd.xml</inputFile> |
| 153 | + <inputFile>target/findbugs-report.xml</inputFile> |
| 154 | + <inputFile>target/findbugsXml.xml</inputFile> |
| 155 | + <inputFile>target/checkstyle-result.xml</inputFile> |
| 156 | + <inputFile>target/coverage-report.xml</inputFile> |
| 157 | + </inputFiles> |
| 158 | + </configuration> |
| 159 | + </execution> |
| 160 | + </executions> |
| 161 | + </plugin> |
| 162 | + |
111 | 163 | </plugins> |
112 | 164 | </build> |
| 165 | + |
| 166 | + <reporting> |
| 167 | + <plugins> |
| 168 | + |
| 169 | + <!-- Generate Reports Information about the project. --> |
| 170 | + <plugin> |
| 171 | + <groupId>org.apache.maven.plugins</groupId> |
| 172 | + <artifactId>maven-project-info-reports-plugin</artifactId> |
| 173 | + <version>2.8.1</version> |
| 174 | + <reportSets> |
| 175 | + <reportSet> |
| 176 | + <reports> |
| 177 | + <report>index</report> |
| 178 | + <report>license</report> |
| 179 | + <report>mailing-list</report> |
| 180 | + <report>summary</report> |
| 181 | + </reports> |
| 182 | + </reportSet> |
| 183 | + </reportSets> |
| 184 | + </plugin> |
| 185 | + |
| 186 | + <!-- Self Aggregating. Plugin automatically aggregates sub modules. --> |
| 187 | + <!-- Produce a cross-reference of the project's source. (Self Aggregating). --> |
| 188 | + <plugin> |
| 189 | + <groupId>org.apache.maven.plugins</groupId> |
| 190 | + <artifactId>maven-jxr-plugin</artifactId> |
| 191 | + <version>2.5</version> |
| 192 | + <reportSets> |
| 193 | + <reportSet> |
| 194 | + <inherited>false</inherited> |
| 195 | + <reports> |
| 196 | + <report>aggregate</report> |
| 197 | + <!-- |
| 198 | + <report>test-aggregate</report> |
| 199 | + --> |
| 200 | + </reports> |
| 201 | + </reportSet> |
| 202 | + </reportSets> |
| 203 | + </plugin> |
| 204 | + |
| 205 | + <!-- Generate Javadoc. (Self Aggregating)--> |
| 206 | + <plugin> |
| 207 | + <groupId>org.apache.maven.plugins</groupId> |
| 208 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 209 | + <version>2.10.3</version> |
| 210 | + <configuration> |
| 211 | + <charset>UTF-8</charset> |
| 212 | + <encoding>UTF-8</encoding> |
| 213 | + <docencoding>UTF-8</docencoding> |
| 214 | + <breakiterator>true</breakiterator> |
| 215 | + <version>true</version> |
| 216 | + <keywords>true</keywords> |
| 217 | + <excludePackageNames>${javadoc.excluded.packages}</excludePackageNames> |
| 218 | + </configuration> |
| 219 | + <reportSets> |
| 220 | + <reportSet> |
| 221 | + <inherited>false</inherited> |
| 222 | + <reports> |
| 223 | + <report>aggregate</report> |
| 224 | + <!-- |
| 225 | + <report>test-aggregate</report> |
| 226 | + --> |
| 227 | + </reports> |
| 228 | + </reportSet> |
| 229 | + </reportSets> |
| 230 | + </plugin> |
| 231 | + |
| 232 | + <!-- Generate the web interface version of the test results (Aggregate Parameter). --> |
| 233 | + <!-- Run site twice to get correct results. --> |
| 234 | + <plugin> |
| 235 | + <groupId>org.apache.maven.plugins</groupId> |
| 236 | + <artifactId>maven-surefire-report-plugin</artifactId> |
| 237 | + <version>${surefire.version}</version> |
| 238 | + <configuration> |
| 239 | + <aggregate>true</aggregate> |
| 240 | + </configuration> |
| 241 | + <reportSets> |
| 242 | + <reportSet> |
| 243 | + <inherited>false</inherited> |
| 244 | + <reports> |
| 245 | + <report>report</report> |
| 246 | + </reports> |
| 247 | + </reportSet> |
| 248 | + </reportSets> |
| 249 | + </plugin> |
| 250 | + |
| 251 | + <!-- QA Reports. --> |
| 252 | + <!-- Generate the Checkstyle report. (Self Aggregating) --> |
| 253 | + <plugin> |
| 254 | + <groupId>org.apache.maven.plugins</groupId> |
| 255 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 256 | + <version>2.17</version> |
| 257 | + <configuration> |
| 258 | + <skip>false</skip> |
| 259 | + <configLocation>bordertech/checkstyle.xml</configLocation> |
| 260 | + <consoleOutput>true</consoleOutput> |
| 261 | + <excludes>${checkstyle.excludes}</excludes> |
| 262 | + <headerFile /> |
| 263 | + </configuration> |
| 264 | + <reportSets> |
| 265 | + <reportSet> |
| 266 | + <inherited>false</inherited> |
| 267 | + <reports> |
| 268 | + <report>checkstyle-aggregate</report> |
| 269 | + </reports> |
| 270 | + </reportSet> |
| 271 | + </reportSets> |
| 272 | + </plugin> |
| 273 | + |
| 274 | + <!-- PMD and CPD Reports (Aggregate Parameter). --> |
| 275 | + <plugin> |
| 276 | + <groupId>org.apache.maven.plugins</groupId> |
| 277 | + <artifactId>maven-pmd-plugin</artifactId> |
| 278 | + <version>3.5</version> |
| 279 | + <configuration> |
| 280 | + <skip>false</skip> |
| 281 | + <aggregate>true</aggregate> |
| 282 | + <failurePriority>5</failurePriority> |
| 283 | + </configuration> |
| 284 | + <reportSets> |
| 285 | + <reportSet> |
| 286 | + <inherited>false</inherited> |
| 287 | + <reports> |
| 288 | + <report>pmd</report> |
| 289 | + <report>cpd</report> |
| 290 | + </reports> |
| 291 | + </reportSet> |
| 292 | + </reportSets> |
| 293 | + </plugin> |
| 294 | + |
| 295 | + <!-- Generate Findbugs reports. (Does not support aggregate.) --> |
| 296 | + <!-- Run site twice to get Findbugs report.--> |
| 297 | + <plugin> |
| 298 | + <groupId>org.codehaus.mojo</groupId> |
| 299 | + <artifactId>findbugs-maven-plugin</artifactId> |
| 300 | + <version>3.0.3</version> |
| 301 | + <configuration> |
| 302 | + <skip>false</skip> |
| 303 | + <effort>Max</effort> |
| 304 | + <includeTests>false</includeTests> |
| 305 | + <excludeFilterFile>bordertech/findbugs-exclude-filter.xml</excludeFilterFile> |
| 306 | + <threshold>Low</threshold> |
| 307 | + <failOnError>false</failOnError> |
| 308 | + <findbugsXmlOutputDirectory>${project.build.directory}/findbugs-rep</findbugsXmlOutputDirectory> |
| 309 | + </configuration> |
| 310 | + </plugin> |
| 311 | + |
| 312 | + </plugins> |
| 313 | + </reporting> |
| 314 | + |
113 | 315 | </project> |
0 commit comments