blob: fe992488346e154d98f572b36dc0675613b4a3fc [file] [log] [blame]
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +01001<?xml version="1.0" encoding="UTF-8"?>
Lee, Tian (tl5884)9d81a172018-04-17 15:31:49 +01002<!--
3
mark.j.leonard1bde7e32018-08-06 16:58:34 +01004 ============LICENSE_START=======================================================
Lee, Tian (tl5884)9d81a172018-04-17 15:31:49 +01005 org.onap.aai
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
13
14 http://www.apache.org/licenses/LICENSE-2.0
15
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=========================================================
22
23-->
Edwin Lawrance1433a672017-09-22 16:55:07 +010024<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>
27
28 <parent>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +010029 <groupId>org.onap.oparent</groupId>
30 <artifactId>oparent</artifactId>
31 <version>1.1.0</version>
32 <relativePath />
Edwin Lawrance1433a672017-09-22 16:55:07 +010033 </parent>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +010034
35 <groupId>org.onap.aai</groupId>
Edwin Lawrance1433a672017-09-22 16:55:07 +010036 <artifactId>babel</artifactId>
Jimmy Forsyth284d5c02018-05-23 13:56:25 -040037 <version>1.3.0-SNAPSHOT</version>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +010038 <packaging>jar</packaging>
39
Gildas Lanilis5b2bfbb2018-02-02 14:14:41 -080040 <name>aai-babel</name>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +010041 <description>ONAP AAI Babel Microservice</description>
Edwin Lawrance1433a672017-09-22 16:55:07 +010042
43 <properties>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +010044 <!-- Spring boot version -->
Lee, Tian (tl5884)079001a2018-07-05 12:39:02 +010045 <spring.boot.version>1.5.14.RELEASE</spring.boot.version>
Edwin Lawrance1433a672017-09-22 16:55:07 +010046
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +010047 <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>
Edwin Lawrance1433a672017-09-22 16:55:07 +010051
52 <!-- Dependency Versions -->
Leonard, Mark (ml401d)66b3afa2018-03-21 18:40:41 +000053 <common.logging.version>1.2.2</common.logging.version>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +010054 <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>
Leonard, Mark (ml401d)66b3afa2018-03-21 18:40:41 +000057 <mvn.jaxb2.version>0.13.2</mvn.jaxb2.version>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +010058 <aai-schema.group.id>org.onap.aai.aai-common</aai-schema.group.id>
Jimmy Forsyth284d5c02018-05-23 13:56:25 -040059 <aai-schema.version>1.3.0-SNAPSHOT</aai-schema.version>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +010060 <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>
Leonard, Mark (ml401d)66b3afa2018-03-21 18:40:41 +000063 <xmlunit.version>1.6</xmlunit.version>
Lee, Tian (tl5884)fdf0ac02018-05-01 10:47:29 +010064 <logback.version>1.2.3</logback.version>
Lee, Tian (tl5884)079001a2018-07-05 12:39:02 +010065 <guava.version>25.1-jre</guava.version>
Edwin Lawrance1433a672017-09-22 16:55:07 +010066 </properties>
67
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +010068 <dependencyManagement>
69 <dependencies>
70 <dependency>
71 <!-- Import dependency management from Spring Boot -->
72 <groupId>org.springframework.boot</groupId>
73 <artifactId>spring-boot-dependencies</artifactId>
74 <version>${spring.boot.version}</version>
75 <type>pom</type>
76 <scope>import</scope>
77 </dependency>
78 </dependencies>
79 </dependencyManagement>
80
Edwin Lawrance1433a672017-09-22 16:55:07 +010081 <dependencies>
82 <dependency>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +010083 <groupId>org.springframework.boot</groupId>
84 <artifactId>spring-boot-starter-jetty</artifactId>
Edwin Lawrance1433a672017-09-22 16:55:07 +010085 </dependency>
86 <dependency>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +010087 <groupId>org.springframework.boot</groupId>
88 <artifactId>spring-boot-starter-jersey</artifactId>
Edwin Lawrance1433a672017-09-22 16:55:07 +010089 </dependency>
mark.j.leonardeea12822018-04-09 13:20:26 +010090 <dependency>
Edwin Lawrance1433a672017-09-22 16:55:07 +010091 <groupId>org.onap.aai.logging-service</groupId>
92 <artifactId>common-logging</artifactId>
93 <version>${common.logging.version}</version>
94 </dependency>
95 <dependency>
Lee, Tian (tl5884)fdf0ac02018-05-01 10:47:29 +010096 <groupId>ch.qos.logback</groupId>
97 <artifactId>logback-classic</artifactId>
98 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
99 </dependency>
100 <dependency>
101 <groupId>ch.qos.logback</groupId>
102 <artifactId>logback-core</artifactId>
103 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
104 </dependency>
105
106 <dependency>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100107 <groupId>commons-codec</groupId>
108 <artifactId>commons-codec</artifactId>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100109 </dependency>
110 <dependency>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100111 <groupId>org.apache.commons</groupId>
112 <artifactId>commons-compress</artifactId>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100113 <version>${commons.compress.version}</version>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100114 </dependency>
115 <dependency>
116 <groupId>org.apache.commons</groupId>
117 <artifactId>commons-lang3</artifactId>
118 <version>${apache.lang3.version}</version>
119 </dependency>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100120 <dependency>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100121 <groupId>javax.ws.rs</groupId>
122 <artifactId>javax.ws.rs-api</artifactId>
123 <version>${javax.ws.rs.version}</version>
124 </dependency>
125 <dependency>
126 <groupId>org.codehaus.groovy</groupId>
127 <artifactId>groovy-all</artifactId>
128 </dependency>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100129
130 <dependency>
Leonard, Mark (ml401d)66b3afa2018-03-21 18:40:41 +0000131 <groupId>org.onap.sdc.sdc-tosca</groupId>
132 <artifactId>sdc-tosca</artifactId>
133 <version>${sdc.tosca.version}</version>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100134 </dependency>
135 <dependency>
Lee, Tian (tl5884)079001a2018-07-05 12:39:02 +0100136 <groupId>com.google.guava</groupId>
137 <artifactId>guava</artifactId>
138 <version>${guava.version}</version>
139 </dependency>
140
141 <dependency>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100142 <groupId>org.onap.aai</groupId>
143 <artifactId>rest-client</artifactId>
144 <version>${aai.rest.client.version}</version>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100145 </dependency>
146
147 <!-- Testing -->
148 <dependency>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100149 <groupId>org.springframework.boot</groupId>
150 <artifactId>spring-boot-starter-test</artifactId>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100151 <scope>test</scope>
152 </dependency>
153 <dependency>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100154 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100155 <artifactId>sdc-distribution-client</artifactId>
156 <version>${sdc.distribution.client.version}</version>
Leonard, Mark (ml401d)66b3afa2018-03-21 18:40:41 +0000157 <scope>test</scope>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100158 </dependency>
Leonard, Mark (ml401d)66b3afa2018-03-21 18:40:41 +0000159 <dependency>
160 <groupId>xmlunit</groupId>
161 <artifactId>xmlunit</artifactId>
162 <version>${xmlunit.version}</version>
163 <scope>test</scope>
164 </dependency>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100165 </dependencies>
166
167 <build>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100168 <finalName>babel</finalName>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100169 <plugins>
Venkata Harish K Kajure3507082018-01-08 02:44:08 -0500170 <plugin>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100171 <groupId>org.springframework.boot</groupId>
172 <artifactId>spring-boot-maven-plugin</artifactId>
173 <version>${spring.boot.version}</version>
174 <configuration>
175 <jvmArguments>
176 -DCONFIG_HOME=./appconfig-local
177 -DAPP_HOME=.
178 -Dartifactgenerator.config=./appconfig-local/artifact-generator.properties
179 -DKEY_STORE_PASSWORD=${KEY_STORE_PASSWORD}
180 </jvmArguments>
181 </configuration>
182 <executions>
183 <execution>
184 <goals>
185 <goal>repackage</goal>
186 </goals>
187 </execution>
188 </executions>
189 </plugin>
190 <plugin>
Leonard, Mark (ml401d)66b3afa2018-03-21 18:40:41 +0000191 <groupId>org.apache.maven.plugins</groupId>
192 <artifactId>maven-dependency-plugin</artifactId>
193 <executions>
194 <execution>
195 <id>unpack</id>
196 <phase>initialize</phase>
197 <goals>
198 <goal>unpack</goal>
199 </goals>
200 <configuration>
201 <artifactItems>
202 <artifactItem>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100203 <groupId>${aai-schema.group.id}</groupId>
Leonard, Mark (ml401d)66b3afa2018-03-21 18:40:41 +0000204 <artifactId>aai-schema</artifactId>
205 <version>${aai-schema.version}</version>
206 <type>jar</type>
207 <includes>aai_schema/aai_schema_v**.xsd</includes>
208 <outputDirectory>target/tmp</outputDirectory>
209 </artifactItem>
210 </artifactItems>
211 </configuration>
212 </execution>
213 </executions>
214 </plugin>
215 <plugin>
216 <groupId>org.jvnet.jaxb2.maven2</groupId>
217 <artifactId>maven-jaxb2-plugin</artifactId>
218 <version>${mvn.jaxb2.version}</version>
219 <executions>
220 <execution>
221 <phase>process-sources</phase>
222 <goals>
223 <goal>generate</goal>
224 </goals>
225 </execution>
226 </executions>
227 <configuration>
228 <schemaDirectory>target/tmp/aai_schema</schemaDirectory>
229 <generatePackage>org.onap.aai.babel.xml.generator.xsd</generatePackage>
230 <generateDirectory>target/generated-sources</generateDirectory>
231 <schemaIncludes>
232 <include>aai_schema_latest.xsd</include>
233 </schemaIncludes>
234 <extension>true</extension>
235 <args>
236 <arg>-Xannotate</arg>
237 </args>
238 <plugins>
239 <plugin>
240 <groupId>org.jvnet.jaxb2_commons</groupId>
241 <artifactId>jaxb2-basics-annotate</artifactId>
242 <version>0.6.4</version>
243 </plugin>
244 <!-- Add the dependencies with your annotations as 'plugins' below -->
245 <plugin>
246 <groupId>org.jvnet.jaxb2_commons</groupId>
247 <artifactId>jaxb2-annotate-plugin-test-annox-annotations</artifactId>
248 <version>1.0.0</version>
249 </plugin>
250 </plugins>
251 </configuration>
252 </plugin>
253 <plugin>
254 <artifactId>exec-maven-plugin</artifactId>
255 <groupId>org.codehaus.mojo</groupId>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100256 <version>1.5.0</version>
Leonard, Mark (ml401d)66b3afa2018-03-21 18:40:41 +0000257 <executions>
258 <execution><!-- Run our script to get latest xsd version -->
259 <id>Get latest xsd version</id>
260 <phase>generate-sources</phase>
261 <goals>
262 <goal>exec</goal>
263 </goals>
264 <configuration>
265 <workingDirectory>${basedir}/scripts</workingDirectory>
266 <executable>bash</executable>
267 <commandlineArgs>get-latest-xsd-version.sh ${basedir}</commandlineArgs>
268 </configuration>
269 </execution>
270 </executions>
271 </plugin>
272 <plugin>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100273 <groupId>com.mycila</groupId>
274 <artifactId>license-maven-plugin</artifactId>
275 <version>3.0</version>
Leonard, Mark (ml401d)66b3afa2018-03-21 18:40:41 +0000276 <configuration>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100277 <header>License.txt</header>
278 <includes>
279 <include>src/main/java/**</include>
280 <include>src/test/java/**</include>
281 <include>pom.xml</include>
282 </includes>
283 <skipExistingHeaders>true</skipExistingHeaders>
Leonard, Mark (ml401d)66b3afa2018-03-21 18:40:41 +0000284 </configuration>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100285 <executions>
286 <execution>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100287 <goals>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100288 <!-- Set goal from "check" to "format" to auto update license headers -->
289 <goal>check</goal>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100290 </goals>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100291 <phase>validate</phase>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100292 </execution>
293 </executions>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100294 </plugin>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100295 <plugin>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-surefire-plugin</artifactId>
298 <configuration>
299 <reuseForks>false</reuseForks>
300 <forkCount>1</forkCount>
301 <environmentVariables>
302 <APP_HOME>.</APP_HOME>
303 <CONFIG_HOME>src/test/resources</CONFIG_HOME>
304 </environmentVariables>
305 </configuration>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100306 </plugin>
307 <plugin>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-resources-plugin</artifactId>
310 <version>3.0.2</version>
311 <executions>
312 <execution>
313 <id>copy-docker-file</id>
314 <phase>package</phase>
315 <goals>
316 <goal>copy-resources</goal>
317 </goals>
318 <configuration>
319 <outputDirectory>target</outputDirectory>
320 <overwrite>true</overwrite>
321 <resources>
322 <resource>
323 <directory>${basedir}/src/main/docker</directory>
324 <filtering>true</filtering>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100325 </resource>
326 <resource>
327 <directory>${basedir}/src/main/bin/</directory>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100328 <filtering>true</filtering>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100329 </resource>
330 </resources>
331 </configuration>
332 </execution>
333 </executions>
334 </plugin>
335 <plugin>
336 <groupId>org.apache.maven.plugins</groupId>
337 <artifactId>maven-jar-plugin</artifactId>
338 <version>3.0.2</version>
339 <executions>
340 <execution>
341 <phase>package</phase>
342 <goals>
343 <goal>jar</goal>
344 </goals>
345 <configuration>
346 <classifier>client</classifier>
347 <includes>
348 <include>**/babel/service/data/*</include>
349 </includes>
350 </configuration>
351 </execution>
352 </executions>
353 </plugin>
Edwin Lawrance63370752017-10-09 11:56:05 +0100354 <plugin>
Lee, Tian (tl5884)e651abe2018-04-27 17:50:07 +0100355 <groupId>org.apache.maven.plugins</groupId>
356 <artifactId>maven-deploy-plugin</artifactId>
357 <configuration>
358 <classifier>client</classifier>
359 </configuration>
360 </plugin>
361 <plugin>
Edwin Lawrance63370752017-10-09 11:56:05 +0100362 <groupId>com.spotify</groupId>
363 <artifactId>docker-maven-plugin</artifactId>
364 <version>0.4.11</version>
Lee, Tian (tl5884)94823442018-05-29 10:45:17 +0100365 <dependencies>
366 <dependency>
367 <groupId>com.github.jnr</groupId>
368 <artifactId>jnr-unixsocket</artifactId>
369 <version>0.13</version>
370 </dependency>
371 </dependencies>
Edwin Lawrance63370752017-10-09 11:56:05 +0100372 <configuration>
373 <verbose>true</verbose>
374 <serverId>docker-hub</serverId>
mark.j.leonard1b5dfb72018-07-02 15:27:36 +0100375 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
Edwin Lawrance63370752017-10-09 11:56:05 +0100376 <dockerDirectory>${docker.location}</dockerDirectory>
377 <imageTags>
Leonard, Mark (ml401d)66b3afa2018-03-21 18:40:41 +0000378 <imageTag>latest</imageTag>
Edwin Lawrance63370752017-10-09 11:56:05 +0100379 </imageTags>
380 <forceTags>true</forceTags>
381 </configuration>
382 </plugin>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100383 </plugins>
Leonard, Mark (ml401d)66b3afa2018-03-21 18:40:41 +0000384 </build>
Edwin Lawrance1433a672017-09-22 16:55:07 +0100385
Edwin Lawrance1433a672017-09-22 16:55:07 +0100386</project>