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.3.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.14.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>
51 <aai.schema.source.folder>onap/aai_schema</aai.schema.source.folder>
52 <aai.schema.target.folder>${project.build.directory}/aai-schema</aai.schema.target.folder>
54 <!-- Dependency Versions -->
55 <common.logging.version>1.2.2</common.logging.version>
56 <sdc.tosca.version>1.4.1</sdc.tosca.version>
57 <commons.compress.version>1.16.1</commons.compress.version>
58 <javax.ws.rs.version>2.1</javax.ws.rs.version>
59 <mvn.jaxb2.version>0.13.2</mvn.jaxb2.version>
60 <aai-schema.group.id>org.onap.aai.aai-common</aai-schema.group.id>
61 <aai-schema.version>1.3.0-SNAPSHOT</aai-schema.version>
62 <apache.lang3.version>3.7</apache.lang3.version>
63 <aai.rest.client.version>1.2.1</aai.rest.client.version>
64 <sdc.distribution.client.version>1.3.0</sdc.distribution.client.version>
65 <xmlunit.version>1.6</xmlunit.version>
66 <logback.version>1.2.3</logback.version>
67 <guava.version>25.1-jre</guava.version>
68 <antrun.version>1.8</antrun.version>
71 <dependencyManagement>
74 <!-- Import dependency management from Spring Boot -->
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot-dependencies</artifactId>
77 <version>${spring.boot.version}</version>
82 </dependencyManagement>
86 <groupId>org.springframework.boot</groupId>
87 <artifactId>spring-boot-starter-jetty</artifactId>
90 <groupId>org.springframework.boot</groupId>
91 <artifactId>spring-boot-starter-jersey</artifactId>
94 <groupId>org.onap.aai.logging-service</groupId>
95 <artifactId>common-logging</artifactId>
96 <version>${common.logging.version}</version>
99 <groupId>ch.qos.logback</groupId>
100 <artifactId>logback-classic</artifactId>
101 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
104 <groupId>ch.qos.logback</groupId>
105 <artifactId>logback-core</artifactId>
106 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
110 <groupId>commons-codec</groupId>
111 <artifactId>commons-codec</artifactId>
114 <groupId>org.apache.commons</groupId>
115 <artifactId>commons-compress</artifactId>
116 <version>${commons.compress.version}</version>
119 <groupId>org.apache.commons</groupId>
120 <artifactId>commons-lang3</artifactId>
121 <version>${apache.lang3.version}</version>
124 <groupId>javax.ws.rs</groupId>
125 <artifactId>javax.ws.rs-api</artifactId>
126 <version>${javax.ws.rs.version}</version>
129 <groupId>org.codehaus.groovy</groupId>
130 <artifactId>groovy-all</artifactId>
134 <groupId>org.onap.sdc.sdc-tosca</groupId>
135 <artifactId>sdc-tosca</artifactId>
136 <version>${sdc.tosca.version}</version>
139 <groupId>com.google.guava</groupId>
140 <artifactId>guava</artifactId>
141 <version>${guava.version}</version>
145 <groupId>org.onap.aai</groupId>
146 <artifactId>rest-client</artifactId>
147 <version>${aai.rest.client.version}</version>
152 <groupId>org.springframework.boot</groupId>
153 <artifactId>spring-boot-starter-test</artifactId>
157 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
158 <artifactId>sdc-distribution-client</artifactId>
159 <version>${sdc.distribution.client.version}</version>
163 <groupId>xmlunit</groupId>
164 <artifactId>xmlunit</artifactId>
165 <version>${xmlunit.version}</version>
171 <finalName>babel</finalName>
174 <groupId>org.springframework.boot</groupId>
175 <artifactId>spring-boot-maven-plugin</artifactId>
176 <version>${spring.boot.version}</version>
179 -DCONFIG_HOME=./appconfig-local
181 -Dartifactgenerator.config=./appconfig-local/artifact-generator.properties
182 -DKEY_STORE_PASSWORD=${KEY_STORE_PASSWORD}
188 <goal>repackage</goal>
194 <groupId>org.apache.maven.plugins</groupId>
195 <artifactId>maven-dependency-plugin</artifactId>
199 <phase>initialize</phase>
206 <groupId>${aai-schema.group.id}</groupId>
207 <artifactId>aai-schema</artifactId>
208 <version>${aai-schema.version}</version>
210 <includes>${aai.schema.source.folder}/aai_schema_v**.xsd</includes>
211 <outputDirectory>${project.build.directory}/tmp</outputDirectory>
219 <groupId>org.apache.maven.plugins</groupId>
220 <artifactId>maven-antrun-plugin</artifactId>
221 <version>${antrun.version}</version>
224 <id>Flatten XSDs</id>
225 <phase>initialize</phase>
231 <copy todir="${aai.schema.target.folder}" flatten="true">
232 <fileset dir="${project.build.directory}/tmp">
233 <include name="**/*.xsd" />
242 <groupId>org.jvnet.jaxb2.maven2</groupId>
243 <artifactId>maven-jaxb2-plugin</artifactId>
244 <version>${mvn.jaxb2.version}</version>
247 <phase>process-sources</phase>
249 <goal>generate</goal>
254 <schemaDirectory>${aai.schema.target.folder}</schemaDirectory>
255 <generatePackage>org.onap.aai.babel.xml.generator.xsd</generatePackage>
256 <generateDirectory>${project.build.directory}/generated-sources</generateDirectory>
258 <include>aai_schema_latest.xsd</include>
260 <extension>true</extension>
262 <arg>-Xannotate</arg>
266 <groupId>org.jvnet.jaxb2_commons</groupId>
267 <artifactId>jaxb2-basics-annotate</artifactId>
268 <version>0.6.4</version>
270 <!-- Add the dependencies with your annotations as 'plugins' below -->
272 <groupId>org.jvnet.jaxb2_commons</groupId>
273 <artifactId>jaxb2-annotate-plugin-test-annox-annotations</artifactId>
274 <version>1.0.0</version>
280 <artifactId>exec-maven-plugin</artifactId>
281 <groupId>org.codehaus.mojo</groupId>
282 <version>1.5.0</version>
284 <execution><!-- Run our script to get latest xsd version -->
285 <id>Get latest xsd version</id>
286 <phase>generate-sources</phase>
291 <workingDirectory>${basedir}/scripts</workingDirectory>
292 <executable>bash</executable>
293 <commandlineArgs>get-latest-xsd-version.sh ${basedir}</commandlineArgs>
299 <groupId>com.mycila</groupId>
300 <artifactId>license-maven-plugin</artifactId>
301 <version>3.0</version>
303 <header>License.txt</header>
305 <include>src/main/java/**</include>
306 <include>src/test/java/**</include>
307 <include>pom.xml</include>
309 <skipExistingHeaders>true</skipExistingHeaders>
314 <!-- Set goal from "check" to "format" to auto update license headers -->
317 <phase>validate</phase>
322 <groupId>org.apache.maven.plugins</groupId>
323 <artifactId>maven-surefire-plugin</artifactId>
325 <reuseForks>false</reuseForks>
326 <forkCount>1</forkCount>
327 <environmentVariables>
328 <APP_HOME>.</APP_HOME>
329 <CONFIG_HOME>src/test/resources</CONFIG_HOME>
330 </environmentVariables>
334 <groupId>org.apache.maven.plugins</groupId>
335 <artifactId>maven-resources-plugin</artifactId>
336 <version>3.0.2</version>
339 <id>copy-docker-file</id>
340 <phase>package</phase>
342 <goal>copy-resources</goal>
345 <outputDirectory>target</outputDirectory>
346 <overwrite>true</overwrite>
349 <directory>${basedir}/src/main/docker</directory>
350 <filtering>true</filtering>
353 <directory>${basedir}/src/main/bin/</directory>
354 <filtering>true</filtering>
362 <groupId>org.apache.maven.plugins</groupId>
363 <artifactId>maven-jar-plugin</artifactId>
364 <version>3.0.2</version>
367 <phase>package</phase>
372 <classifier>client</classifier>
374 <include>**/babel/service/data/*</include>
381 <groupId>org.apache.maven.plugins</groupId>
382 <artifactId>maven-deploy-plugin</artifactId>
384 <classifier>client</classifier>
388 <groupId>com.spotify</groupId>
389 <artifactId>docker-maven-plugin</artifactId>
390 <version>0.4.11</version>
392 <verbose>true</verbose>
393 <serverId>docker-hub</serverId>
394 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
395 <dockerDirectory>${docker.location}</dockerDirectory>
397 <imageTag>latest</imageTag>
399 <forceTags>true</forceTags>