Exclude tomcat from jersey starter
[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.3.2-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.18.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             <exclusions>
60                 <exclusion>
61                     <groupId>org.springframework.boot</groupId>
62                     <artifactId>spring-boot-starter-tomcat</artifactId>
63                 </exclusion>
64             </exclusions>
65         </dependency>
66         <dependency>
67             <groupId>org.springframework.boot</groupId>
68             <artifactId>spring-boot-starter-jetty</artifactId>
69         </dependency>
70         <dependency>
71             <groupId>org.springframework.boot</groupId>
72             <artifactId>spring-boot-starter</artifactId>
73             <exclusions>
74                 <exclusion>
75                     <groupId>ch.qos.logback</groupId>
76                     <artifactId>logback-classic</artifactId>
77                 </exclusion>
78             </exclusions>
79         </dependency>
80         <dependency>
81             <groupId>org.springframework.boot</groupId>
82             <artifactId>spring-boot-starter-jersey</artifactId>
83             <exclusions>
84                 <exclusion>
85                     <groupId>org.springframework.boot</groupId>
86                     <artifactId>spring-boot-starter-tomcat</artifactId>
87                 </exclusion>
88             </exclusions>
89         </dependency>
90         <dependency>
91             <groupId>org.springframework.boot</groupId>
92             <artifactId>spring-boot-starter-actuator</artifactId>
93         </dependency>
94         <dependency>
95             <groupId>org.springframework.boot</groupId>
96             <artifactId>spring-boot-configuration-processor</artifactId>
97             <optional>true</optional>
98         </dependency>
99         <dependency>
100             <groupId>org.springframework.boot</groupId>
101             <artifactId>spring-boot-starter-test</artifactId>
102         </dependency>
103         <dependency>
104             <groupId>org.apache.cxf</groupId>
105             <artifactId>cxf-rt-frontend-jaxrs</artifactId>
106             <version>3.2.5</version>
107         </dependency>
108
109         <!-- ONAP AAI-COMMON (incl. model) -->
110         <dependency>
111             <groupId>org.onap.aai.aai-common</groupId>
112             <artifactId>aai-schema</artifactId>
113             <version>${version.org.onap.aai.aai-common}</version>
114         </dependency>
115         <dependency>
116             <groupId>org.onap.aai.aai-common</groupId>
117             <artifactId>aai-schema-ingest</artifactId>
118             <version>${version.org.onap.aai.aai-common}</version>
119         </dependency>
120         <dependency>
121             <groupId>org.onap.aai.aai-common</groupId>
122             <artifactId>aai-core</artifactId>
123             <version>${version.org.onap.aai.aai-common}</version>
124             <exclusions>
125                 <exclusion>
126                     <groupId>*</groupId>
127                     <artifactId>*</artifactId>
128                 </exclusion>
129             </exclusions>
130         </dependency>
131         <dependency>
132             <groupId>org.onap.aai.aai-common</groupId>
133             <artifactId>aai-utils</artifactId>
134             <version>${version.org.onap.aai.aai-common}</version>
135         </dependency>
136         <dependency>
137             <groupId>org.onap.aai.aai-common</groupId>
138             <artifactId>aai-auth</artifactId>
139             <version>${version.org.onap.aai.aai-common}</version>
140         </dependency>
141
142         <!-- ONAP EVENT CLIENT -->
143         <dependency>
144             <groupId>org.onap.aai.event-client</groupId>
145             <artifactId>event-client-dmaap</artifactId>
146             <version>1.3.0</version>
147             <exclusions>
148                 <exclusion>
149                     <groupId>org.slf4j</groupId>
150                     <artifactId>slf4j-api</artifactId>
151                 </exclusion>
152             </exclusions>
153         </dependency>
154         <dependency>
155             <groupId>org.onap.aai.event-client</groupId>
156             <artifactId>event-client-kafka</artifactId>
157             <version>1.3.0</version>
158             <exclusions>
159                 <exclusion>
160                     <groupId>org.slf4j</groupId>
161                     <artifactId>slf4j-api</artifactId>
162                 </exclusion>
163             </exclusions>
164         </dependency>
165
166         <!-- ONAP COMMON LOGGING -->
167         <dependency>
168             <groupId>org.onap.aai.logging-service</groupId>
169             <artifactId>common-logging</artifactId>
170             <version>1.2.2</version>
171             <exclusions>
172                 <exclusion>
173                     <groupId>ch.qos.logback</groupId>
174                     <artifactId>logback-classic</artifactId>
175                 </exclusion>
176                 <exclusion>
177                     <groupId>ch.qos.logback</groupId>
178                     <artifactId>logback-core</artifactId>
179                 </exclusion>
180                 <exclusion>
181                     <groupId>org.slf4j</groupId>
182                     <artifactId>slf4j-api</artifactId>
183                 </exclusion>
184             </exclusions>
185         </dependency>
186
187         <!-- ONAP REST CLIENT -->
188         <dependency>
189             <groupId>org.onap.aai</groupId>
190             <artifactId>rest-client</artifactId>
191             <version>1.2.1</version>
192         </dependency>
193
194         <dependency>
195             <groupId>ch.qos.logback</groupId>
196             <artifactId>logback-classic</artifactId>
197             <version>1.2.3</version>
198         </dependency>
199         <dependency>
200             <groupId>ch.qos.logback</groupId>
201             <artifactId>logback-core</artifactId>
202             <version>1.2.3</version>
203             <exclusions>
204                 <exclusion>
205                     <groupId>ch.qos.logback</groupId>
206                     <artifactId>logback-classic</artifactId>
207                 </exclusion>
208             </exclusions>
209         </dependency>
210         <dependency>
211             <groupId>ch.qos.logback</groupId>
212             <artifactId>logback-access</artifactId>
213             <version>1.2.3</version>
214         </dependency>
215         <dependency>
216             <groupId>com.google.guava</groupId>
217             <artifactId>guava</artifactId>
218         </dependency>
219         <dependency>
220             <groupId>radeox</groupId>
221             <artifactId>radeox</artifactId>
222             <version>1.0-b2</version>
223         </dependency>
224         <dependency>
225             <groupId>org.codehaus.jackson</groupId>
226             <artifactId>jackson-mapper-asl</artifactId>
227             <version>1.4.5</version>
228         </dependency>
229         <dependency>
230             <groupId>commons-io</groupId>
231             <artifactId>commons-io</artifactId>
232             <version>2.4</version>
233         </dependency>
234         <dependency>
235             <groupId>org.apache.commons</groupId>
236             <artifactId>commons-lang3</artifactId>
237             <version>3.3.1</version>
238         </dependency>
239         <dependency>
240             <groupId>com.google.code.gson</groupId>
241             <artifactId>gson</artifactId>
242             <version>2.6.2</version>
243         </dependency>
244         <dependency>
245             <groupId>org.eclipse.persistence</groupId>
246             <artifactId>eclipselink</artifactId>
247             <version>2.6.2</version>
248         </dependency>
249         <dependency>
250             <groupId>net.dongliu</groupId>
251             <artifactId>gson-java8-datatype</artifactId>
252             <version>1.0.3</version>
253         </dependency>
254         <dependency>
255             <groupId>com.jayway.jsonpath</groupId>
256             <artifactId>json-path</artifactId>
257             <version>2.2.0</version>
258             <exclusions>
259                 <exclusion>
260                     <groupId>org.slf4j</groupId>
261                     <artifactId>slf4j-api</artifactId>
262                 </exclusion>
263             </exclusions>
264         </dependency>
265         <dependency>
266             <groupId>org.apache.tinkerpop</groupId>
267             <artifactId>gremlin-core</artifactId>
268             <version>3.2.3</version>
269             <scope>provided</scope>
270             <exclusions>
271                 <exclusion>
272                     <groupId>org.slf4j</groupId>
273                     <artifactId>slf4j-log4j12</artifactId>
274                 </exclusion>
275                 <exclusion>
276                     <groupId>org.slf4j</groupId>
277                     <artifactId>jcl-over-slf4j</artifactId>
278                 </exclusion>
279                 <exclusion>
280                     <groupId>org.slf4j</groupId>
281                     <artifactId>slf4j-api</artifactId>
282                 </exclusion>
283             </exclusions>
284         </dependency>
285         <dependency>
286             <groupId>org.apache.tinkerpop</groupId>
287             <artifactId>tinkergraph-gremlin</artifactId>
288             <version>3.2.3</version>
289             <scope>provided</scope>
290         </dependency>
291         <dependency>
292             <groupId>org.json</groupId>
293             <artifactId>json</artifactId>
294             <version>20160212</version>
295         </dependency>
296         <dependency>
297             <groupId>org.apache.httpcomponents</groupId>
298             <artifactId>httpclient</artifactId>
299             <version>4.5.3</version>
300         </dependency>
301         <dependency>
302             <groupId>org.apache.httpcomponents</groupId>
303             <artifactId>httpcore</artifactId>
304             <version>4.4.1</version>
305         </dependency>
306
307         <!-- TEST DEPENDENCIES -->
308         <dependency>
309             <groupId>junit</groupId>
310             <artifactId>junit</artifactId>
311         </dependency>
312         <dependency>
313             <groupId>org.skyscreamer</groupId>
314             <artifactId>jsonassert</artifactId>
315             <version>1.5.0</version>
316             <scope>test</scope>
317         </dependency>
318         <dependency>
319             <groupId>org.mockito</groupId>
320             <artifactId>mockito-core</artifactId>
321             <version>1.10.19</version>
322             <scope>test</scope>
323             <exclusions>
324                 <exclusion>
325                     <groupId>org.hamcrest</groupId>
326                     <artifactId>hamcrest-library</artifactId>
327                 </exclusion>
328             </exclusions>
329         </dependency>
330     </dependencies>
331
332     <build>
333         <finalName>${project.artifactId}</finalName>
334         <plugins>
335             <plugin>
336                 <groupId>org.apache.maven.plugins</groupId>
337                 <artifactId>maven-resources-plugin</artifactId>
338                 <version>2.7</version>
339                 <executions>
340                     <execution>
341                         <id>copy-docker-file</id>
342                         <phase>package</phase>
343                         <goals>
344                             <goal>copy-resources</goal>
345                         </goals>
346                         <configuration>
347                             <outputDirectory>target</outputDirectory>
348                             <overwrite>true</overwrite>
349                             <resources>
350                                 <resource>
351                                     <directory>${basedir}/src/main/docker</directory>
352                                     <filtering>true</filtering>
353                                     <includes>
354                                         <include>**/*</include>
355                                     </includes>
356                                 </resource>
357                                 <resource>
358                                     <directory>${basedir}</directory>
359                                     <filtering>true</filtering>
360                                     <includes>
361                                         <include>bundleconfig-local/**</include>
362                                     </includes>
363                                 </resource>
364                                 <resource>
365                                     <directory>${basedir}/src/main/bin/</directory>
366                                 </resource>
367                             </resources>
368                         </configuration>
369                     </execution>
370                 </executions>
371             </plugin>
372
373             <plugin>
374                 <groupId>com.spotify</groupId>
375                 <artifactId>docker-maven-plugin</artifactId>
376                 <version>0.4.11</version>
377                 <configuration>
378                     <verbose>true</verbose>
379                     <serverId>docker-hub</serverId>
380                     <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
381                     <dockerDirectory>${docker.location}</dockerDirectory>
382                     <imageTags>
383                         <imageTag>latest</imageTag>
384                     </imageTags>
385                     <forceTags>true</forceTags>
386                 </configuration>
387             </plugin>
388
389             <!-- license plugin -->
390             <!-- Uncomment this to add a license header to every source file -->
391             <plugin>
392                 <groupId>com.mycila</groupId>
393                 <artifactId>license-maven-plugin</artifactId>
394                 <version>3.0</version>
395                 <configuration>
396                     <header>License.txt</header>
397                     <includes>
398                         <include>src/main/java/**</include>
399                         <include>src/test/java/**</include>
400                         <include>pom.xml</include>
401                     </includes>
402                     <skipExistingHeaders>true</skipExistingHeaders>
403                 </configuration>
404                 <executions>
405                     <execution>
406                         <goals>
407                             <!-- Set goal from "check" to "format" to auto update license headers -->
408                             <goal>check</goal>
409                         </goals>
410                         <phase>process-sources</phase>
411                     </execution>
412                 </executions>
413             </plugin>
414
415             <plugin>
416                 <groupId>org.apache.maven.plugins</groupId>
417                 <artifactId>maven-site-plugin</artifactId>
418                 <version>3.3</version>
419                 <configuration>
420                     <reportPlugins>
421                         <plugin>
422                             <groupId>org.apache.maven.plugins</groupId>
423                             <artifactId>maven-checkstyle-plugin</artifactId>
424                             <version>2.17</version>
425                             <reportSets>
426                                 <reportSet>
427                                     <reports>
428                                         <report>checkstyle</report>
429                                     </reports>
430                                 </reportSet>
431                             </reportSets>
432                         </plugin>
433                     </reportPlugins>
434                 </configuration>
435             </plugin>
436             <plugin>
437                 <groupId>org.apache.maven.plugins</groupId>
438                 <artifactId>maven-deploy-plugin</artifactId>
439                 <configuration>
440                     <skip>true</skip>
441                 </configuration>
442             </plugin>
443             <plugin>
444                 <groupId>org.springframework.boot</groupId>
445                 <artifactId>spring-boot-maven-plugin</artifactId>
446                 <version>2.0.1.RELEASE</version>
447                 <executions>
448                     <execution>
449                         <goals>
450                             <goal>repackage</goal>
451                         </goals>
452                     </execution>
453                 </executions>
454             </plugin>
455             <plugin>
456                 <groupId>org.apache.maven.plugins</groupId>
457                 <artifactId>maven-dependency-plugin</artifactId>
458                 <executions>
459                     <execution>
460                         <id>unpack</id>
461                         <phase>prepare-package</phase>
462                         <goals>
463                             <goal>unpack</goal>
464                         </goals>
465                         <configuration>
466                             <artifactItems>
467                                 <artifactItem>
468                                     <groupId>org.onap.aai.aai-common</groupId>
469                                     <artifactId>aai-schema</artifactId>
470                                     <version>${version.org.onap.aai.aai-common}</version>
471                                     <type>jar</type>
472                                     <includes>oxm/</includes>
473                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
474                                 </artifactItem>
475                                 <artifactItem>
476                                     <groupId>org.onap.aai.aai-common</groupId>
477                                     <artifactId>aai-core</artifactId>
478                                     <version>${version.org.onap.aai.aai-common}</version>
479                                     <type>jar</type>
480                                     <includes>dbedgerules/</includes>
481                                     <excludes>**/*.ftlh</excludes>
482                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
483                                 </artifactItem>
484                             </artifactItems>
485                         </configuration>
486                     </execution>
487                 </executions>
488             </plugin>
489         </plugins>
490     </build>
491
492     <distributionManagement>
493         <site>
494             <id>ecomp-javadoc</id>
495             <url>dav:https://ecomp-nexus:8443/repository/aai/gizmo-javadoc/${project.version}</url>
496         </site>
497     </distributionManagement>
498 </project>