Exclude tomcat from jersey starter
[aai/search-data-service.git] / pom.xml
1 <!--
2
3     ============LICENSE_START=======================================================
4     org.onap.aai
5     ================================================================================
6     Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
7     Copyright © 2017-2018 Amdocs
8     ================================================================================
9     Licensed under the Apache License, Version 2.0 (the "License");
10     you may not use this file except in compliance with the License.
11     You may obtain a copy of the License at
12
13           http://www.apache.org/licenses/LICENSE-2.0
14
15     Unless required by applicable law or agreed to in writing, software
16     distributed under the License is distributed on an "AS IS" BASIS,
17     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18     See the License for the specific language governing permissions and
19     limitations under the License.
20     ============LICENSE_END=========================================================
21
22 -->
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26
27     <parent>
28       <artifactId>spring-boot-starter-parent</artifactId>
29       <groupId>org.springframework.boot</groupId>
30       <version>1.5.18.RELEASE</version>
31     </parent>
32     <groupId>org.onap.aai</groupId>
33     <artifactId>search-data-service</artifactId>
34     <version>1.4.0-SNAPSHOT</version>
35     <name>aai-search-data-service</name>
36
37     <properties>
38         <docker.location>${basedir}/target</docker.location>
39         <nexusproxy>https://nexus.onap.org</nexusproxy>
40         <java.version>1.8</java.version>
41         <generatedSourceDir>${basedir}/src/main/java-gen</generatedSourceDir>
42         <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
43
44         <sonar.language>java</sonar.language>
45         <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
46         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
47         </sonar.surefire.reportsPath>
48         <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec
49         </sonar.jacoco.reportPath>
50         <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
51         <sonar.projectVersion>${project.version}</sonar.projectVersion>
52     </properties>
53
54     <dependencies>
55
56         <dependency>
57             <groupId>com.google.code.gson</groupId>
58             <artifactId>gson</artifactId>
59             <version>2.8.2</version>
60         </dependency>
61
62         <dependency>
63             <groupId>org.hamcrest</groupId>
64             <artifactId>hamcrest-library</artifactId>
65             <version>1.3</version>
66             <scope>test</scope>
67         </dependency>
68
69         <dependency>
70             <groupId>com.jayway.jsonpath</groupId>
71             <artifactId>json-path</artifactId>
72             <version>2.2.0</version>
73         </dependency>
74
75         <dependency>
76             <groupId>com.googlecode.json-simple</groupId>
77             <artifactId>json-simple</artifactId>
78             <version>1.1.1</version>
79         </dependency>
80
81         <dependency>
82             <groupId>org.dom4j</groupId>
83             <artifactId>dom4j</artifactId>
84             <version>2.1.1</version>
85             <scope>provided</scope>
86         </dependency>
87
88         <dependency>
89             <groupId>commons-io</groupId>
90             <artifactId>commons-io</artifactId>
91             <version>2.4</version>
92         </dependency>
93
94         <dependency>
95             <groupId>org.mockito</groupId>
96             <artifactId>mockito-all</artifactId>
97             <version>1.10.19</version>
98             <scope>test</scope>
99         </dependency>
100
101         <!-- Common logging framework -->
102         <dependency>
103           <groupId>org.onap.aai.logging-service</groupId>
104           <artifactId>common-logging</artifactId>
105           <version>1.2.2</version>
106         </dependency>
107
108         <dependency>
109             <groupId>org.onap.aai.logging-service</groupId>
110             <artifactId>logging-api</artifactId>
111             <version>1.2.2</version>
112         </dependency>
113
114         <dependency>
115             <groupId>org.onap.aai.logging-service</groupId>
116             <artifactId>eelf-logging</artifactId>
117             <version>1.2.2</version>
118         </dependency>
119
120         <!-- For JSON Mapping Support. -->
121         <dependency>
122             <groupId>com.fasterxml.jackson.core</groupId>
123             <artifactId>jackson-databind</artifactId>
124             <version>2.7.8</version>
125         </dependency>
126
127         <dependency>
128           <groupId>org.apache.directory.studio</groupId>
129           <artifactId>org.apache.commons.lang</artifactId>
130           <version>2.6</version>
131         </dependency>
132
133         <dependency>
134           <groupId>radeox</groupId>
135           <artifactId>radeox</artifactId>
136           <version>0.9</version>
137         </dependency>
138
139         <dependency>
140           <groupId>com.github.fge</groupId>
141           <artifactId>json-schema-validator</artifactId>
142           <version>2.0.0</version>
143         </dependency>
144
145         <dependency>
146           <groupId>org.json</groupId>
147           <artifactId>json</artifactId>
148           <version>20180130</version>
149         </dependency>
150
151         <dependency>
152           <groupId>org.springframework.boot</groupId>
153           <artifactId>spring-boot-starter-web</artifactId>
154           <exclusions>
155             <exclusion>
156               <groupId>org.springframework.boot</groupId>
157               <artifactId>spring-boot-starter-tomcat</artifactId>
158             </exclusion>
159           </exclusions>
160         </dependency>
161         
162         <dependency>
163                         <groupId>org.springframework.boot</groupId>
164                         <artifactId>spring-boot-starter-jetty</artifactId>
165                 </dependency>
166                 
167                 <dependency>
168                         <groupId>org.springframework.boot</groupId>
169                         <artifactId>spring-boot-starter</artifactId>
170                         <exclusions>
171                                 <exclusion>
172                                         <groupId>ch.qos.logback</groupId>
173                                         <artifactId>logback-classic</artifactId>
174                                 </exclusion>
175                         </exclusions>
176                 </dependency>
177                 
178                 <dependency>
179                   <groupId>org.springframework.boot</groupId>
180                   <artifactId>spring-boot-starter-jersey</artifactId>
181                   <exclusions>
182                     <exclusion>
183                       <groupId>org.springframework.boot</groupId>
184                       <artifactId>spring-boot-starter-tomcat</artifactId>
185                     </exclusion>
186                   </exclusions>
187                 </dependency>
188
189         <dependency>
190           <groupId>org.springframework.boot</groupId>
191           <artifactId>spring-boot-starter-actuator</artifactId>
192         </dependency>
193
194         <dependency>
195             <groupId>org.springframework.boot</groupId>
196             <artifactId>spring-boot-starter-test</artifactId>
197             <scope>test</scope>
198         </dependency>
199         
200         <dependency>
201             <groupId>org.springframework.boot</groupId>
202             <artifactId>spring-boot-starter-security</artifactId>
203         </dependency>
204
205         <!--Logback classic-->
206         <dependency>
207             <groupId>ch.qos.logback</groupId>
208             <artifactId>logback-classic</artifactId>
209             <version>1.2.1</version>
210         </dependency>
211
212         <dependency>
213             <groupId>ch.qos.logback</groupId>
214             <artifactId>logback-core</artifactId>
215             <version>1.2.1</version>
216         </dependency>
217
218     </dependencies>
219
220     <repositories>
221         <repository>
222             <id>central</id>
223             <name>Maven 2 repository 2</name>
224             <url>http://repo2.maven.org/maven2/</url>
225         </repository>
226         <repository>
227             <id>ecomp-releases</id>
228             <name>ECOMP Release Repository</name>
229             <url>${nexusproxy}/content/repositories/releases/</url>
230         </repository>
231         <repository>
232             <id>ecomp-snapshots</id>
233             <name>ECOMP Snapshot Repository</name>
234             <url>${nexusproxy}/content/repositories/snapshots/</url>
235         </repository>
236         <repository>
237             <id>ecomp-staging</id>
238             <name>ECOMP Staging Repository</name>
239             <url>${nexusproxy}/content/repositories/staging/</url>
240         </repository>
241     </repositories>
242
243     <build>
244         <finalName>search-data-service-package</finalName>
245       <plugins>
246             <plugin>
247           <groupId>org.springframework.boot</groupId>
248           <artifactId>spring-boot-maven-plugin</artifactId>
249         </plugin>
250             <!-- Checkstyle plugin - used to report on compliance with -->
251             <!-- the Google style guide. -->
252             <plugin>
253                 <groupId>org.apache.maven.plugins</groupId>
254                 <artifactId>maven-site-plugin</artifactId>
255                 <configuration>
256                     <reportPlugins>
257                         <plugin>
258                             <groupId>org.apache.maven.plugins</groupId>
259                             <artifactId>maven-checkstyle-plugin</artifactId>
260                             <version>2.17</version>
261                             <reportSets>
262                                 <reportSet>
263                                     <reports>
264                                         <report>checkstyle</report>
265                                     </reports>
266                                 </reportSet>
267                             </reportSets>
268                         </plugin>
269                     </reportPlugins>
270                 </configuration>
271             </plugin>
272             <!-- This plugin overrides the compiler settings to use java 1.8 -->
273             <plugin>
274                 <groupId>org.apache.maven.plugins</groupId>
275                 <artifactId>maven-compiler-plugin</artifactId>
276                 <version>3.1</version>
277                 <configuration>
278                     <compilerId>groovy-eclipse-compiler</compilerId>
279                     <verbose>true</verbose>
280                     <source>1.8</source>
281                     <target>1.8</target>
282                 </configuration>
283                 <dependencies>
284                     <dependency>
285                         <groupId>org.codehaus.groovy</groupId>
286                         <artifactId>groovy-eclipse-compiler</artifactId>
287                         <version>2.9.0-01</version>
288                     </dependency>
289                     <dependency>
290                         <groupId>org.codehaus.groovy</groupId>
291                         <artifactId>groovy-eclipse-batch</artifactId>
292                         <version>2.3.4-01</version>
293                     </dependency>
294                 </dependencies>
295             </plugin>
296             <plugin>
297                 <groupId>com.spotify</groupId>
298                 <artifactId>docker-maven-plugin</artifactId>
299                 <version>0.4.11</version>
300                 <configuration>
301                     <verbose>true</verbose>
302                     <serverId>docker-hub</serverId>
303                     <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
304                     <dockerDirectory>${docker.location}</dockerDirectory>
305                     <imageTags>
306                         <imageTag>latest</imageTag>
307                     </imageTags>
308                     <forceTags>true</forceTags>
309                 </configuration>
310             </plugin>
311             <plugin>
312                 <groupId>org.sonatype.plugins</groupId>
313                 <artifactId>nexus-staging-maven-plugin</artifactId>
314                 <version>1.6.7</version>
315                 <extensions>true</extensions>
316                 <configuration>
317                     <nexusUrl>${nexusproxy}</nexusUrl>
318                     <stagingProfileId>176c31dfe190a</stagingProfileId>
319                     <serverId>ecomp-staging</serverId>
320                 </configuration>
321             </plugin>
322
323             <!-- This plugin is used to generate Java POJO's from json format schema
324                 file. -->
325             <plugin>
326                 <groupId>org.jsonschema2pojo</groupId>
327                 <artifactId>jsonschema2pojo-maven-plugin</artifactId>
328                 <version>0.4.26</version>
329                 <configuration>
330                     <addCompileSourceRoot>true</addCompileSourceRoot>
331                     <sourceDirectory>${basedir}/src/main/resources/json/schema</sourceDirectory>
332                     <outputDirectory>${generatedSourceDir}</outputDirectory>
333                     <targetPackage>org.onap.aai.sa.rest</targetPackage>
334                 </configuration>
335                 <executions>
336                     <execution>
337                         <goals>
338                             <goal>generate</goal>
339                         </goals>
340                     </execution>
341                 </executions>
342             </plugin>
343
344             <plugin>
345                 <groupId>org.apache.maven.plugins</groupId>
346                 <artifactId>maven-resources-plugin</artifactId>
347                 <version>2.7</version>
348                 <executions>
349                     <execution>
350                         <id>copy-docker-file</id>
351                         <phase>package</phase>
352                         <goals>
353                             <goal>copy-resources</goal>
354                         </goals>
355                         <configuration>
356                             <outputDirectory>target</outputDirectory>
357                             <overwrite>true</overwrite>
358                             <resources>
359                                 <resource>
360                                     <directory>${basedir}/src/main/docker</directory>
361                                     <filtering>true</filtering>
362                                     <includes>
363                                         <include>**/*</include>
364                                     </includes>
365                                 </resource>
366                                 <resource>
367                                     <directory>${basedir}</directory>
368                                     <filtering>true</filtering>
369                                     <includes>
370                                         <include>bundleconfig-local/**</include>
371                                     </includes>
372                                 </resource>
373                                 <resource>
374                                     <directory>${basedir}/src/main/bin/</directory>
375                                 </resource>
376                             </resources>
377                         </configuration>
378                     </execution>
379                 </executions>
380             </plugin>
381             <!-- license plugin -->
382             <plugin>
383                 <groupId>com.mycila</groupId>
384                 <artifactId>license-maven-plugin</artifactId>
385                 <version>3.0</version>
386                 <configuration>
387                     <header>License.txt</header>
388                     <includes>
389                         <include>src/main/java/**</include>
390                         <include>src/test/java/**</include>
391                         <include>pom.xml</include>
392                     </includes>
393                     <skipExistingHeaders>true</skipExistingHeaders>
394                 </configuration>
395                 <executions>
396                     <execution>
397                         <goals>
398                             <goal>check</goal>
399                         </goals>
400                         <phase>validate</phase>
401                     </execution>
402                 </executions>
403             </plugin>
404
405             <plugin>
406                 <groupId>org.apache.maven.plugins</groupId>
407                 <artifactId>maven-deploy-plugin</artifactId>
408                 <configuration>
409                     <skip>true</skip>
410                 </configuration>
411             </plugin>
412             <plugin>
413                 <groupId>org.codehaus.mojo</groupId>
414                 <artifactId>sonar-maven-plugin</artifactId>
415                 <version>3.2</version>
416             </plugin>
417             <plugin>
418                 <groupId>org.jacoco</groupId>
419                 <artifactId>jacoco-maven-plugin</artifactId>
420                 <version>0.7.7.201606060606</version>
421                 <configuration>
422                     <dumpOnExit>true</dumpOnExit>
423                 </configuration>
424                 <executions>
425                     <execution>
426                         <id>jacoco-initialize-unit-tests</id>
427                         <goals>
428                             <goal>prepare-agent</goal>
429                         </goals>
430                         <configuration>
431                             <destFile>${project.build.directory}/coverage-reports/jacoco.exec
432                             </destFile>
433                             <!-- <append>true</append> -->
434                         </configuration>
435                     </execution>
436                 </executions>
437             </plugin>
438
439             <!-- This plugin adds the generated sources directory to the clean lifecycle
440                 so that automatically generated code will get cleaned up properly. -->
441             <plugin>
442                 <artifactId>maven-clean-plugin</artifactId>
443                 <version>3.0.0</version>
444                 <configuration>
445                     <filesets>
446                         <fileset>
447                             <directory>${generatedSourceDir}</directory>
448                         </fileset>
449                     </filesets>
450                 </configuration>
451             </plugin>
452         </plugins>
453     </build>
454     <distributionManagement>
455         <repository>
456             <id>ecomp-releases</id>
457             <name>ECOMP Release Repository</name>
458             <url>${nexusproxy}/content/repositories/releases/</url>
459         </repository>
460         <snapshotRepository>
461             <id>ecomp-snapshots</id>
462             <name>ECOMP Snapshot Repository</name>
463             <url>${nexusproxy}/content/repositories/snapshots/</url>
464         </snapshotRepository>
465         <site>
466             <id>ecomp-javadoc</id>
467             <url>dav:https://ecomp-nexus:8443/repository/aai/search-data-service-javadoc/${project.version}</url>
468         </site>
469     </distributionManagement>
470 </project>