diff options
author | Andrew Gauld <agauld@att.com> | 2020-01-17 16:53:12 +0000 |
---|---|---|
committer | Andrew Gauld <agauld@att.com> | 2020-01-17 16:54:17 +0000 |
commit | 5fda209b043e1cc1d1502cc8654bb72643868fb3 (patch) | |
tree | 2efa7d63faa3a93478168b21369d0ae5b4712cbd /mod/runtimeapi/runtime-web/pom.xml | |
parent | 725544f65502ad4704c9a56d683a7dea9058e85b (diff) |
mod-runtimeapi fix docker build and code coverage
Change-Id: I2038934553b831d98bbbdbd893d253cb5b733aa6
Issue-ID: DCAEGEN2-1860
Signed-off-by: Andrew Gauld <agauld@att.com>
Diffstat (limited to 'mod/runtimeapi/runtime-web/pom.xml')
-rw-r--r-- | mod/runtimeapi/runtime-web/pom.xml | 65 |
1 files changed, 39 insertions, 26 deletions
diff --git a/mod/runtimeapi/runtime-web/pom.xml b/mod/runtimeapi/runtime-web/pom.xml index 19d2af7..27cc960 100644 --- a/mod/runtimeapi/runtime-web/pom.xml +++ b/mod/runtimeapi/runtime-web/pom.xml @@ -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> @@ -60,12 +53,12 @@ <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> @@ -74,18 +67,38 @@ <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> |