<project xmlns="http://maven.apache.org/POM/4.0.0"\r
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">\r
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">\r
<modelVersion>4.0.0</modelVersion>\r
<parent>\r
<groupId>org.onap.cps</groupId>\r
\r
<artifactId>cps-rest</artifactId>\r
\r
+ <properties>\r
+ <minimum-coverage>0.88</minimum-coverage>\r
+ </properties>\r
+\r
<dependencies>\r
<dependency>\r
<groupId>${project.groupId}</groupId>\r
<groupId>org.springframework.boot</groupId>\r
<artifactId>spring-boot-maven-plugin</artifactId>\r
</plugin>\r
- <plugin>\r
- <groupId>com.google.cloud.tools</groupId>\r
- <artifactId>jib-maven-plugin</artifactId>\r
- </plugin>\r
<!-- Swagger code generation. -->\r
<plugin>\r
<groupId>io.swagger.codegen.v3</groupId>\r
</plugin>\r
</plugins>\r
</build>\r
+\r
+ <profiles>\r
+ <profile>\r
+ <id>docker</id>\r
+ <activation>\r
+ <activeByDefault>false</activeByDefault>\r
+ </activation>\r
+ <build>\r
+ <plugins>\r
+ <plugin>\r
+ <groupId>com.google.cloud.tools</groupId>\r
+ <artifactId>jib-maven-plugin</artifactId>\r
+ <executions>\r
+ <execution>\r
+ <phase>package</phase>\r
+ <id>build</id>\r
+ <goals>\r
+ <goal>dockerBuild</goal>\r
+ </goals>\r
+ </execution>\r
+ <execution>\r
+ <phase>deploy</phase>\r
+ <id>buildAndPush</id>\r
+ <goals>\r
+ <goal>build</goal>\r
+ </goals>\r
+ </execution>\r
+ </executions>\r
+ </plugin>\r
+ </plugins>\r
+ </build>\r
+ </profile>\r
+ </profiles>\r
</project>\r