4.0.0 org.onap.policy.distribution packages 2.0.6-SNAPSHOT pom policy-distribution-docker Policy distribution docker image Policy distribution docker image UTF-8 UTF-8 ${project.version} false false false nexus3.onap.org:10001 nexus3.onap.org:10003 yyyyMMdd'T'HHmm ${project.artifactId}-${project.version} org.codehaus.groovy.maven gmaven-plugin 1.0 validate execute println 'Project version: ' + project.properties['dist.project.version']; def versionArray; if ( project.properties['dist.project.version'] != null ) { versionArray = project.properties['dist.project.version'].split('-'); } if ( project.properties['dist.project.version'].endsWith("-SNAPSHOT") ) { project.properties['project.docker.latesttag.version']=versionArray[0] + "-SNAPSHOT-latest"; } else { project.properties['project.docker.latesttag.version']=versionArray[0] + "-STAGING-latest"; } println 'New tag for docker: ' + project.properties['project.docker.latesttag.version']; io.fabric8 docker-maven-plugin 0.19.1 true 1.23 ${docker.pull.registry} ${docker.push.registry} onap/policy-distribution try Dockerfile ${project.version} ${project.version}-${maven.build.timestamp} ${project.docker.latesttag.version} org.onap.policy.distribution:policy-distribution-tarball /lib policy-distribution.tar.gz clean-images pre-clean remove true generate-images generate-sources build push-images deploy build push onap/policy-distribution org.apache.maven.plugins maven-deploy-plugin true org.onap.policy.distribution policy-distribution-tarball ${project.version} tarball tar.gz