Skip to content
This repository was archived by the owner on Oct 4, 2018. It is now read-only.

Commit ac3a68c

Browse files
committed
added some reporting plugins, do a 'mvn site' and then 'firefox target/site/index.html' to see the product. Look at all the stuff in the reporting section. This should help other developers discover bugs and improve the application.
1 parent 62b8bdb commit ac3a68c

1 file changed

Lines changed: 82 additions & 0 deletions

File tree

‎pom.xml‎

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@
9292
</plugin>
9393
<plugin>
9494
<artifactId>maven-javadoc-plugin</artifactId>
95+
<executions>
96+
<execution>
97+
<phase>site</phase>
98+
<goals><goal>javadoc</goal></goals>
99+
</execution>
100+
</executions>
95101
<configuration>
96102
<encoding>UTF-8</encoding>
97103
</configuration>
@@ -278,6 +284,30 @@
278284
</dependency>
279285
</dependencies>
280286
</plugin>
287+
<plugin>
288+
<groupId>org.codehaus.mojo</groupId>
289+
<artifactId>cobertura-maven-plugin</artifactId>
290+
<version>2.6</version>
291+
<executions>
292+
<execution>
293+
<!-- <phase>site</phase> -->
294+
<goals>
295+
<goal>clean</goal>
296+
</goals>
297+
</execution>
298+
</executions>
299+
<!-- <configuration> -->
300+
<!-- <instrumentation> -->
301+
<!-- <ignores> -->
302+
<!-- <ignore>com.example.boringcode.*</ignore> -->
303+
<!-- </ignores> -->
304+
<!-- <excludes> -->
305+
<!-- <exclude>com/example/dullcode/**/*.class</exclude> -->
306+
<!-- <exclude>com/example/**/*Test.class</exclude> -->
307+
<!-- </excludes> -->
308+
<!-- </instrumentation> -->
309+
<!-- </configuration> -->
310+
</plugin>
281311
</plugins>
282312
<pluginManagement>
283313
<plugins>
@@ -412,4 +442,56 @@
412442
</dependency>
413443
</dependencies>
414444

445+
<reporting>
446+
<plugins>
447+
<plugin>
448+
<groupId>org.apache.maven.plugins</groupId>
449+
<artifactId>maven-pmd-plugin</artifactId>
450+
<version>3.0.1</version>
451+
<configuration>
452+
<linkXref>true</linkXref>
453+
<sourceEncoding>utf-8</sourceEncoding>
454+
<minimumTokens>100</minimumTokens>
455+
<targetJdk>1.5</targetJdk>
456+
<excludes>
457+
<exclude>**/*Bean.java</exclude>
458+
<exclude>**/generated/*.java</exclude>
459+
</excludes>
460+
<excludeRoots>
461+
<excludeRoot>target/generated-sources/stubs</excludeRoot>
462+
</excludeRoots>
463+
</configuration>
464+
</plugin>
465+
<plugin>
466+
<groupId>org.apache.maven.plugins</groupId>
467+
<artifactId>maven-pmd-plugin</artifactId>
468+
<version>3.0.1</version>
469+
<configuration>
470+
<linkXref>true</linkXref>
471+
<sourceEncoding>utf-8</sourceEncoding>
472+
<minimumTokens>100</minimumTokens>
473+
<targetJdk>1.7</targetJdk>
474+
<!-- <excludes> -->
475+
<!-- <exclude>**/*Bean.java</exclude> -->
476+
<!-- <exclude>**/generated/*.java</exclude> -->
477+
<!-- </excludes> -->
478+
<!-- <excludeRoots> -->
479+
<!-- <excludeRoot>target/generated-sources/stubs</excludeRoot> -->
480+
<!-- </excludeRoots> -->
481+
</configuration>
482+
</plugin>
483+
484+
<plugin>
485+
<groupId>org.codehaus.mojo</groupId>
486+
<artifactId>cobertura-maven-plugin</artifactId>
487+
<version>2.6</version>
488+
</plugin>
489+
<plugin>
490+
<artifactId>maven-javadoc-plugin</artifactId>
491+
<configuration>
492+
<encoding>UTF-8</encoding>
493+
</configuration>
494+
</plugin>
495+
</plugins>
496+
</reporting>
415497
</project>

0 commit comments

Comments
 (0)