X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=datarouter-prov%2Fpom.xml;h=d0f757bd576c2a86a46ea58210518dce86a87fb2;hb=b60213dc26540543f500b3442b061565907c3cf8;hp=609621d85c70a0cf900e514943f2d9937dd1701e;hpb=1cac6d291cf3e4a4bf0b173f03517c4761aa3cfc;p=dmaap%2Fdatarouter.git diff --git a/datarouter-prov/pom.xml b/datarouter-prov/pom.xml index 609621d8..d0f757bd 100755 --- a/datarouter-prov/pom.xml +++ b/datarouter-prov/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-prov @@ -40,6 +41,12 @@ ${basedir}/target/${artifactId} onap/dmaap/datarouter-prov + + ${maven.build.timestamp} + yyyyMMdd'T'HHmmss'Z' + + true + 1.23 @@ -48,7 +55,7 @@ ${xml-apis.version} - dom4j + org.dom4j dom4j ${dom4j.version} @@ -230,12 +237,6 @@ cdi-websocket ${jetty.version} - - log4j - log4j - 1.2.17 - compile - com.h2database h2 @@ -245,6 +246,17 @@ org.hibernate hibernate-entitymanager 5.2.9.Final + + + dom4j + dom4j + + + + + org.onap.aaf.authz + aaf-cadi-aaf + ${aaf-cadi-aaf.version} @@ -257,37 +269,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.prov.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.prov.image.name} + + try + ${basedir}/target/docker-stage + Dockerfile + + ${dockertag1} + ${dockertag2} + + + + + + + generate-images + install + + build + + + + push-images + deploy + + push + + + @@ -317,20 +370,6 @@ **/EelfMessages.properties - - src/main/resources - true - - **/log4j.properties - - - - src/test/resources - true - - **/log4j.properties - - @@ -340,7 +379,7 @@ jar-with-dependencies - ${basedir}/target/opt/app/datartr/lib + ${basedir}/target/docker-stage/opt/app/datartr/lib true @@ -369,43 +408,47 @@ 3.6.0 + + maven-resources-plugin 2.7 - copy-docker-file - package + copy-dockerfile + validate copy-resources - ${docker.location} + ${basedir}/target/docker-stage true ${basedir}/src/main/resources/docker true - **/* + Dockerfile - copy-resources-1 + copy-startup-script validate copy-resources - ${basedir}/target/opt/app/datartr/lib + ${basedir}/target/docker-stage/opt + true - ${project.basedir}/src/main/resources + ${basedir}/src/main/resources/docker + true - **/*.jar + startup.sh @@ -418,7 +461,7 @@ copy-resources - ${basedir}/target/opt/app/datartr/etc + ${basedir}/target/docker-stage/opt/app/datartr/etc ${basedir}/src/main/resources @@ -437,7 +480,7 @@ copy-resources - ${basedir}/target/opt/app/datartr + ${basedir}/target/docker-stage/opt/app/datartr ${basedir}/data @@ -456,7 +499,7 @@ copy-resources - ${basedir}/target/opt/app/datartr/aaf_certs + ${basedir}/target/docker-stage/opt/app/datartr/aaf_certs ${basedir}/aaf_certs @@ -482,7 +525,7 @@ copy-dependencies - ${project.build.directory}/opt/app/datartr/lib + ${basedir}/target/docker-stage/opt/app/datartr/aaf_certs false false true