diff options
author | Taka Cho <takamune.cho@att.com> | 2020-01-09 17:13:06 -0500 |
---|---|---|
committer | Taka Cho <takamune.cho@att.com> | 2020-01-09 17:13:52 -0500 |
commit | 933a4b3ba8190fad9cf3a97d3a72b8ac00eaa69e (patch) | |
tree | 7291245d0ab5929ec6a0a463e066fd783d907ca6 /services/appc-dmaap-service | |
parent | 054ad488552806b7b5ab991aa2cd9fd3a8ce87cd (diff) |
pick from jacoco.xml
add sonar config in pom file
Issue-ID: APPC-1808
Change-Id: I58d2ff0de74506a8c5021649af4b0f730b370e34
Signed-off-by: Taka Cho <takamune.cho@att.com>
Diffstat (limited to 'services/appc-dmaap-service')
-rw-r--r-- | services/appc-dmaap-service/appc-dmaap-event-service/pom.xml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/services/appc-dmaap-service/appc-dmaap-event-service/pom.xml b/services/appc-dmaap-service/appc-dmaap-event-service/pom.xml index 5e162d731..6fb8f863b 100644 --- a/services/appc-dmaap-service/appc-dmaap-event-service/pom.xml +++ b/services/appc-dmaap-service/appc-dmaap-event-service/pom.xml @@ -30,6 +30,16 @@ <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.6.RELEASE</version> </parent> + <properties> + <!-- SONAR --> + <sonar.language>java</sonar.language> + <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> + <sonar.coverage.jacoco.xmlReportPaths> + ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml + </sonar.coverage.jacoco.xmlReportPaths> + <sonar.projectVersion>${project.version}</sonar.projectVersion> + <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> + </properties> <distributionManagement> <repository> <id>ecomp-releases</id> @@ -95,6 +105,28 @@ <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> + <plugin> + <groupId>org.jacoco</groupId> + <artifactId>jacoco-maven-plugin</artifactId> + <executions> + <execution> + <id>prepare-agent</id> + <goals> + <goal>prepare-agent</goal> + </goals> + </execution> + <execution> + <id>report</id> + <goals> + <goal>report</goal> + </goals> + <configuration> + <dataFile>${project.build.directory}/jacoco.exec</dataFile> + <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> |