X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fbabel.git;a=blobdiff_plain;f=pom.xml;h=4ef4a71671bcd72c863c19f730b6621daaa3096f;hp=97e2afd5f683fd9692f6c7eb076cc9febf35f243;hb=6600175eb4b9fed25b08e0d6a868d78439f7c4b4;hpb=c3d7c9a953af53954b5b791869d8585d31c8eba2 diff --git a/pom.xml b/pom.xml index 97e2afd..4ef4a71 100644 --- a/pom.xml +++ b/pom.xml @@ -4,8 +4,8 @@ ============LICENSE_START======================================================= org.onap.aai ================================================================================ - Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. - Copyright © 2017-2018 European Software Marketing Ltd. + Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved. + Copyright (c) 2017-2019 European Software Marketing Ltd. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -28,13 +28,13 @@ org.onap.oparent oparent - 1.2.1 + 2.1.0 org.onap.aai babel - 1.4.0-SNAPSHOT + 1.7.0-SNAPSHOT jar aai-babel @@ -42,29 +42,53 @@ - 1.5.15.RELEASE + 2.1.12.RELEASE UTF-8 UTF-8 1.8 - ${basedir}/target onap/aai_schema ${project.build.directory}/aai-schema + + + + + 0.90 + 0.8.5 + 3.2 + jacoco + ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml + **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** + + 3.7.0.1746 + + + 0.28.0 + 1.0.0 + ${project.build.directory}/${project.artifactId}-${project.version}-build/ + + onap + alpine + 1.6.0 + 1.2.2 - 1.4.4 + 1.5.1 1.18 2.1 0.13.2 - org.onap.aai.aai-common - 1.3.0 - 3.7 + org.onap.aai.schema-service + 1.6.6 1.2.1 1.3.0 1.6 1.2.3 1.8 + 2.2.11 + 1.1.1 + + yyyyMMdd'T'HHmmss'Z' @@ -80,6 +104,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 @@ -88,6 +224,12 @@ org.springframework.boot spring-boot-starter-jersey + + + org.springframework.boot + spring-boot-starter-tomcat + + org.onap.aai.logging-service @@ -116,7 +258,6 @@ org.apache.commons commons-lang3 - ${apache.lang3.version} javax.ws.rs @@ -125,7 +266,7 @@ org.codehaus.groovy - groovy-all + groovy org.onap.sdc.sdc-tosca @@ -137,7 +278,7 @@ rest-client ${aai.rest.client.version} - + org.springframework.boot @@ -156,10 +297,29 @@ ${xmlunit.version} test + + javax.xml.bind + jaxb-api + ${jaxb.version} + + + com.sun.xml.bind + jaxb-core + ${jaxb.version} + + + com.sun.xml.bind + jaxb-impl + ${jaxb.version} + + + javax.activation + activation + ${javax.activation.version} + - babel org.springframework.boot @@ -169,8 +329,7 @@ -DCONFIG_HOME=./appconfig-local -DAPP_HOME=. - -Dartifactgenerator.config=./appconfig-local/artifact-generator.properties - -Dgroupfilter.config=./appconfig-local/filter-types.properties + -Dtosca.mappings.config=./appconfig-local/tosca-mappings.json -DKEY_STORE_PASSWORD=${KEY_STORE_PASSWORD} @@ -287,6 +446,23 @@ + + maven-assembly-plugin + + + src/main/assembly/descriptor.xml + + + + + make-assembly + package + + single + + + + com.mycila license-maven-plugin @@ -322,34 +498,6 @@ - - org.apache.maven.plugins - maven-resources-plugin - 3.0.2 - - - copy-docker-file - package - - copy-resources - - - target - true - - - ${basedir}/src/main/docker - true - - - ${basedir}/src/main/bin/ - true - - - - - - org.apache.maven.plugins maven-jar-plugin @@ -376,21 +524,153 @@ client + + + + - com.spotify - docker-maven-plugin - 0.4.11 - - true - docker-hub - ${docker.push.registry}/onap/${project.artifactId} - ${docker.location} - - latest - - true - + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + **/gen/** + **/generated-sources/** + **/yang-gen/** + **/pax/** + org/onap/aai/babel/xml/generator/xsd/* + + + + + + pre-unit-test + + prepare-agent + + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + surefireArgLine + + + + + post-unit-test + test + + report + + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + ${project.reporting.outputDirectory}/jacoco-ut + + + + pre-integration-test + pre-integration-test + + prepare-agent + + + + ${project.build.directory}/code-coverage/jacoco-it.exec + + failsafeArgLine + + + + + post-integration-test + post-integration-test + + report + + + + ${project.build.directory}/code-coverage/jacoco-it.exec + + ${project.reporting.outputDirectory}/jacoco-it + + + + default-check + + check + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + + BUNDLE + + + LINE + COVEREDRATIO + ${jacoco.line.coverage.limit} + + + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M4 + + + ${surefireArgLine} + + + **/IT*.java + + + + + org.apache.maven.plugins + maven-failsafe-plugin + 3.0.0-M4 + + + + integration-tests + + integration-test + verify + + + + ${failsafeArgLine} + + + + + + org.sonarsource.scanner.maven + sonar-maven-plugin + ${sonar.scanner.version} +