4.0.0 org.onap.so.adapters.so-nssmf-adapter packages 1.8.0-SNAPSHOT org.onap.so.adapters.so-nssmf-adapter.packages 1.8.0-SNAPSHOT pom docker SO NSSMF Adapter Docker Packaging ${project.version} false false false nexus3.onap.org:10001 nexus3.onap.org:10003 onap/so deploy ${project.artifactId}-${project.version} org.codehaus.groovy.maven gmaven-plugin 1.0 validate execute println 'Project version: ' + project.properties['nssmf-adapter-project-version']; def versionArray; if (project.properties['nssmf-adapter-project-version'] != null) { versionArray = project.properties['nssmf-adapter-project-version'].split('-'); } if (project.properties['nssmf-adapter-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 true 1.23 ${docker.pull.registry} ${docker.push.registry} ${docker.image.prefix}/base-image:1.0 try docker-files/Dockerfile.so-base-image ${docker.image.prefix}/so-nssmf-adapter try docker-files/Dockerfile.so-app ${project.version} ${project.version}-${maven.build.timestamp} ${project.docker.latesttag.version} org.onap.so.adapters.so-nssmf-adapter:so-nssmf-adapter-application app.jar clean-images pre-clean remove true generate-images generate-sources build push-images ${docker.push.phase} build push ${docker.image.prefix}/so-nssmf-adapter org.apache.maven.plugins maven-deploy-plugin true org.onap.so.adapters.so-nssmf-adapter so-nssmf-adapter-application ${project.version}