X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=pom.xml;h=1343611e622b4315a0b5c00ce29ad5507f844cb7;hb=refs%2Fheads%2Fkohn;hp=38d2949bd76c5cdc503ceca3e63e4743ddc6e257;hpb=271ab81ee74f6089a579fc23dd47a9d729c832b7;p=aai%2Fbabel.git diff --git a/pom.xml b/pom.xml index 38d2949..1343611 100644 --- a/pom.xml +++ b/pom.xml @@ -19,23 +19,21 @@ See the License for the specific language governing permissions and limitations under the License. ============LICENSE_END========================================================= - --> - + + 4.0.0 - org.onap.oparent - oparent - 2.0.0 - + org.onap.aai.aai-common + aai-parent + 1.9.3 org.onap.aai babel - 1.6.0-SNAPSHOT + 1.11.0-SNAPSHOT jar aai-babel @@ -43,43 +41,194 @@ - 2.1.6.RELEASE UTF-8 UTF-8 - 1.8 - ${basedir}/target + onap/aai_schema ${project.build.directory}/aai-schema + + + + + ${project.build.directory}/code-coverage + 0.90 + + + + + 0.8.6 + + jacoco + ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml + **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** + + 3.7.0.1746 + + + 3.2.0 + 3.8.1 + 11 + 11 + 11 + 11 + 3.7.0.1746 + + + 0.28.0 + 1.0.0 + ${project.build.directory}/${project.artifactId}-${project.version}-build/ + + onap + alpine + 1.9.0 + - 1.2.2 1.5.1 - 1.18 + + 1.9.4 + 2.1.21 + 1.2.2 + 1.2.7 + 2.5.15 + + 1.21 + 1.15 + 2.1 - 0.13.2 + 0.13.3 org.onap.aai.schema-service - 1.5.0 + + 1.9.7 3.7 1.2.1 - 1.3.0 + + 1.4.1 1.6 - 1.2.3 + 1.8 + + 1.1.1 + + yyyyMMdd'T'HHmmss'Z' + - - - - - org.springframework.boot - spring-boot-dependencies - ${spring.boot.version} - pom - import - - - + + + + + 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} + ${image.tag} + + 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 + + + + + + + + @@ -89,6 +238,34 @@ org.springframework.boot spring-boot-starter-jersey + + + org.springframework.boot + spring-boot-starter-jetty + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-jetty + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + org.springframework.boot + spring-boot-starter-aop org.springframework.boot @@ -99,21 +276,20 @@ org.onap.aai.logging-service common-logging - ${common.logging.version} ch.qos.logback logback-classic - ${logback.version} ch.qos.logback logback-core - ${logback.version} + ${logback.core.version} commons-codec commons-codec + ${commons.codec.version} org.apache.commons @@ -127,11 +303,12 @@ javax.ws.rs javax.ws.rs-api - ${javax.ws.rs.version} + 2.1 org.codehaus.groovy groovy + ${groovy.version} org.onap.sdc.sdc-tosca @@ -141,9 +318,51 @@ org.onap.aai rest-client - ${aai.rest.client.version} - + + org.onap.aai.aai-common + aai-aaf-auth + ${aai.common.version} + + + org.springframework.boot + spring-boot-starter-web + + + + + org.onap.aaf.authz + aaf-cadi-core + ${aaf.version} + compile + + + org.onap.aaf.authz + aaf-cadi-aaf + ${aaf.version} + compile + + + org.onap.aaf.authz + aaf-auth-client + ${aaf.version} + + + org.onap.aaf.authz + aaf-cadi-client + ${aaf.version} + + + org.onap.aaf.authz + aaf-misc-env + ${aaf.version} + + + org.onap.aaf.authz + aaf-misc-rosetta + ${aaf.version} + + org.springframework.boot @@ -156,16 +375,43 @@ ${sdc.distribution.client.version} test + + junit + junit + 4.12 + test + + xmlunit xmlunit ${xmlunit.version} test + + javax.xml.bind + jaxb-api + + + javax.xml.ws + jaxws-api + + + com.sun.xml.bind + jaxb-core + + + com.sun.xml.bind + jaxb-impl + + + javax.activation + activation + ${javax.activation.version} + - babel org.springframework.boot @@ -292,6 +538,23 @@ + + maven-assembly-plugin + + + src/main/assembly/descriptor.xml + + + + + make-assembly + package + + single + + + + com.mycila license-maven-plugin @@ -317,85 +580,195 @@ org.apache.maven.plugins - maven-surefire-plugin + maven-compiler-plugin + ${maven-compiler-plugin.version} + true - false - 1 - - . - src/test/resources - + ${maven-compiler-plugin.source} + ${maven-compiler-plugin.target} + ${maven-compiler-plugin.test.source} + ${maven-compiler-plugin.test.target} org.apache.maven.plugins - maven-resources-plugin + maven-jar-plugin 3.0.2 - copy-docker-file package - copy-resources + jar - target - true - - - ${basedir}/src/main/docker - true - - - ${basedir}/src/main/bin/ - true - - + client + + **/babel/service/data/* + org.apache.maven.plugins - maven-jar-plugin - 3.0.2 + maven-deploy-plugin + + client + + + + + + + + org.jacoco + jacoco-maven-plugin + ${jacoco-maven-plugin.version} + + + + **/gen/** + **/generated-sources/** + **/yang-gen/** + **/pax/** + org/onap/aai/babel/xml/generator/xsd/* + + + - package + pre-unit-test - jar + prepare-agent - client - - **/babel/service/data/* - + + ${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-deploy-plugin + maven-surefire-plugin + 3.0.0-M4 - client + + false + 1 + + . + src/test/resources + + ${surefireArgLine} + + + **/IT*.java + - com.spotify - docker-maven-plugin - 0.4.11 - - true - docker-hub - ${docker.push.registry}/onap/${project.artifactId} - ${docker.location} - - latest - - true - + org.apache.maven.plugins + maven-failsafe-plugin + 3.0.0-M5 + + + + integration-tests + + integration-test + verify + + + + ${failsafeArgLine} + + + + + + org.sonarsource.scanner.maven + sonar-maven-plugin + ${sonar.scanner.version} +