Upversion to 1.4.0 - Dublin branch
[aai/gizmo.git] / pom.xml
1 <!--
2 ============LICENSE_START=======================================================
3 org.onap.aai
4 ================================================================================
5 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 Copyright © 2017-2018 Amdocs
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12       http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20 -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24
25     <parent>
26         <groupId>org.onap.oparent</groupId>
27         <artifactId>oparent</artifactId>
28         <version>1.2.0</version>
29         <relativePath />
30     </parent>
31
32     <groupId>org.onap.aai.gizmo</groupId>
33     <artifactId>gizmo</artifactId>
34     <version>1.4.0-SNAPSHOT</version>
35     <name>aai-gizmo</name>
36
37     <properties>
38         <docker.location>${basedir}/target</docker.location>
39         <version.org.onap.aai.aai-common>1.2.4</version.org.onap.aai.aai-common>
40     </properties>
41
42     <dependencyManagement>
43         <dependencies>
44             <dependency>
45                 <!-- Import dependency management from Spring Boot -->
46                 <groupId>org.springframework.boot</groupId>
47                 <artifactId>spring-boot-dependencies</artifactId>
48                 <version>1.5.15.RELEASE</version>
49                 <type>pom</type>
50                 <scope>import</scope>
51             </dependency>
52         </dependencies>
53     </dependencyManagement>
54
55     <dependencies>
56         <dependency>
57             <groupId>org.springframework.boot</groupId>
58             <artifactId>spring-boot-starter-web</artifactId>
59         </dependency>
60         <dependency>
61             <groupId>org.springframework.boot</groupId>
62             <artifactId>spring-boot-starter-jetty</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>org.springframework.boot</groupId>
66             <artifactId>spring-boot-starter</artifactId>
67             <exclusions>
68                 <exclusion>
69                     <groupId>ch.qos.logback</groupId>
70                     <artifactId>logback-classic</artifactId>
71                 </exclusion>
72             </exclusions>
73         </dependency>
74         <dependency>
75             <groupId>org.springframework.boot</groupId>
76             <artifactId>spring-boot-starter-jersey</artifactId>
77         </dependency>
78         <dependency>
79             <groupId>org.springframework.boot</groupId>
80             <artifactId>spring-boot-starter-actuator</artifactId>
81         </dependency>
82         <dependency>
83             <groupId>org.springframework.boot</groupId>
84             <artifactId>spring-boot-configuration-processor</artifactId>
85             <optional>true</optional>
86         </dependency>
87         <dependency>
88             <groupId>org.springframework.boot</groupId>
89             <artifactId>spring-boot-starter-test</artifactId>
90         </dependency>
91         <dependency>
92             <groupId>org.apache.cxf</groupId>
93             <artifactId>cxf-rt-frontend-jaxrs</artifactId>
94             <version>3.2.5</version>
95         </dependency>
96
97         <!-- ONAP AAI-COMMON (incl. model) -->
98         <dependency>
99             <groupId>org.onap.aai.aai-common</groupId>
100             <artifactId>aai-schema</artifactId>
101             <version>${version.org.onap.aai.aai-common}</version>
102         </dependency>
103         <dependency>
104             <groupId>org.onap.aai.aai-common</groupId>
105             <artifactId>aai-schema-ingest</artifactId>
106             <version>${version.org.onap.aai.aai-common}</version>
107         </dependency>
108         <dependency>
109             <groupId>org.onap.aai.aai-common</groupId>
110             <artifactId>aai-core</artifactId>
111             <version>${version.org.onap.aai.aai-common}</version>
112             <exclusions>
113                 <exclusion>
114                     <groupId>*</groupId>
115                     <artifactId>*</artifactId>
116                 </exclusion>
117             </exclusions>
118         </dependency>
119         <dependency>
120             <groupId>org.onap.aai.aai-common</groupId>
121             <artifactId>aai-utils</artifactId>
122             <version>${version.org.onap.aai.aai-common}</version>
123         </dependency>
124         <dependency>
125             <groupId>org.onap.aai.aai-common</groupId>
126             <artifactId>aai-auth</artifactId>
127             <version>${version.org.onap.aai.aai-common}</version>
128         </dependency>
129
130         <!-- ONAP EVENT CLIENT -->
131         <dependency>
132             <groupId>org.onap.aai.event-client</groupId>
133             <artifactId>event-client-dmaap</artifactId>
134             <version>1.3.0</version>
135             <exclusions>
136                 <exclusion>
137                     <groupId>org.slf4j</groupId>
138                     <artifactId>slf4j-api</artifactId>
139                 </exclusion>
140             </exclusions>
141         </dependency>
142         <dependency>
143             <groupId>org.onap.aai.event-client</groupId>
144             <artifactId>event-client-kafka</artifactId>
145             <version>1.3.0</version>
146             <exclusions>
147                 <exclusion>
148                     <groupId>org.slf4j</groupId>
149                     <artifactId>slf4j-api</artifactId>
150                 </exclusion>
151             </exclusions>
152         </dependency>
153
154         <!-- ONAP COMMON LOGGING -->
155         <dependency>
156             <groupId>org.onap.aai.logging-service</groupId>
157             <artifactId>common-logging</artifactId>
158             <version>1.2.2</version>
159             <exclusions>
160                 <exclusion>
161                     <groupId>ch.qos.logback</groupId>
162                     <artifactId>logback-classic</artifactId>
163                 </exclusion>
164                 <exclusion>
165                     <groupId>ch.qos.logback</groupId>
166                     <artifactId>logback-core</artifactId>
167                 </exclusion>
168                 <exclusion>
169                     <groupId>org.slf4j</groupId>
170                     <artifactId>slf4j-api</artifactId>
171                 </exclusion>
172             </exclusions>
173         </dependency>
174
175         <!-- ONAP REST CLIENT -->
176         <dependency>
177             <groupId>org.onap.aai</groupId>
178             <artifactId>rest-client</artifactId>
179             <version>1.2.1</version>
180         </dependency>
181
182         <dependency>
183             <groupId>ch.qos.logback</groupId>
184             <artifactId>logback-classic</artifactId>
185             <version>1.2.3</version>
186         </dependency>
187         <dependency>
188             <groupId>ch.qos.logback</groupId>
189             <artifactId>logback-core</artifactId>
190             <version>1.2.3</version>
191             <exclusions>
192                 <exclusion>
193                     <groupId>ch.qos.logback</groupId>
194                     <artifactId>logback-classic</artifactId>
195                 </exclusion>
196             </exclusions>
197         </dependency>
198         <dependency>
199             <groupId>ch.qos.logback</groupId>
200             <artifactId>logback-access</artifactId>
201             <version>1.2.3</version>
202         </dependency>
203         <dependency>
204             <groupId>com.google.guava</groupId>
205             <artifactId>guava</artifactId>
206         </dependency>
207         <dependency>
208             <groupId>radeox</groupId>
209             <artifactId>radeox</artifactId>
210             <version>1.0-b2</version>
211         </dependency>
212         <dependency>
213             <groupId>org.codehaus.jackson</groupId>
214             <artifactId>jackson-mapper-asl</artifactId>
215             <version>1.4.5</version>
216         </dependency>
217         <dependency>
218             <groupId>commons-io</groupId>
219             <artifactId>commons-io</artifactId>
220             <version>2.4</version>
221         </dependency>
222         <dependency>
223             <groupId>org.apache.commons</groupId>
224             <artifactId>commons-lang3</artifactId>
225             <version>3.3.1</version>
226         </dependency>
227         <dependency>
228             <groupId>com.google.code.gson</groupId>
229             <artifactId>gson</artifactId>
230             <version>2.6.2</version>
231         </dependency>
232         <dependency>
233             <groupId>org.eclipse.persistence</groupId>
234             <artifactId>eclipselink</artifactId>
235             <version>2.6.2</version>
236         </dependency>
237         <dependency>
238             <groupId>net.dongliu</groupId>
239             <artifactId>gson-java8-datatype</artifactId>
240             <version>1.0.3</version>
241         </dependency>
242         <dependency>
243             <groupId>com.jayway.jsonpath</groupId>
244             <artifactId>json-path</artifactId>
245             <version>2.2.0</version>
246             <exclusions>
247                 <exclusion>
248                     <groupId>org.slf4j</groupId>
249                     <artifactId>slf4j-api</artifactId>
250                 </exclusion>
251             </exclusions>
252         </dependency>
253         <dependency>
254             <groupId>org.apache.tinkerpop</groupId>
255             <artifactId>gremlin-core</artifactId>
256             <version>3.2.3</version>
257             <scope>provided</scope>
258             <exclusions>
259                 <exclusion>
260                     <groupId>org.slf4j</groupId>
261                     <artifactId>slf4j-log4j12</artifactId>
262                 </exclusion>
263                 <exclusion>
264                     <groupId>org.slf4j</groupId>
265                     <artifactId>jcl-over-slf4j</artifactId>
266                 </exclusion>
267                 <exclusion>
268                     <groupId>org.slf4j</groupId>
269                     <artifactId>slf4j-api</artifactId>
270                 </exclusion>
271             </exclusions>
272         </dependency>
273         <dependency>
274             <groupId>org.apache.tinkerpop</groupId>
275             <artifactId>tinkergraph-gremlin</artifactId>
276             <version>3.2.3</version>
277             <scope>provided</scope>
278         </dependency>
279         <dependency>
280             <groupId>org.json</groupId>
281             <artifactId>json</artifactId>
282             <version>20160212</version>
283         </dependency>
284         <dependency>
285             <groupId>org.apache.httpcomponents</groupId>
286             <artifactId>httpclient</artifactId>
287             <version>4.5.3</version>
288         </dependency>
289         <dependency>
290             <groupId>org.apache.httpcomponents</groupId>
291             <artifactId>httpcore</artifactId>
292             <version>4.4.1</version>
293         </dependency>
294
295         <!-- TEST DEPENDENCIES -->
296         <dependency>
297             <groupId>junit</groupId>
298             <artifactId>junit</artifactId>
299         </dependency>
300         <dependency>
301             <groupId>org.skyscreamer</groupId>
302             <artifactId>jsonassert</artifactId>
303             <version>1.5.0</version>
304             <scope>test</scope>
305         </dependency>
306         <dependency>
307             <groupId>org.mockito</groupId>
308             <artifactId>mockito-core</artifactId>
309             <version>1.10.19</version>
310             <scope>test</scope>
311             <exclusions>
312                 <exclusion>
313                     <groupId>org.hamcrest</groupId>
314                     <artifactId>hamcrest-library</artifactId>
315                 </exclusion>
316             </exclusions>
317         </dependency>
318     </dependencies>
319
320     <build>
321         <finalName>${project.artifactId}</finalName>
322         <plugins>
323             <plugin>
324                 <groupId>org.apache.maven.plugins</groupId>
325                 <artifactId>maven-resources-plugin</artifactId>
326                 <version>2.7</version>
327                 <executions>
328                     <execution>
329                         <id>copy-docker-file</id>
330                         <phase>package</phase>
331                         <goals>
332                             <goal>copy-resources</goal>
333                         </goals>
334                         <configuration>
335                             <outputDirectory>target</outputDirectory>
336                             <overwrite>true</overwrite>
337                             <resources>
338                                 <resource>
339                                     <directory>${basedir}/src/main/docker</directory>
340                                     <filtering>true</filtering>
341                                     <includes>
342                                         <include>**/*</include>
343                                     </includes>
344                                 </resource>
345                                 <resource>
346                                     <directory>${basedir}</directory>
347                                     <filtering>true</filtering>
348                                     <includes>
349                                         <include>bundleconfig-local/**</include>
350                                     </includes>
351                                 </resource>
352                                 <resource>
353                                     <directory>${basedir}/src/main/bin/</directory>
354                                 </resource>
355                             </resources>
356                         </configuration>
357                     </execution>
358                 </executions>
359             </plugin>
360
361             <plugin>
362                 <groupId>com.spotify</groupId>
363                 <artifactId>docker-maven-plugin</artifactId>
364                 <version>0.4.11</version>
365                 <configuration>
366                     <verbose>true</verbose>
367                     <serverId>docker-hub</serverId>
368                     <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
369                     <dockerDirectory>${docker.location}</dockerDirectory>
370                     <imageTags>
371                         <imageTag>latest</imageTag>
372                     </imageTags>
373                     <forceTags>true</forceTags>
374                 </configuration>
375             </plugin>
376
377             <!-- license plugin -->
378             <!-- Uncomment this to add a license header to every source file -->
379             <plugin>
380                 <groupId>com.mycila</groupId>
381                 <artifactId>license-maven-plugin</artifactId>
382                 <version>3.0</version>
383                 <configuration>
384                     <header>License.txt</header>
385                     <includes>
386                         <include>src/main/java/**</include>
387                         <include>src/test/java/**</include>
388                         <include>pom.xml</include>
389                     </includes>
390                     <skipExistingHeaders>true</skipExistingHeaders>
391                 </configuration>
392                 <executions>
393                     <execution>
394                         <goals>
395                             <!-- Set goal from "check" to "format" to auto update license headers -->
396                             <goal>check</goal>
397                         </goals>
398                         <phase>process-sources</phase>
399                     </execution>
400                 </executions>
401             </plugin>
402
403             <plugin>
404                 <groupId>org.apache.maven.plugins</groupId>
405                 <artifactId>maven-site-plugin</artifactId>
406                 <version>3.3</version>
407                 <configuration>
408                     <reportPlugins>
409                         <plugin>
410                             <groupId>org.apache.maven.plugins</groupId>
411                             <artifactId>maven-checkstyle-plugin</artifactId>
412                             <version>2.17</version>
413                             <reportSets>
414                                 <reportSet>
415                                     <reports>
416                                         <report>checkstyle</report>
417                                     </reports>
418                                 </reportSet>
419                             </reportSets>
420                         </plugin>
421                     </reportPlugins>
422                 </configuration>
423             </plugin>
424             <plugin>
425                 <groupId>org.apache.maven.plugins</groupId>
426                 <artifactId>maven-deploy-plugin</artifactId>
427                 <configuration>
428                     <skip>true</skip>
429                 </configuration>
430             </plugin>
431             <plugin>
432                 <groupId>org.springframework.boot</groupId>
433                 <artifactId>spring-boot-maven-plugin</artifactId>
434                 <version>2.0.1.RELEASE</version>
435                 <executions>
436                     <execution>
437                         <goals>
438                             <goal>repackage</goal>
439                         </goals>
440                     </execution>
441                 </executions>
442             </plugin>
443             <plugin>
444                 <groupId>org.apache.maven.plugins</groupId>
445                 <artifactId>maven-dependency-plugin</artifactId>
446                 <executions>
447                     <execution>
448                         <id>unpack</id>
449                         <phase>prepare-package</phase>
450                         <goals>
451                             <goal>unpack</goal>
452                         </goals>
453                         <configuration>
454                             <artifactItems>
455                                 <artifactItem>
456                                     <groupId>org.onap.aai.aai-common</groupId>
457                                     <artifactId>aai-schema</artifactId>
458                                     <version>${version.org.onap.aai.aai-common}</version>
459                                     <type>jar</type>
460                                     <includes>oxm/</includes>
461                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
462                                 </artifactItem>
463                                 <artifactItem>
464                                     <groupId>org.onap.aai.aai-common</groupId>
465                                     <artifactId>aai-core</artifactId>
466                                     <version>${version.org.onap.aai.aai-common}</version>
467                                     <type>jar</type>
468                                     <includes>dbedgerules/</includes>
469                                     <excludes>**/*.ftlh</excludes>
470                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
471                                 </artifactItem>
472                             </artifactItems>
473                         </configuration>
474                     </execution>
475                 </executions>
476             </plugin>
477         </plugins>
478     </build>
479
480     <distributionManagement>
481         <site>
482             <id>ecomp-javadoc</id>
483             <url>dav:https://ecomp-nexus:8443/repository/aai/gizmo-javadoc/${project.version}</url>
484         </site>
485     </distributionManagement>
486 </project>