diff --git a/pom.xml b/pom.xml index 2ccbb6a72dcc300a43c2c5cecbb7505c4cc001d7..be10e9ebdc16f57efb3d42380f6a5a1dcbf0af83 100644 --- a/pom.xml +++ b/pom.xml @@ -91,6 +91,11 @@ <skipSeleniumTests>false</skipSeleniumTests> <maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format> + + <sonar.language>java</sonar.language> + <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> + <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> + <sonar.jacoco.reportPath>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPath> </properties> <profiles> <profile> @@ -892,6 +897,23 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.8.2</version> + <configuration> + <destFile>${sonar.jacoco.reportPath}</destFile> + <append>true</append> + </configuration> + <executions> + <execution> + <id>agent</id> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> </profile> @@ -1098,6 +1120,23 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.8.2</version> + <configuration> + <destFile>${sonar.jacoco.reportPath}</destFile> + <append>true</append> + </configuration> + <executions> + <execution> + <id>agent</id> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> </profile> @@ -1149,6 +1188,23 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.8.2</version> + <configuration> + <destFile>${sonar.jacoco.reportPath}</destFile> + <append>true</append> + </configuration> + <executions> + <execution> + <id>agent</id> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> <dependencies> @@ -1374,6 +1430,23 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <version>0.8.2</version> + <configuration> + <destFile>${sonar.jacoco.reportPath}</destFile> + <append>true</append> + </configuration> + <executions> + <execution> + <id>agent</id> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> <pluginManagement> <plugins>