1 <?xml version="1.0" encoding="UTF-8"?>
4 ============LICENSE_START=======================================================
6 ================================================================================
7 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
8 Copyright © 2017-2018 European Software Marketing Ltd.
9 ================================================================================
10 Licensed under the Apache License, Version 2.0 (the "License");
11 you may not use this file except in compliance with the License.
12 You may obtain a copy of the License at
14 http://www.apache.org/licenses/LICENSE-2.0
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21 ============LICENSE_END=========================================================
24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
29 <groupId>org.onap.oparent</groupId>
30 <artifactId>oparent</artifactId>
31 <version>1.1.0</version>
35 <groupId>org.onap.aai</groupId>
36 <artifactId>babel</artifactId>
37 <version>1.2.0-SNAPSHOT</version>
38 <packaging>jar</packaging>
40 <name>aai-babel</name>
41 <description>ONAP AAI Babel Microservice</description>
44 <!-- Spring boot version -->
45 <spring.boot.version>1.5.12.RELEASE</spring.boot.version>
47 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
49 <java.version>1.8</java.version>
50 <docker.location>${basedir}/target</docker.location>
52 <!-- Dependency Versions -->
53 <common.logging.version>1.2.2</common.logging.version>
54 <sdc.tosca.version>1.3.0</sdc.tosca.version>
55 <commons.compress.version>1.16.1</commons.compress.version>
56 <javax.ws.rs.version>2.1</javax.ws.rs.version>
57 <mvn.jaxb2.version>0.13.2</mvn.jaxb2.version>
58 <aai-schema.group.id>org.onap.aai.aai-common</aai-schema.group.id>
59 <aai-schema.version>1.2.3</aai-schema.version>
60 <apache.lang3.version>3.7</apache.lang3.version>
61 <aai.rest.client.version>1.2.1</aai.rest.client.version>
62 <sdc.distribution.client.version>1.3.0</sdc.distribution.client.version>
63 <xmlunit.version>1.6</xmlunit.version>
64 <logback.version>1.2.3</logback.version>
67 <dependencyManagement>
70 <!-- Import dependency management from Spring Boot -->
71 <groupId>org.springframework.boot</groupId>
72 <artifactId>spring-boot-dependencies</artifactId>
73 <version>${spring.boot.version}</version>
78 </dependencyManagement>
82 <groupId>org.springframework.boot</groupId>
83 <artifactId>spring-boot-starter-jetty</artifactId>
86 <groupId>org.springframework.boot</groupId>
87 <artifactId>spring-boot-starter-jersey</artifactId>
90 <groupId>org.onap.aai.logging-service</groupId>
91 <artifactId>common-logging</artifactId>
92 <version>${common.logging.version}</version>
95 <groupId>ch.qos.logback</groupId>
96 <artifactId>logback-classic</artifactId>
97 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
100 <groupId>ch.qos.logback</groupId>
101 <artifactId>logback-core</artifactId>
102 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
106 <groupId>commons-codec</groupId>
107 <artifactId>commons-codec</artifactId>
110 <groupId>org.apache.commons</groupId>
111 <artifactId>commons-compress</artifactId>
112 <version>${commons.compress.version}</version>
115 <groupId>org.apache.commons</groupId>
116 <artifactId>commons-lang3</artifactId>
117 <version>${apache.lang3.version}</version>
120 <groupId>javax.ws.rs</groupId>
121 <artifactId>javax.ws.rs-api</artifactId>
122 <version>${javax.ws.rs.version}</version>
125 <groupId>org.codehaus.groovy</groupId>
126 <artifactId>groovy-all</artifactId>
129 <groupId>javax</groupId>
130 <artifactId>javaee-api</artifactId>
131 <version>8.0</version>
132 <scope>provided</scope>
136 <groupId>org.onap.sdc.sdc-tosca</groupId>
137 <artifactId>sdc-tosca</artifactId>
138 <version>${sdc.tosca.version}</version>
141 <groupId>org.onap.aai</groupId>
142 <artifactId>rest-client</artifactId>
143 <version>${aai.rest.client.version}</version>
148 <groupId>org.springframework.boot</groupId>
149 <artifactId>spring-boot-starter-test</artifactId>
153 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
154 <artifactId>sdc-distribution-client</artifactId>
155 <version>${sdc.distribution.client.version}</version>
159 <groupId>xmlunit</groupId>
160 <artifactId>xmlunit</artifactId>
161 <version>${xmlunit.version}</version>
167 <finalName>babel</finalName>
170 <groupId>org.springframework.boot</groupId>
171 <artifactId>spring-boot-maven-plugin</artifactId>
172 <version>${spring.boot.version}</version>
175 -DCONFIG_HOME=./appconfig-local
177 -Dartifactgenerator.config=./appconfig-local/artifact-generator.properties
178 -DKEY_STORE_PASSWORD=${KEY_STORE_PASSWORD}
184 <goal>repackage</goal>
190 <groupId>org.apache.maven.plugins</groupId>
191 <artifactId>maven-dependency-plugin</artifactId>
195 <phase>initialize</phase>
202 <groupId>${aai-schema.group.id}</groupId>
203 <artifactId>aai-schema</artifactId>
204 <version>${aai-schema.version}</version>
206 <includes>aai_schema/aai_schema_v**.xsd</includes>
207 <outputDirectory>target/tmp</outputDirectory>
215 <groupId>org.jvnet.jaxb2.maven2</groupId>
216 <artifactId>maven-jaxb2-plugin</artifactId>
217 <version>${mvn.jaxb2.version}</version>
220 <phase>process-sources</phase>
222 <goal>generate</goal>
227 <schemaDirectory>target/tmp/aai_schema</schemaDirectory>
228 <generatePackage>org.onap.aai.babel.xml.generator.xsd</generatePackage>
229 <generateDirectory>target/generated-sources</generateDirectory>
231 <include>aai_schema_latest.xsd</include>
233 <extension>true</extension>
235 <arg>-Xannotate</arg>
239 <groupId>org.jvnet.jaxb2_commons</groupId>
240 <artifactId>jaxb2-basics-annotate</artifactId>
241 <version>0.6.4</version>
243 <!-- Add the dependencies with your annotations as 'plugins' below -->
245 <groupId>org.jvnet.jaxb2_commons</groupId>
246 <artifactId>jaxb2-annotate-plugin-test-annox-annotations</artifactId>
247 <version>1.0.0</version>
253 <artifactId>exec-maven-plugin</artifactId>
254 <groupId>org.codehaus.mojo</groupId>
255 <version>1.5.0</version>
257 <execution><!-- Run our script to get latest xsd version -->
258 <id>Get latest xsd version</id>
259 <phase>generate-sources</phase>
264 <workingDirectory>${basedir}/scripts</workingDirectory>
265 <executable>bash</executable>
266 <commandlineArgs>get-latest-xsd-version.sh ${basedir}</commandlineArgs>
272 <groupId>com.mycila</groupId>
273 <artifactId>license-maven-plugin</artifactId>
274 <version>3.0</version>
276 <header>License.txt</header>
278 <include>src/main/java/**</include>
279 <include>src/test/java/**</include>
280 <include>pom.xml</include>
282 <skipExistingHeaders>true</skipExistingHeaders>
287 <!-- Set goal from "check" to "format" to auto update license headers -->
290 <phase>validate</phase>
295 <groupId>org.apache.maven.plugins</groupId>
296 <artifactId>maven-surefire-plugin</artifactId>
298 <reuseForks>false</reuseForks>
299 <forkCount>1</forkCount>
300 <environmentVariables>
301 <APP_HOME>.</APP_HOME>
302 <CONFIG_HOME>src/test/resources</CONFIG_HOME>
303 </environmentVariables>
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-resources-plugin</artifactId>
309 <version>3.0.2</version>
312 <id>copy-docker-file</id>
313 <phase>package</phase>
315 <goal>copy-resources</goal>
318 <outputDirectory>target</outputDirectory>
319 <overwrite>true</overwrite>
322 <directory>${basedir}/src/main/docker</directory>
323 <filtering>true</filtering>
326 <directory>${basedir}/src/main/bin/</directory>
327 <filtering>true</filtering>
335 <groupId>org.apache.maven.plugins</groupId>
336 <artifactId>maven-jar-plugin</artifactId>
337 <version>3.0.2</version>
340 <phase>package</phase>
345 <classifier>client</classifier>
347 <include>**/babel/service/data/*</include>
354 <groupId>org.apache.maven.plugins</groupId>
355 <artifactId>maven-deploy-plugin</artifactId>
357 <classifier>client</classifier>
361 <groupId>com.spotify</groupId>
362 <artifactId>docker-maven-plugin</artifactId>
363 <version>0.4.11</version>
365 <verbose>true</verbose>
366 <serverId>docker-hub</serverId>
367 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
368 <dockerDirectory>${docker.location}</dockerDirectory>
370 <imageTag>latest</imageTag>
372 <forceTags>true</forceTags>