Enable sonar code coverage with oparent
[portal.git] / ecomp-portal-widget-ms / widget-ms / pom.xml
index 45da5d5..da6eb99 100644 (file)
@@ -2,12 +2,8 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        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>
-       <groupId>org.openecomp.portal</groupId>
-       <artifactId>widget-ms</artifactId>
-       <version>1.3.0-SNAPSHOT</version>
-       <packaging>jar</packaging>
-       <name>widget-microservice</name>
 
+       <!-- This project must name Spring as parent; cannot name Portal -->    
        <parent>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-parent</artifactId>
                <relativePath /> <!-- lookup parent from repository -->
        </parent>
 
+       <groupId>org.onap.portal</groupId>
+       <artifactId>widget-ms</artifactId>
+       <version>1.3.0</version>
+       <packaging>jar</packaging>
+       <name>widget-microservice</name>
+
        <properties>
                <docker.imagename>widget-ms</docker.imagename>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -27,7 +29,7 @@
        <dependencies>
                <!-- This pom pulls in artifacts -->
                <dependency>
-                       <groupId>org.openecomp.portal</groupId>
+                       <groupId>org.onap.portal</groupId>
                        <artifactId>common-widgets</artifactId>
                        <version>${project.version}</version>
                        <type>pom</type>
                                        <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>