X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=pom.xml;h=30cd824453d18dd46da2ce329afb953d821223d9;hb=737b823cc577412ddab206d2e3493b855d17bd12;hp=c1d645b5e67e8c2fc9c64af8775d875a8026a289;hpb=46bd5dc50478495e8698afbb7a706b991c791eaf;p=dmaap%2Fkafka11aaf.git diff --git a/pom.xml b/pom.xml index c1d645b..30cd824 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,6 @@ + + + ${basedir}/target/docker-stage + ${basedir}/src/main/docker + + + ${basedir}/src/main/resources + + + + org.apache.maven.plugins @@ -109,17 +121,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - false - - - injected-nexus-deploy - none - - - maven-deploy-plugin 2.8 @@ -137,92 +138,54 @@ - com.spotify - docker-maven-plugin - 1.0.0 - - onap/dmaap/kafka01101 - src/main/docker - docker-hub - - ${KafkaImg} - latest - - true - - - - / - ${project.build.directory} - **/** - - - + maven-dependency-plugin - build-image - install - - build - - - ${skip.docker.build} - - - - - tag-image-project-version - install - - tag - - - onap/dmaap/kafka01101 - ${docker.push.registry}/onap/dmaap/kafka01101:${KafkaImg} - ${skip.docker.push} - - - - - tag-image-latest - install - - tag - - - onap/dmaap/kafka01101 - ${docker.push.registry}/onap/dmaap/kafka01101:latest - ${skip.docker.push} - - - - - push-image - deploy - - push - - - ${docker.push.registry}/onap/dmaap/kafka01101:${KafkaImg} - ${skip.docker.push} - - - - - push-image-latest - deploy + copy + package - push + copy - ${docker.push.registry}/onap/dmaap/kafka01101:latest - ${skip.docker.push} + target + UTF-8 + + + org.onap.dmaap.messagerouter.mirroragent + dmaapMMAgent + 1.1.2 + dmaapMMAgent.jar + + - + + maven-resources-plugin + 2.7 + + + copy-jar + install + + copy-resources + + + ${basedir}/target/docker-stage + + + ${basedir}/target + + dmaapMMAgent.jar + kafka11aaf-jar-with-dependencies.jar + + + + + + + org.apache.maven.plugins maven-assembly-plugin @@ -233,7 +196,7 @@ jar-with-dependencies - kafka11aaf + kafka11aaf @@ -246,47 +209,20 @@ - - - org.apache.maven.plugins - maven-enforcer-plugin - - - enforce-no-snapshots - - enforce - - - - - No Snapshots Allowed! - - org.onap.aaf.authz:aaf-cadi-client - org.onap.aaf.authz:aaf-misc-env - org.onap.aaf.authz:aaf-cadi-aaf - org.onap.aaf.authz:aaf-auth-client - org.onap.aaf.authz:aaf-cadi-core - org.onap.aaf.authz:aaf-misc-rosetta - - - - true - - - - UTF-8 - 0.0.2 + ${maven.build.timestamp} + yyyyMMdd'T'HHmmss'Z' /content/sites/site/org/onap/dmaap/kafka0111/${project.artifactId}/${project.version} true true https://nexus.onap.org nexus3.onap.org:10003 + https://nexus.onap.org @@ -301,7 +237,7 @@ org.onap.aaf.authz aaf-cadi-aaf - 2.1.2-SNAPSHOT + 2.1.2 org.slf4j @@ -317,8 +253,10 @@ org.apache.kafka kafka_2.11 - 0.11.0.3 + 2.3.0 + provided + org.powermock powermock-api-mockito @@ -355,6 +293,86 @@ false false + + + + org.codehaus.groovy.maven + gmaven-plugin + + + validate + + execute + + + + ${project.version} + ${maven.build.timestamp} + + + println 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 + 0.28.0 + + ${docker.verbose} + ${docker.apiVersion} + ${docker.pull.registry} + ${docker.push.registry} + + + onap/dmaap/kafka111 + + try + ${basedir}/target/docker-stage + Dockerfile + + ${dockertag1} + ${dockertag2} + + + + + + + + generate-images + install + + build + + + + push-images + deploy + + push + + + + + +