mod-runtimeapi fix docker build and code coverage
[dcaegen2/platform.git] / mod / runtimeapi / runtime-web / pom.xml
index 19d2af7..27cc960 100644 (file)
@@ -2,23 +2,16 @@
 <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>
-    <packaging>jar</packaging>
-    <parent>
-               <groupId>org.springframework.boot</groupId>
-               <artifactId>spring-boot-starter-parent</artifactId>
-               <version>2.1.7.RELEASE</version>
-               <relativePath/> <!-- lookup parent from repository -->
+       <parent>
+               <groupId>org.onap.dcaegen2.platform.mod</groupId>
+               <artifactId>runtimeapi</artifactId>
+               <version>1.0.0</version>
        </parent>
-       <groupId>org.onap.dcae</groupId>
        <artifactId>runtime-web</artifactId>
        <version>1.0.0</version>
+       <packaging>jar</packaging>
        <name>runtime-web</name>
        <description>MOD Runtime Web Module</description>
-
-       <properties>
-               <java.version>1.8</java.version>
-       </properties>
-
        <dependencies>
                <dependency>
                        <groupId>org.onap.dcaegen2.platform.mod</groupId>
                        <groupId>io.springfox</groupId>
                        <artifactId>springfox-swagger-ui</artifactId>
                        <version>2.9.2</version>
-        </dependency>
-        <dependency>
+               </dependency>
+               <dependency>
                        <groupId>org.json</groupId>
                        <artifactId>json</artifactId>
                        <version>20190722</version>
-        </dependency>
+               </dependency>
        </dependencies>
 
        <build>
                                <groupId>org.springframework.boot</groupId>
                                <artifactId>spring-boot-maven-plugin</artifactId>
                        </plugin>
+                       <plugin>
+                               <groupId>io.fabric8</groupId>
+                               <artifactId>docker-maven-plugin</artifactId>
+                               <configuration>
+                                       <verbose>true</verbose>
+                                       <imagePullPolicy>IfNotPresent</imagePullPolicy>
+                                       <images>
+                                               <image>
+                                                       <name>onap/${project.groupId}.${project.artifactId}</name>
+                                                       <registry>${onap.nexus.dockerregistry.daily}</registry>
+                                                       <build>
+                                                               <contextDir>${project.basedir}</contextDir>
+                                                               <cleanup>none</cleanup>
+                                                               <tags>
+                                                                       <tag>latest</tag>
+                                                                       <tag>${project.version}</tag>
+                                                                       <tag>${project.version}-${maven.build.timestamp}Z</tag>
+                                                               </tags>
+                                                       </build>
+                                               </image>
+                                       </images>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <goals>
+                                                       <goal>build</goal>
+                                                       <goal>push</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
                </plugins>
-        <pluginManagement>
-            <plugins>
-            <plugin>
-              <artifactId>maven-deploy-plugin</artifactId>
-              <version>2.8.2</version>
-              <configuration>
-                <skip>true</skip>
-              </configuration>
-            </plugin>
-            </plugins>
-        </pluginManagement>
        </build>
 
 </project>