aboutsummaryrefslogtreecommitdiffstats
path: root/ccsdk-app-common/pom.xml
diff options
context:
space:
mode:
authorKotagiri, Ramprasad (rp5662) <rp5662@att.com>2020-09-02 12:29:59 -0400
committerKotagiri, Ramprasad (rp5662) <rp5662@att.com>2020-09-02 12:30:12 -0400
commit09a4ad7ce7ed61512036bfd15ff79d5fd7ade310 (patch)
tree127c8e01b4e4bcbdd8d880a731acc2606cc0ec60 /ccsdk-app-common/pom.xml
parenta45eb46d8e0cfc228e3d56523c101152821badce (diff)
update pom for java sonar code coverage
Issue-ID: DCAEGEN2-2298 Change-Id: I60a15e6f9c3fd45a60f0dfd037d1f99833422717 Signed-off-by: Kotagiri, Ramprasad (rp5662) <rp5662@att.com>
Diffstat (limited to 'ccsdk-app-common/pom.xml')
-rw-r--r--ccsdk-app-common/pom.xml82
1 files changed, 4 insertions, 78 deletions
diff --git a/ccsdk-app-common/pom.xml b/ccsdk-app-common/pom.xml
index 3266c22..95abf22 100644
--- a/ccsdk-app-common/pom.xml
+++ b/ccsdk-app-common/pom.xml
@@ -27,10 +27,9 @@
<releaseNexusPath>content/repositories/releases/</releaseNexusPath>
<stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
<skipTests>false</skipTests>
- <jacocoVersion>0.7.6.201602180812</jacocoVersion>
<jackson.version>2.9.8</jackson.version>
<sonar.coverage.jacoco.xmlReportPaths>
- ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
+ ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
</sonar.coverage.jacoco.xmlReportPaths>
</properties>
@@ -99,81 +98,8 @@
</archive>
</configuration>
</plugin>
-
- <!-- Generate javadoc jar; see profile for Java 8 -->
- <!--
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.10.3</version>
- <executions>
- <execution>
- <id>attach-javadocs</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- -->
- <!-- Generate source jar -->
- <!--
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>3.0.0</version>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- -->
- <!-- jacoco -->
- <plugin>
- <groupId>org.jacoco</groupId>
- <artifactId>jacoco-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>prepare-agent</id>
- <goals>
- <goal>prepare-agent</goal>
- </goals>
- <configuration>
- <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
- </configuration>
- </execution>
- <execution>
- <id>post-unit-test</id>
- <phase>test</phase>
- <goals>
- <goal>report</goal>
- </goals>
- <configuration>
- <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
- <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <systemPropertyVariables>
- <jacoco-agent.destfile>${project.build.directory}/code-coverage/jacoco-ut.exec</jacoco-agent.destfile>
- </systemPropertyVariables>
- <argLine>
- --illegal-access=permit
- </argLine>
- </configuration>
- </plugin>
</plugins>
</build>
-
<dependencies>
<dependency>
<groupId>javax.annotation</groupId>
@@ -369,13 +295,13 @@
<artifactId>spring-webmvc</artifactId>
<version>${springframework.version}</version>
</dependency>
- <!-- Jacoco for offline instrumentation -->
<dependency>
<groupId>org.jacoco</groupId>
<artifactId>org.jacoco.agent</artifactId>
- <version>${jacocoVersion}</version>
- <classifier>runtime</classifier>
+ <version>${jacoco.version}</version>
+ <scope>test</scope>
</dependency>
+
</dependencies>
<!-- no distributionManagement section; no jars pushed to Maven central -->