diff options
author | Manoop Talasila <talasila@research.att.com> | 2017-10-02 22:05:05 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-10-02 22:05:05 +0000 |
commit | b415db2e304f285c620e6084d29eda66988fd625 (patch) | |
tree | 3df7dcf5ef65fac245eabb5893f510719b05c7c4 | |
parent | 89cce2a7c0f8becfaf4600b7a165b6168e51a94f (diff) | |
parent | 3c795555cc129fbc1b0e1c11d4588316b47ad66e (diff) |
Merge "Enable sonar code coverage with oparent"
-rw-r--r-- | ecomp-portal-BE-common/pom.xml | 68 | ||||
-rw-r--r-- | ecomp-portal-BE-os/pom.xml | 72 | ||||
-rw-r--r-- | ecomp-portal-FE-os/pom.xml | 8 | ||||
-rw-r--r-- | ecomp-portal-widget-ms/common-widgets/pom.xml | 34 | ||||
-rw-r--r-- | ecomp-portal-widget-ms/pom.xml | 34 | ||||
-rw-r--r-- | ecomp-portal-widget-ms/widget-ms/pom.xml | 35 | ||||
-rw-r--r-- | pom.xml | 24 |
7 files changed, 4 insertions, 271 deletions
diff --git a/ecomp-portal-BE-common/pom.xml b/ecomp-portal-BE-common/pom.xml index 942680e5..894bb7f8 100644 --- a/ecomp-portal-BE-common/pom.xml +++ b/ecomp-portal-BE-common/pom.xml @@ -19,69 +19,6 @@ <finalName>${project.artifactId}</finalName> <plugins> - <plugin> - <groupId>org.jacoco</groupId> - <artifactId>jacoco-maven-plugin</artifactId> - <version>0.7.6.201602180812</version> - <inherited>True</inherited> - <executions> - <!-- Unit-Tests --> - <execution> - <id>prepare-agent</id> - <goals> - <goal>prepare-agent</goal> - </goals> - <configuration> - <skipTests>false</skipTests> - <destFile>${sonar.jacoco.reportPath}</destFile> - </configuration> - </execution> - <execution> - <id>default-instrument</id> - <goals> - <goal>instrument</goal> - </goals> - <configuration> - <skipTests>false</skipTests> - </configuration> - </execution> - <execution> - <id>default-restore-instrumented-classes</id> - <phase>test</phase> - <goals> - <goal>restore-instrumented-classes</goal> - </goals> - <configuration> - <skipTests>false</skipTests> - </configuration> - </execution> - <execution> - <id>post-unit-test</id> - <phase>test</phase> - <goals> - <goal>report</goal> - </goals> - <configuration> - <skipTests>false</skipTests> - <dataFile>${sonar.jacoco.reportPath}</dataFile> - <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory> - </configuration> - </execution> - <execution> - <id>report-integration</id> - <phase>test</phase> - <goals> - <goal>report-integration</goal> - </goals> - <configuration> - <skipTests>false</skipTests> - <dataFile>${sonar.jacoco.itReportPath}</dataFile> - <outputDirectory>${project.basedir}/target/site/it-jacoco</outputDirectory> - </configuration> - </execution> - </executions> - </plugin> - <!-- Generate javadoc jar; see profile for Java 8 --> <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -596,11 +533,6 @@ <artifactId>mockito-core</artifactId> <version>1.8.5</version> </dependency> - <dependency> - <groupId>org.jacoco</groupId> - <artifactId>jacoco-maven-plugin</artifactId> - <version>0.7.6.201602180812</version> - </dependency> <dependency> <groupId>commons-beanutils</groupId> diff --git a/ecomp-portal-BE-os/pom.xml b/ecomp-portal-BE-os/pom.xml index 7807091c..901f6841 100644 --- a/ecomp-portal-BE-os/pom.xml +++ b/ecomp-portal-BE-os/pom.xml @@ -23,11 +23,6 @@ <plugins> <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>sonar-maven-plugin</artifactId> - <version>3.2</version> - </plugin> - <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.6</version> @@ -40,73 +35,6 @@ </dependencies> </plugin> <plugin> - <groupId>org.jacoco</groupId> - <artifactId>jacoco-maven-plugin</artifactId> - <version>0.7.6.201602180812</version> - <inherited>True</inherited> - <executions> - <!-- Unit-Tests --> - <execution> - <id>prepare-agent</id> - <goals> - <goal>prepare-agent</goal> - </goals> - <configuration> - <skipTests>false</skipTests> - <destFile>${sonar.jacoco.reportPath}</destFile> - </configuration> - </execution> - <execution> - <id>default-instrument</id> - <goals> - <goal>instrument</goal> - </goals> - <configuration> - <skipTests>false</skipTests> - </configuration> - </execution> - <execution> - <id>default-restore-instrumented-classes</id> - <phase>test</phase> - <goals> - <goal>restore-instrumented-classes</goal> - </goals> - <configuration> - <skipTests>false</skipTests> - </configuration> - </execution> - <execution> - <id>post-unit-test</id> - <phase>test</phase> - - <goals> - <goal>report</goal> - </goals> - <configuration> - <skipTests>false</skipTests> - <dataFile>${sonar.jacoco.reportPath}</dataFile> - <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory> - </configuration> - </execution> - <!-- Will see build errors while running the test cases because of dual - instrumentation --> - - <!-- Integration Tests (Only report goal) --> - <execution> - <id>report-integration</id> - <phase>test</phase> - <goals> - <goal>report-integration</goal> - </goals> - <configuration> - <skipTests>false</skipTests> - <dataFile>${sonar.jacoco.itReportPath}</dataFile> - <outputDirectory>${project.basedir}/target/site/it-jacoco</outputDirectory> - </configuration> - </execution> - </executions> - </plugin> - <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.19.1</version> diff --git a/ecomp-portal-FE-os/pom.xml b/ecomp-portal-FE-os/pom.xml index f0dffd75..4b596580 100644 --- a/ecomp-portal-FE-os/pom.xml +++ b/ecomp-portal-FE-os/pom.xml @@ -42,14 +42,6 @@ </configuration> </plugin> <plugin> - <groupId>org.jacoco</groupId> - <artifactId>jacoco-maven-plugin</artifactId> - <version>0.7.6.201602180812</version> - <configuration> - <skip>true</skip> - </configuration> - </plugin> - <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.0.2</version> diff --git a/ecomp-portal-widget-ms/common-widgets/pom.xml b/ecomp-portal-widget-ms/common-widgets/pom.xml index c5cd3cd7..232f9331 100644 --- a/ecomp-portal-widget-ms/common-widgets/pom.xml +++ b/ecomp-portal-widget-ms/common-widgets/pom.xml @@ -76,40 +76,6 @@ <skip>true</skip> </configuration> </plugin> - - <plugin> - <groupId>org.jacoco</groupId> - <artifactId>jacoco-maven-plugin</artifactId> - <version>0.7.6.201602180812</version> - <configuration> - <skip>true</skip> - </configuration> - <inherited>True</inherited> - <executions> - <!-- Unit-Tests --> - <execution> - <id>prepare-agent</id> - <goals> - <goal>prepare-agent</goal> - </goals> - <phase>test</phase> - <configuration> - <destFile>${sonar.jacoco.reportPath}</destFile> - </configuration> - </execution> - <execution> - <id>report</id> - <goals> - <goal>report</goal> - </goals> - <phase>test</phase> - <configuration> - <dataFile>${sonar.jacoco.reportPath}</dataFile> - <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory> - </configuration> - </execution> - </executions> - </plugin> </plugins> </build> diff --git a/ecomp-portal-widget-ms/pom.xml b/ecomp-portal-widget-ms/pom.xml index 03e89429..a16fc64e 100644 --- a/ecomp-portal-widget-ms/pom.xml +++ b/ecomp-portal-widget-ms/pom.xml @@ -29,40 +29,6 @@ <skip>true</skip> </configuration> </plugin> - - <plugin> - <groupId>org.jacoco</groupId> - <artifactId>jacoco-maven-plugin</artifactId> - <version>0.7.6.201602180812</version> - <configuration> - <skip>true</skip> - </configuration> - <inherited>True</inherited> - <executions> - <!-- Unit-Tests --> - <execution> - <id>prepare-agent</id> - <goals> - <goal>prepare-agent</goal> - </goals> - <phase>test</phase> - <configuration> - <destFile>${sonar.jacoco.reportPath}</destFile> - </configuration> - </execution> - <execution> - <id>report</id> - <goals> - <goal>report</goal> - </goals> - <phase>test</phase> - <configuration> - <dataFile>${sonar.jacoco.reportPath}</dataFile> - <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory> - </configuration> - </execution> - </executions> - </plugin> </plugins> </build> diff --git a/ecomp-portal-widget-ms/widget-ms/pom.xml b/ecomp-portal-widget-ms/widget-ms/pom.xml index 58baed49..da6eb99d 100644 --- a/ecomp-portal-widget-ms/widget-ms/pom.xml +++ b/ecomp-portal-widget-ms/widget-ms/pom.xml @@ -164,41 +164,6 @@ <skip>true</skip> </configuration> </plugin> - - <plugin> - <groupId>org.jacoco</groupId> - <artifactId>jacoco-maven-plugin</artifactId> - <version>0.7.6.201602180812</version> - <configuration> - <skip>true</skip> - </configuration> - <inherited>True</inherited> - <executions> - <!-- Unit-Tests --> - <execution> - <id>prepare-agent</id> - <goals> - <goal>prepare-agent</goal> - </goals> - <phase>test</phase> - <configuration> - <destFile>${sonar.jacoco.reportPath}</destFile> - </configuration> - </execution> - <execution> - <id>report</id> - <goals> - <goal>report</goal> - </goals> - <phase>test</phase> - <configuration> - <dataFile>${sonar.jacoco.reportPath}</dataFile> - <outputDirectory>${project.basedir}/target/site/jacoco</outputDirectory> - </configuration> - </execution> - </executions> - </plugin> - </plugins> </build> @@ -3,12 +3,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> - <!--<parent> + <parent> <groupId>org.onap.oparent</groupId> <artifactId>oparent</artifactId> <version>0.1.1</version> <relativePath /> - </parent>--> + </parent> <groupId>org.onap.portal</groupId> <artifactId>onap-portal-parent</artifactId> @@ -34,19 +34,8 @@ <eelf.version>1.0.0</eelf.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <encoding>UTF-8</encoding> - <sonar.language>java</sonar.language> - <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> - <sonar.skipDesign>true</sonar.skipDesign> - <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath> - <sonar.jacoco.reportPath>${project.basedir}/target/jacoco.exec</sonar.jacoco.reportPath> - <sonar.jacoco.itReportPath>${project.basedir}/target/it-jacoco.exec</sonar.jacoco.itReportPath> - <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero> - <sonar.projectVersion>${project.version}</sonar.projectVersion> - <sonar.skipDesign>true</sonar.skipDesign> - <sonar.projectBaseDir>${project.basedir}</sonar.projectBaseDir> - <sonar.exclusions>**/scripts/**/*,**.js</sonar.exclusions> - <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions> - <!--<sonar.java.binaries>.</sonar.java.binaries>--> + <sonar.exclusions>**/scripts/**/*,**.js</sonar.exclusions> + <sonar.test.exclusions>**/test/**/*,**/tests/**/*</sonar.test.exclusions> </properties> <!-- Specify the repositories here to avoid coordination of ~/.m2/settings.xml @@ -150,11 +139,6 @@ <target>1.8</target> </configuration> </plugin> - <plugin> - <groupId>org.sonarsource.scanner.maven</groupId> - <artifactId>sonar-maven-plugin</artifactId> - <version>3.0.2</version> - </plugin> </plugins> </pluginManagement> <plugins> |