X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=datarouter-node%2Fpom.xml;h=cab4ce1e348103ab0b9c78f1a583a5048433f6e6;hb=b60213dc26540543f500b3442b061565907c3cf8;hp=f9bdce67eb2638739ee745c29d66216940e68fa9;hpb=bab358ebe5b2b11bcbe6e4ccae0b6f6f0f228277;p=dmaap%2Fdatarouter.git diff --git a/datarouter-node/pom.xml b/datarouter-node/pom.xml index f9bdce67..cab4ce1e 100755 --- a/datarouter-node/pom.xml +++ b/datarouter-node/pom.xml @@ -3,6 +3,7 @@ * org.onap.dmaap * =========================================================================== * Copyright © 2017 AT&T Intellectual Property. All rights reserved. + * Modifications Copyright (C) 2018 Nokia. All rights reserved. * =========================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +26,7 @@ org.onap.dmaap.datarouter parent - 1.0.1-SNAPSHOT + 2.1.0-SNAPSHOT ../pom.xml datarouter-node @@ -37,6 +38,10 @@ true /content/sites/site/${project.groupId}/${project.artifactId}/${project.version} ${basedir}/target/${artifactId} + + ${maven.build.timestamp} + yyyyMMdd'T'HHmmss'Z' + onap/dmaap/datarouter-node @@ -76,6 +81,11 @@ xstream ${thoughtworks.version} + + org.codehaus.janino + janino + 3.0.7 + ch.qos.logback logback-classic @@ -185,18 +195,6 @@ - - log4j - log4j - 1.2.17 - compile - - - junit - junit - 4.10 - test - org.mockito mockito-core @@ -220,6 +218,11 @@ commons-lang3 3.0 + + org.onap.aaf.authz + aaf-cadi-aaf + ${aaf-cadi-aaf.version} + @@ -231,37 +234,78 @@ + + - com.spotify + org.codehaus.groovy.maven + gmaven-plugin + + + validate + + execute + + + + ${project.version} + ${maven.build.timestamp} + + + println 'ver: ' + project.properties['ver']; + if ( project.properties['ver'].endsWith("-SNAPSHOT") ) { + project.properties['dockertag1']=project.properties['ver'] + "-latest"; + project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp']; + } else { + project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest"; + project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp']; + } + println 'docker tag 1: ' + project.properties['dockertag1']; + println 'docker tag 2: ' + project.properties['dockertag2']; + + + + + + + io.fabric8 docker-maven-plugin - 1.0.0 + 0.28.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} - **/** - - + ${docker.verbose} + ${docker.apiVersion} + ${docker.pull.registry} + ${docker.push.registry} + + + ${datarouter.node.image.name} + + try + ${basedir}/target/docker-stage + Dockerfile + + ${dockertag1} + ${dockertag2} + + + + + + + generate-images + install + + build + + + + push-images + deploy + + push + + + @@ -285,13 +329,6 @@ **/EelfMessages.properties - - src/main/resources - true - - **/log4j.properties - - @@ -310,7 +347,7 @@ jar-with-dependencies - ${basedir}/target/opt/app/datartr/lib + ${basedir}/target/docker-stage/opt/app/datartr/lib true @@ -337,12 +374,12 @@ copy-docker-file - package + validate copy-resources - ${docker.location} + ${basedir}/target/docker-stage true @@ -356,13 +393,33 @@ - copy-resources + copy-startup-script validate copy-resources - ${basedir}/target/opt/app/datartr/etc + ${basedir}/target/docker-stage/opt + true + + + ${basedir}/src/main/resources/docker + true + + startup.sh + + + + + + + copy-resources-2 + validate + + copy-resources + + + ${basedir}/target/docker-stage/opt/app/datartr/etc ${basedir}/src/main/resources @@ -375,13 +432,32 @@ - copy-resources-1 + copy-resources-3 + validate + + copy-resources + + + ${basedir}/target/docker-stage/opt/app/datartr + + + ${basedir}/data + + misc/** + **/** + + + + + + + copy-resources-4 validate copy-resources - ${basedir}/target/opt/app/datartr/aaf_certs + ${basedir}/target/docker-stage/opt/app/datartr/aaf_certs ${basedir}/aaf_certs @@ -407,7 +483,7 @@ copy-dependencies - ${project.build.directory}/opt/app/datartr/lib + ${project.build.directory}/docker-stage/opt/app/datartr/lib false false true