Exclude tomcat from jersey starter
[aai/champ.git] / champ-service / 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"
22          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25
26     <parent>
27         <groupId>org.onap.aai</groupId>
28         <artifactId>champ</artifactId>
29         <version>1.3.1-SNAPSHOT</version>
30     </parent>
31
32     <groupId>org.onap.aai.champ</groupId>
33     <artifactId>champ-service</artifactId>
34
35     <properties>
36         <docker.location>${basedir}/target</docker.location>
37         <docker.name>champ</docker.name>
38         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
39         <common.logging.groupid>org.onap.aai.logging-service</common.logging.groupid>
40         <common.logging.version>1.2.2</common.logging.version>
41
42         <version.org.apache.commons.commons-lang3>3.7</version.org.apache.commons.commons-lang3>
43         <version.org.hamcrest.hamcrest-library>1.3</version.org.hamcrest.hamcrest-library>
44         <version.org.springframework.boot.spring-boot-dependencies>1.5.18.RELEASE</version.org.springframework.boot.spring-boot-dependencies>
45     </properties>
46
47     <dependencyManagement>
48         <dependencies>
49             <dependency>
50                 <groupId>org.springframework.boot</groupId>
51                 <artifactId>spring-boot-dependencies</artifactId>
52                 <version>${version.org.springframework.boot.spring-boot-dependencies}</version>
53                 <type>pom</type>
54                 <scope>import</scope>
55             </dependency>
56
57             <dependency>
58                 <groupId>org.apache.httpcomponents</groupId>
59                 <artifactId>httpclient</artifactId>
60                 <version>4.5.3</version>
61             </dependency>
62
63             <dependency>
64                 <groupId>org.apache.httpcomponents</groupId>
65                 <artifactId>httpclient-cache</artifactId>
66                 <version>4.5.3</version>
67             </dependency>
68         </dependencies>
69     </dependencyManagement>
70
71     <dependencies>
72         <dependency>
73             <groupId>org.springframework.boot</groupId>
74             <artifactId>spring-boot-starter-web</artifactId>
75             <exclusions>
76                 <exclusion>
77                     <groupId>org.springframework.boot</groupId>
78                     <artifactId>spring-boot-starter-tomcat</artifactId>
79                 </exclusion>
80                 <exclusion>
81                     <groupId>ch.qos.logback</groupId>
82                     <artifactId>logback-classic</artifactId>
83                 </exclusion>
84             </exclusions>
85         </dependency>
86
87         <dependency>
88             <groupId>org.springframework.boot</groupId>
89             <artifactId>spring-boot-starter-jetty</artifactId>
90         </dependency>
91
92         <dependency>
93             <groupId>org.springframework.boot</groupId>
94             <artifactId>spring-boot-starter-jersey</artifactId>
95             <exclusions>
96               <exclusion>
97                <groupId>org.springframework.boot</groupId>
98                <artifactId>spring-boot-starter-tomcat</artifactId>
99               </exclusion>
100             </exclusions>
101         </dependency>
102
103         <dependency>
104             <groupId>org.json</groupId>
105             <artifactId>json</artifactId>
106             <version>20160212</version>
107         </dependency>
108
109         <dependency>
110             <groupId>commons-io</groupId>
111             <artifactId>commons-io</artifactId>
112             <version>2.4</version>
113         </dependency>
114
115         <dependency>
116             <groupId>com.google.code.gson</groupId>
117             <artifactId>gson</artifactId>
118             <version>2.6.2</version>
119         </dependency>
120
121          <dependency>
122           <groupId>com.google.guava</groupId>
123           <artifactId>guava</artifactId>
124         </dependency>
125
126         <dependency>
127             <groupId>${common.logging.groupid}</groupId>
128             <artifactId>common-logging</artifactId>
129             <version>${common.logging.version}</version>
130             <exclusions>
131                 <exclusion>
132                     <groupId>ch.qos.logback</groupId>
133                     <artifactId>logback-classic</artifactId>
134                 </exclusion>
135                 <exclusion>
136                     <groupId>ch.qos.logback</groupId>
137                     <artifactId>logback-core</artifactId>
138                 </exclusion>
139                 <exclusion>
140                     <groupId>org.slf4j</groupId>
141                     <artifactId>slf4j-api</artifactId>
142                 </exclusion>
143             </exclusions>
144         </dependency>
145
146         <dependency>
147             <groupId>org.eclipse.persistence</groupId>
148             <artifactId>eclipselink</artifactId>
149             <version>2.6.2</version>
150         </dependency>
151
152         <dependency>
153             <groupId>org.apache.commons</groupId>
154             <artifactId>commons-lang3</artifactId>
155             <version>3.7</version>
156         </dependency>
157
158         <dependency>
159             <groupId>org.onap.aai.champ.champ-lib</groupId>
160             <artifactId>champ-core</artifactId>
161             <version>${project.version}</version>
162             <scope>compile</scope>
163             <exclusions>
164                 <exclusion>
165                     <groupId>org.apache.hbase</groupId>
166                     <artifactId>hbase-client</artifactId>
167                 </exclusion>
168                 <exclusion>
169                     <groupId>log4j</groupId>
170                     <artifactId>log4j</artifactId>
171                 </exclusion>
172                 <exclusion>
173                     <groupId>log4j</groupId>
174                     <artifactId>apache-log4j-extras</artifactId>
175                 </exclusion>
176                 <exclusion>
177                     <groupId>org.slf4j</groupId>
178                     <artifactId>slf4j-api</artifactId>
179                 </exclusion>
180             </exclusions>
181         </dependency>
182
183         <dependency>
184             <groupId>org.hamcrest</groupId>
185             <artifactId>hamcrest-library</artifactId>
186             <scope>test</scope>
187         </dependency>
188
189         <dependency>
190             <groupId>org.skyscreamer</groupId>
191             <artifactId>jsonassert</artifactId>
192             <version>1.5.0</version>
193             <scope>test</scope>
194         </dependency>
195
196         <dependency>
197             <groupId>ch.qos.logback</groupId>
198             <artifactId>logback-classic</artifactId>
199             <version>1.2.3</version>
200         </dependency>
201
202         <dependency>
203             <groupId>ch.qos.logback</groupId>
204             <artifactId>logback-core</artifactId>
205             <version>1.2.3</version>
206         </dependency>
207
208         <dependency>
209             <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
210             <artifactId>dmaapClient</artifactId>
211             <version>1.1.5</version>
212         </dependency>
213     </dependencies>
214
215     <distributionManagement>
216         <repository>
217             <id>ecomp-releases</id>
218             <name>ECOMP Release Repository</name>
219             <url>${onap.nexus.url}/content/repositories/releases/</url>
220         </repository>
221         <snapshotRepository>
222             <id>ecomp-snapshots</id>
223             <name>ECOMP Snapshot Repository</name>
224             <url>${onap.nexus.url}/content/repositories/snapshots/</url>
225         </snapshotRepository>
226     </distributionManagement>
227
228     <build>
229         <finalName>${project.artifactId}</finalName>
230         <plugins>
231             <plugin>
232                 <groupId>org.springframework.boot</groupId>
233                 <artifactId>spring-boot-maven-plugin</artifactId>
234                 <configuration>
235                     <layout>ZIP</layout>
236                 </configuration>
237                 <executions>
238                     <execution>
239                         <goals>
240                             <goal>repackage</goal>
241                         </goals>
242                     </execution>
243                 </executions>
244             </plugin>
245
246             <plugin>
247                 <groupId>org.apache.maven.plugins</groupId>
248                 <artifactId>maven-resources-plugin</artifactId>
249                 <version>2.7</version>
250                 <executions>
251                     <execution>
252                         <id>copy-docker-file</id>
253                         <phase>package</phase>
254                         <goals>
255                             <goal>copy-resources</goal>
256                         </goals>
257                         <configuration>
258                             <outputDirectory>target</outputDirectory>
259                             <overwrite>true</overwrite>
260                             <resources>
261                                 <resource>
262                                     <directory>${basedir}/src/main/docker</directory>
263                                     <filtering>true</filtering>
264                                     <includes>
265                                         <include>**/*</include>
266                                     </includes>
267                                 </resource>
268                                 <resource>
269                                     <directory>${basedir}/src/main/bin/</directory>
270                                 </resource>
271                                 <resource>
272                                     <directory>../champ-service-deps-janus/target/</directory>
273                                 </resource>
274                                 <resource>
275                                     <directory>../champ-service-deps-titan/target/</directory>
276                                 </resource>
277                                 <resource>
278                                     <directory>${basedir}</directory>
279                                     <includes>
280                                         <include>**/dynamic/**/*</include>
281                                     </includes>
282                                 </resource>
283                             </resources>
284                         </configuration>
285                     </execution>
286                 </executions>
287             </plugin>
288
289             <plugin>
290                 <groupId>com.mycila</groupId>
291                 <artifactId>license-maven-plugin</artifactId>
292                 <version>3.0</version>
293                 <configuration>
294                     <header>License.txt</header>
295                     <includes>
296                         <include>src/main/java/**</include>
297                         <include>src/test/java/**</include>
298                         <include>pom.xml</include>
299                     </includes>
300                     <skipExistingHeaders>true</skipExistingHeaders>
301                 </configuration>
302                 <executions>
303                     <execution>
304                         <goals>
305                             <!-- Set goal to "format" to auto update license headers -->
306                             <goal>check</goal>
307                         </goals>
308                         <phase>process-sources</phase>
309                     </execution>
310                 </executions>
311             </plugin>
312
313             <plugin>
314                 <groupId>com.spotify</groupId>
315                 <artifactId>docker-maven-plugin</artifactId>
316                 <version>0.4.11</version>
317                 <configuration>
318                     <verbose>true</verbose>
319                     <serverId>docker-hub</serverId>
320                     <imageName>${docker.push.registry}/onap/${docker.name}</imageName>
321                     <dockerDirectory>${docker.location}</dockerDirectory>
322                     <imageTags>
323                         <imageTag>latest</imageTag>
324                     </imageTags>
325                     <forceTags>true</forceTags>
326                 </configuration>
327             </plugin>
328
329             <plugin>
330                 <groupId>org.apache.maven.plugins</groupId>
331                 <artifactId>maven-deploy-plugin</artifactId>
332             </plugin>
333
334             <plugin>
335                 <groupId>org.sonatype.plugins</groupId>
336                 <artifactId>nexus-staging-maven-plugin</artifactId>
337             </plugin>
338
339             <plugin>
340                 <groupId>org.apache.maven.plugins</groupId>
341                 <artifactId>maven-site-plugin</artifactId>
342             </plugin>
343         </plugins>
344     </build>
345 </project>