summaryrefslogtreecommitdiffstats
path: root/framework/pom.xml
diff options
context:
space:
mode:
authorjitendra sharma <jitendra.sharma1@huawei.com>2020-02-21 11:34:30 +0000
committerjitendra sharma <jitendra.sharma1@huawei.com>2020-02-24 11:26:12 +0000
commit5678b09ff22352b774914451860b24b2cb9fc770 (patch)
tree063196787c37eb0277751af4f0ad70a81dc03d78 /framework/pom.xml
parent544ec09df41122d64081ed9388e1216c70eac769 (diff)
SonarCloud migration from SonarQube
Issue-ID: CLI-250 Signed-off-by: jitendra sharma <jitendra.sharma1@huawei.com> Change-Id: I02713cd1beeb70aac55f34bc8545ae2e222ff2d7
Diffstat (limited to 'framework/pom.xml')
-rw-r--r--framework/pom.xml38
1 files changed, 37 insertions, 1 deletions
diff --git a/framework/pom.xml b/framework/pom.xml
index 7666c49e..367ac63f 100644
--- a/framework/pom.xml
+++ b/framework/pom.xml
@@ -32,7 +32,16 @@
<name>cli/framework</name>
<packaging>jar</packaging>
-
+ <!--Step-1:- SonarCloud migration from SonarQube -->
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <sonar.language>java</sonar.language>
+ <sonar.surefire.reportsPath>${project.build.directory}/surefire123-reports</sonar.surefire.reportsPath>
+ <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
+ <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
+ <sonar.projectVersion>${project.version}</sonar.projectVersion>
+ <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
+ </properties>
<dependencies>
<dependency>
<groupId>org.onap.cli</groupId>
@@ -107,4 +116,31 @@
<scope>test</scope>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <!--Step-2:-SonarCloud migration from SonarQube -->
+ <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}/code-coverage/jacoco.exec</dataFile>
+ <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>