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>
130 <groupId>org.onap.sdc.sdc-tosca</groupId>
131 <artifactId>sdc-tosca</artifactId>
132 <version>${sdc.tosca.version}</version>
135 <groupId>org.onap.aai</groupId>
136 <artifactId>rest-client</artifactId>
137 <version>${aai.rest.client.version}</version>
142 <groupId>org.springframework.boot</groupId>
143 <artifactId>spring-boot-starter-test</artifactId>
147 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
148 <artifactId>sdc-distribution-client</artifactId>
149 <version>${sdc.distribution.client.version}</version>
153 <groupId>xmlunit</groupId>
154 <artifactId>xmlunit</artifactId>
155 <version>${xmlunit.version}</version>
161 <finalName>babel</finalName>
164 <groupId>org.springframework.boot</groupId>
165 <artifactId>spring-boot-maven-plugin</artifactId>
166 <version>${spring.boot.version}</version>
169 -DCONFIG_HOME=./appconfig-local
171 -Dartifactgenerator.config=./appconfig-local/artifact-generator.properties
172 -DKEY_STORE_PASSWORD=${KEY_STORE_PASSWORD}
178 <goal>repackage</goal>
184 <groupId>org.apache.maven.plugins</groupId>
185 <artifactId>maven-dependency-plugin</artifactId>
189 <phase>initialize</phase>
196 <groupId>${aai-schema.group.id}</groupId>
197 <artifactId>aai-schema</artifactId>
198 <version>${aai-schema.version}</version>
200 <includes>aai_schema/aai_schema_v**.xsd</includes>
201 <outputDirectory>target/tmp</outputDirectory>
209 <groupId>org.jvnet.jaxb2.maven2</groupId>
210 <artifactId>maven-jaxb2-plugin</artifactId>
211 <version>${mvn.jaxb2.version}</version>
214 <phase>process-sources</phase>
216 <goal>generate</goal>
221 <schemaDirectory>target/tmp/aai_schema</schemaDirectory>
222 <generatePackage>org.onap.aai.babel.xml.generator.xsd</generatePackage>
223 <generateDirectory>target/generated-sources</generateDirectory>
225 <include>aai_schema_latest.xsd</include>
227 <extension>true</extension>
229 <arg>-Xannotate</arg>
233 <groupId>org.jvnet.jaxb2_commons</groupId>
234 <artifactId>jaxb2-basics-annotate</artifactId>
235 <version>0.6.4</version>
237 <!-- Add the dependencies with your annotations as 'plugins' below -->
239 <groupId>org.jvnet.jaxb2_commons</groupId>
240 <artifactId>jaxb2-annotate-plugin-test-annox-annotations</artifactId>
241 <version>1.0.0</version>
247 <artifactId>exec-maven-plugin</artifactId>
248 <groupId>org.codehaus.mojo</groupId>
249 <version>1.5.0</version>
251 <execution><!-- Run our script to get latest xsd version -->
252 <id>Get latest xsd version</id>
253 <phase>generate-sources</phase>
258 <workingDirectory>${basedir}/scripts</workingDirectory>
259 <executable>bash</executable>
260 <commandlineArgs>get-latest-xsd-version.sh ${basedir}</commandlineArgs>
266 <groupId>com.mycila</groupId>
267 <artifactId>license-maven-plugin</artifactId>
268 <version>3.0</version>
270 <header>License.txt</header>
272 <include>src/main/java/**</include>
273 <include>src/test/java/**</include>
274 <include>pom.xml</include>
276 <skipExistingHeaders>true</skipExistingHeaders>
281 <!-- Set goal from "check" to "format" to auto update license headers -->
284 <phase>validate</phase>
289 <groupId>org.apache.maven.plugins</groupId>
290 <artifactId>maven-surefire-plugin</artifactId>
292 <reuseForks>false</reuseForks>
293 <forkCount>1</forkCount>
294 <environmentVariables>
295 <APP_HOME>.</APP_HOME>
296 <CONFIG_HOME>src/test/resources</CONFIG_HOME>
297 </environmentVariables>
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-resources-plugin</artifactId>
303 <version>3.0.2</version>
306 <id>copy-docker-file</id>
307 <phase>package</phase>
309 <goal>copy-resources</goal>
312 <outputDirectory>target</outputDirectory>
313 <overwrite>true</overwrite>
316 <directory>${basedir}/src/main/docker</directory>
317 <filtering>true</filtering>
320 <directory>${basedir}/src/main/bin/</directory>
321 <filtering>true</filtering>
329 <groupId>org.apache.maven.plugins</groupId>
330 <artifactId>maven-jar-plugin</artifactId>
331 <version>3.0.2</version>
334 <phase>package</phase>
339 <classifier>client</classifier>
341 <include>**/babel/service/data/*</include>
348 <groupId>org.apache.maven.plugins</groupId>
349 <artifactId>maven-deploy-plugin</artifactId>
351 <classifier>client</classifier>
355 <groupId>com.spotify</groupId>
356 <artifactId>docker-maven-plugin</artifactId>
357 <version>0.4.11</version>
359 <verbose>true</verbose>
360 <serverId>docker-hub</serverId>
361 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
362 <dockerDirectory>${docker.location}</dockerDirectory>
364 <imageTag>latest</imageTag>
366 <forceTags>true</forceTags>