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.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.15.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.6</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.onap.aai.logging-service</groupId>
94 <artifactId>common-logging</artifactId>
95 <version>${common.logging.version}</version>
98 <groupId>ch.qos.logback</groupId>
99 <artifactId>logback-classic</artifactId>
100 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
103 <groupId>ch.qos.logback</groupId>
104 <artifactId>logback-core</artifactId>
105 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
108 <groupId>commons-codec</groupId>
109 <artifactId>commons-codec</artifactId>
112 <groupId>org.apache.commons</groupId>
113 <artifactId>commons-compress</artifactId>
114 <version>${commons.compress.version}</version>
117 <groupId>org.apache.commons</groupId>
118 <artifactId>commons-lang3</artifactId>
119 <version>${apache.lang3.version}</version>
122 <groupId>javax.ws.rs</groupId>
123 <artifactId>javax.ws.rs-api</artifactId>
124 <version>${javax.ws.rs.version}</version>
127 <groupId>org.codehaus.groovy</groupId>
128 <artifactId>groovy-all</artifactId>
131 <groupId>org.onap.sdc.sdc-tosca</groupId>
132 <artifactId>sdc-tosca</artifactId>
133 <version>${sdc.tosca.version}</version>
136 <groupId>org.onap.aai</groupId>
137 <artifactId>rest-client</artifactId>
138 <version>${aai.rest.client.version}</version>
143 <groupId>org.springframework.boot</groupId>
144 <artifactId>spring-boot-starter-test</artifactId>
148 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
149 <artifactId>sdc-distribution-client</artifactId>
150 <version>${sdc.distribution.client.version}</version>
154 <groupId>xmlunit</groupId>
155 <artifactId>xmlunit</artifactId>
156 <version>${xmlunit.version}</version>
162 <finalName>babel</finalName>
165 <groupId>org.springframework.boot</groupId>
166 <artifactId>spring-boot-maven-plugin</artifactId>
167 <version>${spring.boot.version}</version>
170 -DCONFIG_HOME=./appconfig-local
172 -Dartifactgenerator.config=./appconfig-local/artifact-generator.properties
173 -Dgroupfilter.config=./appconfig-local/filter-types.properties
174 -DKEY_STORE_PASSWORD=${KEY_STORE_PASSWORD}
180 <goal>repackage</goal>
186 <groupId>org.apache.maven.plugins</groupId>
187 <artifactId>maven-dependency-plugin</artifactId>
191 <phase>initialize</phase>
198 <groupId>${aai-schema.group.id}</groupId>
199 <artifactId>aai-schema</artifactId>
200 <version>${aai-schema.version}</version>
202 <includes>${aai.schema.source.folder}/aai_schema_v**.xsd</includes>
203 <outputDirectory>${project.build.directory}/tmp</outputDirectory>
211 <groupId>org.apache.maven.plugins</groupId>
212 <artifactId>maven-antrun-plugin</artifactId>
213 <version>${antrun.version}</version>
216 <id>Flatten XSDs</id>
217 <phase>initialize</phase>
223 <copy todir="${aai.schema.target.folder}" flatten="true">
224 <fileset dir="${project.build.directory}/tmp">
225 <include name="**/*.xsd" />
234 <groupId>org.jvnet.jaxb2.maven2</groupId>
235 <artifactId>maven-jaxb2-plugin</artifactId>
236 <version>${mvn.jaxb2.version}</version>
239 <phase>process-sources</phase>
241 <goal>generate</goal>
246 <schemaDirectory>${aai.schema.target.folder}</schemaDirectory>
247 <generatePackage>org.onap.aai.babel.xml.generator.xsd</generatePackage>
248 <generateDirectory>${project.build.directory}/generated-sources</generateDirectory>
250 <include>aai_schema_latest.xsd</include>
252 <extension>true</extension>
254 <arg>-Xannotate</arg>
258 <groupId>org.jvnet.jaxb2_commons</groupId>
259 <artifactId>jaxb2-basics-annotate</artifactId>
260 <version>0.6.4</version>
262 <!-- Add the dependencies with your annotations as 'plugins' below -->
264 <groupId>org.jvnet.jaxb2_commons</groupId>
265 <artifactId>jaxb2-annotate-plugin-test-annox-annotations</artifactId>
266 <version>1.0.0</version>
272 <artifactId>exec-maven-plugin</artifactId>
273 <groupId>org.codehaus.mojo</groupId>
274 <version>1.5.0</version>
276 <execution><!-- Run our script to get latest xsd version -->
277 <id>Get latest xsd version</id>
278 <phase>generate-sources</phase>
283 <workingDirectory>${basedir}/scripts</workingDirectory>
284 <executable>bash</executable>
285 <commandlineArgs>get-latest-xsd-version.sh ${basedir}</commandlineArgs>
291 <groupId>com.mycila</groupId>
292 <artifactId>license-maven-plugin</artifactId>
293 <version>3.0</version>
295 <header>License.txt</header>
297 <include>src/main/java/**</include>
298 <include>src/test/java/**</include>
299 <include>pom.xml</include>
301 <skipExistingHeaders>true</skipExistingHeaders>
306 <!-- Set goal from "check" to "format" to auto update license headers -->
309 <phase>validate</phase>
314 <groupId>org.apache.maven.plugins</groupId>
315 <artifactId>maven-surefire-plugin</artifactId>
317 <reuseForks>false</reuseForks>
318 <forkCount>1</forkCount>
319 <environmentVariables>
320 <APP_HOME>.</APP_HOME>
321 <CONFIG_HOME>src/test/resources</CONFIG_HOME>
322 </environmentVariables>
326 <groupId>org.apache.maven.plugins</groupId>
327 <artifactId>maven-resources-plugin</artifactId>
328 <version>3.0.2</version>
331 <id>copy-docker-file</id>
332 <phase>package</phase>
334 <goal>copy-resources</goal>
337 <outputDirectory>target</outputDirectory>
338 <overwrite>true</overwrite>
341 <directory>${basedir}/src/main/docker</directory>
342 <filtering>true</filtering>
345 <directory>${basedir}/src/main/bin/</directory>
346 <filtering>true</filtering>
354 <groupId>org.apache.maven.plugins</groupId>
355 <artifactId>maven-jar-plugin</artifactId>
356 <version>3.0.2</version>
359 <phase>package</phase>
364 <classifier>client</classifier>
366 <include>**/babel/service/data/*</include>
373 <groupId>org.apache.maven.plugins</groupId>
374 <artifactId>maven-deploy-plugin</artifactId>
376 <classifier>client</classifier>
380 <groupId>com.spotify</groupId>
381 <artifactId>docker-maven-plugin</artifactId>
382 <version>0.4.11</version>
384 <verbose>true</verbose>
385 <serverId>docker-hub</serverId>
386 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
387 <dockerDirectory>${docker.location}</dockerDirectory>
389 <imageTag>latest</imageTag>
391 <forceTags>true</forceTags>