diff options
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 58 |
1 files changed, 53 insertions, 5 deletions
@@ -123,6 +123,18 @@ limitations under the License. <useStandardDocletOptions>true</useStandardDocletOptions> </configuration> </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <reportSets> + <reportSet> + <reports> + <!-- select non-aggregate reports --> + <report>report</report> + </reports> + </reportSet> + </reportSets> + </plugin> </plugins> </reporting> @@ -527,14 +539,50 @@ limitations under the License. <artifactId>build-helper-maven-plugin</artifactId> <version>1.9.1</version> </plugin> - <plugin> - <groupId>org.sonarsource.scanner.maven</groupId> - <artifactId>sonar-maven-plugin</artifactId> - <version>3.2</version> - </plugin> </plugins> </pluginManagement> <plugins> + <!-- jacoco for testing --> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.8.4</version> + <executions> + <execution> + <id>default-prepare-agent</id> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + <execution> + <id>default-report</id> + <phase>prepare-package</phase> + <goals> + <goal>report</goal> + </goals> + </execution> + <execution> + <id>default-check</id> + <goals> + <goal>check</goal> + </goals> + <configuration> + <rules> + <rule> + <element>PACKAGE</element> + <limits> + <limit> + <counter>COMPLEXITY</counter> + <value>COVEREDRATIO</value> + <minimum>0.0</minimum> + </limit> + </limits> + </rule> + </rules> + </configuration> + </execution> + </executions> + </plugin> <!-- Javadocs Plugin --> <plugin> <groupId>org.apache.maven.plugins</groupId> |