diff options
author | Taka Cho <takamune.cho@att.com> | 2019-11-08 13:44:40 -0500 |
---|---|---|
committer | Taka Cho <takamune.cho@att.com> | 2019-11-08 13:59:18 -0500 |
commit | 08ce3c44531468773027a624eb9d6c41a2039038 (patch) | |
tree | 5bdf965183872111598f3abb54f7761066b07f22 /pom.xml | |
parent | b16ce237d780314ea8bbaf17cdb432bc694ee7e7 (diff) |
add jacoco plugin for sonar cloud
in IT-7899, Jess recommends add
plugin for sonar cloud
Issue-ID: APPC-1791
Change-Id: Ia4b73a7e41ac4c1b2c1638e45ab806c054667d42
Signed-off-by: Taka Cho <takamune.cho@att.com>
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> |