X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fmodel-loader.git;a=blobdiff_plain;f=pom.xml;h=68ad3b62ac0467533aef7f0939d40b176a735090;hp=25b4d67f37092f91766bdf9ba4f01a63b3b73c3e;hb=caebf96699363909496ab3dace9d68c013c3778d;hpb=378fac344f2de5a89b5410b9031e76841cd8fba6 diff --git a/pom.xml b/pom.xml index 25b4d67..68ad3b6 100644 --- a/pom.xml +++ b/pom.xml @@ -24,41 +24,37 @@ 4.0.0 - org.onap.oparent - oparent - 2.0.0 + org.onap.aai.aai-common + aai-parent + 1.6.10 org.onap.aai.model-loader model-loader aai-model-loader - 1.5.0-SNAPSHOT - - - - - org.springframework.boot - spring-boot-dependencies - ${spring-boot.version} - pom - import - - - + 1.6.0-SNAPSHOT + 1.6.10 org.onap.aai.modelloader.service.ModelLoaderApplication https://nexus.onap.org ${basedir}/target - 2.1.6.RELEASE - 1.1 - 1.18 1.3 1.3.1 1.2.1 1.3.0 - 1.2.3 + + 0.28.0 + 1.0.0 + ${project.build.directory}/${project.artifactId}-${project.version}-build/ + onap + alpine + 1.6.0 + + yyyyMMdd'T'HHmmss'Z' + + 0.80 @@ -74,6 +70,118 @@ + + + + docker + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.0.0 + + + pre-clean + parse-version + + parse-version + + + + + + org.codehaus.groovy.maven + gmaven-plugin + 1.0 + + + pre-clean + + execute + + + + def userAaiBaseImage = session.userProperties['aai.base.image']; + def userAaiCommonVersion = session.userProperties['aai.base.image.version']; + if (userAaiCommonVersion != null) { + project.properties['aai.base.image.version'] = userAaiCommonVersion; + } + if (userAaiBaseImage != null) { + project.properties['aai.base.image'] = userAaiBaseImage; + } + log.info 'Base image flavour: ' + project.properties['aai.base.image']; + log.info 'Base image version: ' + project.properties['aai.base.image.version']; + + + + + + + io.fabric8 + docker-maven-plugin + ${docker.fabric.version} + + true + 1.23 + + + ${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l + + @ + + latest + ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest + ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-${maven.build.timestamp} + + try + ${project.basedir}/src/main/docker + + + + + ${aai.build.directory} + /${project.artifactId} + + + + + + + + + + + clean-images + pre-clean + + remove + + + true + + + + generate-images + package + + build + + + + push-images + deploy + + push + + + + + + + + + org.springframework.boot @@ -109,7 +217,6 @@ org.onap.aai rest-client - ${aai.rest.client.version} com.google.code.gson @@ -128,17 +235,14 @@ org.onap.aai.logging-service common-logging - 1.5.0 ch.qos.logback logback-classic - ${logback.version} ch.qos.logback logback-core - ${logback.version} org.onap.sdc.sdc-distribution-client @@ -148,7 +252,6 @@ org.json json - 20131018 org.eclipse.jetty @@ -162,17 +265,14 @@ org.apache.commons commons-compress - ${commons-compress.version} commons-io commons-io - 2.4 org.apache.commons commons-text - ${apache.commons-text.version} @@ -236,12 +336,10 @@ - model-loader org.springframework.boot spring-boot-maven-plugin - ${spring-boot.version} true @@ -253,36 +351,6 @@ - - org.apache.maven.plugins - maven-resources-plugin - 2.7 - - - copy-docker-file - package - - copy-resources - - - target - true - - - ${basedir}/src/main/docker - true - - **/* - - - - ${basedir}/src/main/bin/ - - - - - - com.mycila license-maven-plugin @@ -308,23 +376,53 @@ - com.spotify - docker-maven-plugin - 0.4.11 + org.apache.maven.plugins + maven-deploy-plugin + + + maven-assembly-plugin - true - docker-hub - ${docker.push.registry}/onap/${project.artifactId} - ${docker.location} - - latest - - true + + src/main/assembly/descriptor.xml + + + + make-assembly + package + + single + + + - org.apache.maven.plugins - maven-deploy-plugin + org.jacoco + jacoco-maven-plugin + + + default-check + + check + + + ${jacoco.report.directory}/jacoco-ut.exec + + + + BUNDLE + + + LINE + COVEREDRATIO + ${jacoco.line.coverage.limit} + + + + + + +