1 <?xml version="1.0" encoding="UTF-8"?>
4 ============LICENSE_START=======================================================
6 ================================================================================
7 Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved.
8 Copyright (c) 2017-2019 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.2.1</version>
35 <groupId>org.onap.aai</groupId>
36 <artifactId>babel</artifactId>
37 <version>1.4.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.19.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.5.0</sdc.tosca.version>
57 <commons.compress.version>1.18</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</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 <antrun.version>1.8</antrun.version>
70 <dependencyManagement>
73 <!-- Import dependency management from Spring Boot -->
74 <groupId>org.springframework.boot</groupId>
75 <artifactId>spring-boot-dependencies</artifactId>
76 <version>${spring.boot.version}</version>
81 </dependencyManagement>
85 <groupId>org.springframework.boot</groupId>
86 <artifactId>spring-boot-starter-jetty</artifactId>
89 <groupId>org.springframework.boot</groupId>
90 <artifactId>spring-boot-starter-jersey</artifactId>
93 <groupId>org.springframework.boot</groupId>
94 <artifactId>spring-boot-starter-tomcat</artifactId>
99 <groupId>org.onap.aai.logging-service</groupId>
100 <artifactId>common-logging</artifactId>
101 <version>${common.logging.version}</version>
104 <groupId>ch.qos.logback</groupId>
105 <artifactId>logback-classic</artifactId>
106 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
109 <groupId>ch.qos.logback</groupId>
110 <artifactId>logback-core</artifactId>
111 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
114 <groupId>commons-codec</groupId>
115 <artifactId>commons-codec</artifactId>
118 <groupId>org.apache.commons</groupId>
119 <artifactId>commons-compress</artifactId>
120 <version>${commons.compress.version}</version>
123 <groupId>org.apache.commons</groupId>
124 <artifactId>commons-lang3</artifactId>
125 <version>${apache.lang3.version}</version>
128 <groupId>javax.ws.rs</groupId>
129 <artifactId>javax.ws.rs-api</artifactId>
130 <version>${javax.ws.rs.version}</version>
133 <groupId>org.codehaus.groovy</groupId>
134 <artifactId>groovy-all</artifactId>
137 <groupId>org.onap.sdc.sdc-tosca</groupId>
138 <artifactId>sdc-tosca</artifactId>
139 <version>${sdc.tosca.version}</version>
142 <groupId>org.onap.aai</groupId>
143 <artifactId>rest-client</artifactId>
144 <version>${aai.rest.client.version}</version>
149 <groupId>org.springframework.boot</groupId>
150 <artifactId>spring-boot-starter-test</artifactId>
154 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
155 <artifactId>sdc-distribution-client</artifactId>
156 <version>${sdc.distribution.client.version}</version>
160 <groupId>xmlunit</groupId>
161 <artifactId>xmlunit</artifactId>
162 <version>${xmlunit.version}</version>
168 <finalName>babel</finalName>
171 <groupId>org.springframework.boot</groupId>
172 <artifactId>spring-boot-maven-plugin</artifactId>
173 <version>${spring.boot.version}</version>
176 -DCONFIG_HOME=./appconfig-local
178 -Dtosca.mappings.config=./appconfig-local/tosca-mappings.json
179 -DKEY_STORE_PASSWORD=${KEY_STORE_PASSWORD}
185 <goal>repackage</goal>
191 <groupId>org.apache.maven.plugins</groupId>
192 <artifactId>maven-dependency-plugin</artifactId>
196 <phase>initialize</phase>
203 <groupId>${aai-schema.group.id}</groupId>
204 <artifactId>aai-schema</artifactId>
205 <version>${aai-schema.version}</version>
207 <includes>${aai.schema.source.folder}/aai_schema_v**.xsd</includes>
208 <outputDirectory>${project.build.directory}/tmp</outputDirectory>
216 <groupId>org.apache.maven.plugins</groupId>
217 <artifactId>maven-antrun-plugin</artifactId>
218 <version>${antrun.version}</version>
221 <id>Flatten XSDs</id>
222 <phase>initialize</phase>
228 <copy todir="${aai.schema.target.folder}" flatten="true">
229 <fileset dir="${project.build.directory}/tmp">
230 <include name="**/*.xsd" />
239 <groupId>org.jvnet.jaxb2.maven2</groupId>
240 <artifactId>maven-jaxb2-plugin</artifactId>
241 <version>${mvn.jaxb2.version}</version>
244 <phase>process-sources</phase>
246 <goal>generate</goal>
251 <schemaDirectory>${aai.schema.target.folder}</schemaDirectory>
252 <generatePackage>org.onap.aai.babel.xml.generator.xsd</generatePackage>
253 <generateDirectory>${project.build.directory}/generated-sources</generateDirectory>
255 <include>aai_schema_latest.xsd</include>
257 <extension>true</extension>
259 <arg>-Xannotate</arg>
263 <groupId>org.jvnet.jaxb2_commons</groupId>
264 <artifactId>jaxb2-basics-annotate</artifactId>
265 <version>0.6.4</version>
267 <!-- Add the dependencies with your annotations as 'plugins' below -->
269 <groupId>org.jvnet.jaxb2_commons</groupId>
270 <artifactId>jaxb2-annotate-plugin-test-annox-annotations</artifactId>
271 <version>1.0.0</version>
277 <artifactId>exec-maven-plugin</artifactId>
278 <groupId>org.codehaus.mojo</groupId>
279 <version>1.5.0</version>
281 <execution><!-- Run our script to get latest xsd version -->
282 <id>Get latest xsd version</id>
283 <phase>generate-sources</phase>
288 <workingDirectory>${basedir}/scripts</workingDirectory>
289 <executable>bash</executable>
290 <commandlineArgs>get-latest-xsd-version.sh ${basedir}</commandlineArgs>
296 <groupId>com.mycila</groupId>
297 <artifactId>license-maven-plugin</artifactId>
298 <version>3.0</version>
300 <header>License.txt</header>
302 <include>src/main/java/**</include>
303 <include>src/test/java/**</include>
304 <include>pom.xml</include>
306 <skipExistingHeaders>true</skipExistingHeaders>
311 <!-- Set goal from "check" to "format" to auto update license headers -->
314 <phase>validate</phase>
319 <groupId>org.apache.maven.plugins</groupId>
320 <artifactId>maven-surefire-plugin</artifactId>
322 <reuseForks>false</reuseForks>
323 <forkCount>1</forkCount>
324 <environmentVariables>
325 <APP_HOME>.</APP_HOME>
326 <CONFIG_HOME>src/test/resources</CONFIG_HOME>
327 </environmentVariables>
331 <groupId>org.apache.maven.plugins</groupId>
332 <artifactId>maven-resources-plugin</artifactId>
333 <version>3.0.2</version>
336 <id>copy-docker-file</id>
337 <phase>package</phase>
339 <goal>copy-resources</goal>
342 <outputDirectory>target</outputDirectory>
343 <overwrite>true</overwrite>
346 <directory>${basedir}/src/main/docker</directory>
347 <filtering>true</filtering>
350 <directory>${basedir}/src/main/bin/</directory>
351 <filtering>true</filtering>
359 <groupId>org.apache.maven.plugins</groupId>
360 <artifactId>maven-jar-plugin</artifactId>
361 <version>3.0.2</version>
364 <phase>package</phase>
369 <classifier>client</classifier>
371 <include>**/babel/service/data/*</include>
378 <groupId>org.apache.maven.plugins</groupId>
379 <artifactId>maven-deploy-plugin</artifactId>
381 <classifier>client</classifier>
385 <groupId>com.spotify</groupId>
386 <artifactId>docker-maven-plugin</artifactId>
387 <version>0.4.11</version>
389 <verbose>true</verbose>
390 <serverId>docker-hub</serverId>
391 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
392 <dockerDirectory>${docker.location}</dockerDirectory>
394 <imageTag>latest</imageTag>
396 <forceTags>true</forceTags>