X-Git-Url: https://gerrit.onap.org/r/gitweb?p=dmaap%2Fdatarouter.git;a=blobdiff_plain;f=datarouter-subscriber%2Fpom.xml;h=1f58c42c1b5632267b50f6192d5c80bbd0d2f622;hp=a7a3151374397febb0d062463f273ebbecb416d7;hb=efad46124485f1572765fad05284d8a070fb9277;hpb=aa988a2dd377cbd8e675b7f95636a4e4a3cef17a diff --git a/datarouter-subscriber/pom.xml b/datarouter-subscriber/pom.xml index a7a31513..1f58c42c 100755 --- a/datarouter-subscriber/pom.xml +++ b/datarouter-subscriber/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.0.2-SNAPSHOT ../pom.xml datarouter-subscriber @@ -39,8 +40,21 @@ ${basedir}/target/${artifactId} onap/dmaap/datarouter-subscriber + + ${maven.build.timestamp} + yyyyMMdd'T'HHmmss'Z' + + com.google.guava + guava + ${google.guava.version} + + + commons-codec + commons-codec + ${commons-codec.version} + org.eclipse.jetty jetty-server @@ -91,6 +105,23 @@ jetty-io ${jetty.version} + + com.thoughtworks.xstream + xstream + ${thoughtworks.version} + + + ch.qos.logback + logback-classic + ${qos.logback.version} + compile + + + ch.qos.logback + logback-core + ${qos.logback.version} + compile + org.apache.httpcomponents httpclient @@ -135,37 +166,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 + + + @@ -211,7 +283,7 @@ jar-with-dependencies - ${basedir}/target/opt/app/subscriber/lib + ${basedir}/target/docker-stage/opt/app/subscriber/lib true @@ -246,12 +318,12 @@ copy-docker-file - package + validate copy-resources - ${docker.location} + ${basedir}/target/docker-stage true @@ -265,18 +337,20 @@ - copy-resources-1 + copy-startup-script validate copy-resources - ${basedir}/target/opt/app/subscriber/lib + ${basedir}/target/docker-stage/opt + true - ${project.basedir}/src/main/resources + ${basedir}/src/main/resources/docker + true - **/*.jar + startup.sh @@ -289,7 +363,7 @@ copy-resources - ${basedir}/target/opt/app/subscriber/etc + ${basedir}/target/docker-stage/opt/app/subscriber/etc ${basedir}/src/main/resources