From 28ceb6a80cd2a7f4e76dd4eb7fc3feeb4f6bcf21 Mon Sep 17 00:00:00 2001 From: ezcoxem Date: Fri, 3 Aug 2018 15:20:17 +0100 Subject: edit POM to push images to nexus repository Issue-ID: DMAAP-12 Change-Id: I0fb122bcb084da64ba6396aa259d94877d114056 Signed-off-by: ezcoxem --- datarouter-node/pom.xml | 155 +++++++++++++----------------------------------- 1 file changed, 42 insertions(+), 113 deletions(-) (limited to 'datarouter-node') diff --git a/datarouter-node/pom.xml b/datarouter-node/pom.xml index 95b2aa00..9f5de17e 100755 --- a/datarouter-node/pom.xml +++ b/datarouter-node/pom.xml @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -196,12 +196,49 @@ docker - false - false - false + false + false + true + + + + com.spotify + docker-maven-plugin + 1.0.0 + + ${onap.nexus.dockerregistry.daily}/${datarouter.node.image.name} + ${docker.location} + ${onap.nexus.dockerregistry.daily} + false + + ${project.version} + latest + + true + + + / + ${project.basedir} + + target/**/* + pom.xml + + + + + / + ${project.build.directory} + **/** + + + + + + + datarouter-node @@ -329,92 +366,6 @@ - - com.spotify - docker-maven-plugin - ${docker.maven.plugin.version} - - false - ${datarouter.node.image.name} - ${docker.location} - docker-hub - - ${project.version} - latest - - true - - - / - ${docker.location} - ${project.build.finalName}.jar - - - / - ${project.build.directory} - **/** - - - - - - build-image - install - - build - - - ${skip.docker.build} - - - - tag-image-project-version - install - - tag - - - ${datarouter.node.image.name} - ${onap.nexus.dockerregistry.daily}/${datarouter.node.image.name}:${project.version} - ${skip.docker.push} - - - - tag-image-latest - install - - tag - - - ${datarouter.node.image.name} - ${onap.nexus.dockerregistry.daily}/${datarouter.node.image.name}:latest - ${skip.docker.push} - - - - push-image-latest - deploy - - push - - - ${onap.nexus.dockerregistry.daily}/${datarouter.node.image.name}:${project.version} - ${skip.docker.push} - - - - push-image - deploy - - push - - - ${onap.nexus.dockerregistry.daily}/${datarouter.node.image.name}:latest - ${skip.docker.push} - - - - org.apache.maven.plugins maven-dependency-plugin @@ -546,26 +497,4 @@ - - - ecomp-releases - DR Release Repository - ${onap.nexus.url}${releaseNexusPath} - - - ecomp-snapshots - DR Snapshot Repository - ${onap.nexus.url}${snapshotNexusPath} - - - ecomp-site - dav:${onap.nexus.url}${sitePath} - - - - - onap-plugin-snapshots - ${onap.nexus.url}${snapshotNexusPath} - - -- cgit 1.2.3-korg