Exclude tomcat from web starter
[aai/model-loader.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     ============LICENSE_START=======================================================
4     org.onap.aai
5     ================================================================================
6     Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
7     Copyright © 2017-2018 European Software Marketing Ltd.
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 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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.model-loader</groupId>
33         <artifactId>model-loader</artifactId>
34         <name>aai-model-loader</name>
35         <version>1.3.2-SNAPSHOT</version>
36
37         <dependencyManagement>
38                 <dependencies>
39                         <dependency>
40                                 <groupId>org.springframework.boot</groupId>
41                                 <artifactId>spring-boot-dependencies</artifactId>
42                                 <version>${spring-boot.version}</version>
43                                 <type>pom</type>
44                                 <scope>import</scope>
45                         </dependency>
46                 </dependencies>
47         </dependencyManagement>
48
49         <properties>
50                 <start-class>org.onap.aai.modelloader.service.ModelLoaderApplication</start-class>
51                 <nexusproxy>https://nexus.onap.org</nexusproxy>
52                 <docker.location>${basedir}/target</docker.location>
53                 <spring-boot.version>1.5.18.RELEASE</spring-boot.version>
54                 <apache.commons-text.version>1.1</apache.commons-text.version>
55                 <commons-compress.version>1.18</commons-compress.version>
56                 <hamcrest-all.version>1.3</hamcrest-all.version>
57                 <babel.version>1.2.0</babel.version>
58                 <aai.rest.client.version>1.2.1</aai.rest.client.version>
59                 <sdc-distribution-client.version>1.3.0</sdc-distribution-client.version>
60                 <logback.version>1.2.3</logback.version>
61         </properties>
62
63     <distributionManagement>
64         <repository>
65             <id>ecomp-releases</id>
66             <name>ECOMP Release Repository</name>
67             <url>${nexusproxy}/content/repositories/releases/</url>
68         </repository>
69         <snapshotRepository>
70             <id>ecomp-snapshots</id>
71             <name>ECOMP Snapshot Repository</name>
72             <url>${nexusproxy}/content/repositories/snapshots/</url>
73         </snapshotRepository>
74     </distributionManagement>
75
76         <dependencies>
77                 <dependency>
78                         <groupId>org.springframework.boot</groupId>
79                         <artifactId>spring-boot-starter-jetty</artifactId>
80                 </dependency>
81                 <dependency>
82                         <groupId>org.springframework.boot</groupId>
83                         <artifactId>spring-boot-starter-web</artifactId>
84                         <exclusions>
85                                 <exclusion>
86                                         <groupId>org.springframework.boot</groupId>
87                                         <artifactId>spring-boot-starter-tomcat</artifactId>
88                                 </exclusion>
89                         </exclusions>
90                 </dependency>
91                 <dependency>
92                         <groupId>org.onap.aai</groupId>
93                         <artifactId>babel</artifactId>
94                         <version>${babel.version}</version>
95                         <classifier>client</classifier>
96                         <exclusions>
97                                 <exclusion>
98                                         <groupId>*</groupId>
99                                         <artifactId>*</artifactId>
100                                 </exclusion>
101                         </exclusions>
102                 </dependency>
103                 <dependency>
104                         <groupId>org.glassfish.jersey.core</groupId>
105                         <artifactId>jersey-common</artifactId>
106                         <scope>test</scope>
107                 </dependency>
108                 <dependency>
109                         <groupId>org.onap.aai</groupId>
110                         <artifactId>rest-client</artifactId>
111                         <version>${aai.rest.client.version}</version>
112                 </dependency>
113                 <dependency>
114                         <groupId>com.google.code.gson</groupId>
115                         <artifactId>gson</artifactId>
116                 </dependency>
117
118                 <!-- Test dependencies -->
119                 <!-- https://mvnrepository.com/artifact/com.mikesamuel/json-sanitizer -->
120                 <dependency>
121                         <groupId>com.mikesamuel</groupId>
122                         <artifactId>json-sanitizer</artifactId>
123                         <version>1.2.0</version>
124                 </dependency>
125
126                 <!-- Common logging framework -->
127                 <dependency>
128                         <groupId>org.onap.aai.logging-service</groupId>
129                         <artifactId>common-logging</artifactId>
130                         <version>1.2.2</version>
131                 </dependency>
132                 <dependency>
133                         <groupId>ch.qos.logback</groupId>
134                         <artifactId>logback-classic</artifactId>
135                         <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
136                 </dependency>
137                 <dependency>
138                         <groupId>ch.qos.logback</groupId>
139                         <artifactId>logback-core</artifactId>
140                         <version>${logback.version}</version><!--$NO-MVN-MAN-VER$-->
141                 </dependency>
142                 <dependency>
143                         <groupId>org.onap.sdc.sdc-distribution-client</groupId>
144                         <artifactId>sdc-distribution-client</artifactId>
145                         <version>${sdc-distribution-client.version}</version>
146                 </dependency>
147                 <dependency>
148                         <groupId>org.json</groupId>
149                         <artifactId>json</artifactId>
150                         <version>20131018</version><!--$NO-MVN-MAN-VER$ -->
151                 </dependency>
152                 <dependency>
153                         <groupId>org.eclipse.jetty</groupId>
154                         <artifactId>jetty-security</artifactId>
155                 </dependency>
156                 <dependency>
157                         <groupId>jline</groupId>
158                         <artifactId>jline</artifactId>
159                         <version>2.12.1</version>
160                 </dependency>
161                 <dependency>
162                         <groupId>org.apache.commons</groupId>
163                         <artifactId>commons-compress</artifactId>
164                         <version>${commons-compress.version}</version>
165                 </dependency>
166                 <dependency>
167                         <groupId>commons-io</groupId>
168                         <artifactId>commons-io</artifactId>
169                         <version>2.4</version>
170                 </dependency>
171                 <dependency>
172                         <groupId>org.apache.commons</groupId>
173                         <artifactId>commons-text</artifactId>
174                         <version>${apache.commons-text.version}</version>
175                 </dependency>
176
177         <!-- Test dependencies -->
178         <dependency>
179             <groupId>junit</groupId>
180             <artifactId>junit</artifactId>
181             <scope>test</scope>
182         </dependency>
183         <dependency>
184             <groupId>org.hamcrest</groupId>
185             <artifactId>hamcrest-all</artifactId>
186             <version>${hamcrest-all.version}</version>
187             <scope>test</scope>
188         </dependency>
189         <dependency>
190             <groupId>org.mockito</groupId>
191             <artifactId>mockito-core</artifactId>
192             <scope>test</scope>
193         </dependency>
194         <dependency>
195             <groupId>org.springframework.boot</groupId>
196             <artifactId>spring-boot-starter-test</artifactId>
197             <scope>test</scope>
198         </dependency>
199         </dependencies>
200
201     <!-- Plugins and repositories -->
202     <pluginRepositories>
203         <pluginRepository>
204             <id>central</id>
205             <url>http://repo1.maven.org/maven2</url>
206         </pluginRepository>
207         <pluginRepository>
208             <id>EvoSuite</id>
209             <name>EvoSuite Repository</name>
210             <url>http://www.evosuite.org/m2</url>
211         </pluginRepository>
212     </pluginRepositories>
213
214     <repositories>
215         <repository>
216             <id>central</id>
217             <name>Maven 2 repository 2</name>
218             <url>http://repo2.maven.org/maven2/</url>
219         </repository>
220         <repository>
221             <id>ecomp-releases</id>
222             <name>ECOMP Release Repository</name>
223             <url>${nexusproxy}/content/repositories/releases/</url>
224         </repository>
225         <repository>
226             <id>ecomp-snapshots</id>
227             <name>ECOMP Snapshot Repository</name>
228             <url>${nexusproxy}/content/repositories/snapshots/</url>
229         </repository>
230         <repository>
231             <id>ecomp-staging</id>
232             <name>ECOMP Staging Repository</name>
233             <url>${nexusproxy}/content/repositories/staging/</url>
234         </repository>
235     </repositories>
236
237         <build>
238                 <finalName>model-loader</finalName>
239                 <plugins>
240                         <plugin>
241                                 <groupId>org.springframework.boot</groupId>
242                                 <artifactId>spring-boot-maven-plugin</artifactId>
243                                 <version>${spring-boot.version}</version>
244                                 <configuration>
245                                         <executable>true</executable>
246                                 </configuration>
247                                 <executions>
248                                         <execution>
249                                                 <goals>
250                                                         <goal>repackage</goal>
251                                                 </goals>
252                                         </execution>
253                                 </executions>
254                         </plugin>
255                         <plugin>
256                                 <groupId>org.apache.maven.plugins</groupId>
257                                 <artifactId>maven-resources-plugin</artifactId>
258                                 <version>2.7</version>
259                                 <executions>
260                                         <execution>
261                                                 <id>copy-docker-file</id>
262                                                 <phase>package</phase>
263                                                 <goals>
264                                                         <goal>copy-resources</goal>
265                                                 </goals>
266                                                 <configuration>
267                                                         <outputDirectory>target</outputDirectory>
268                                                         <overwrite>true</overwrite>
269                                                         <resources>
270                                                                 <resource>
271                                                                         <directory>${basedir}/src/main/docker</directory>
272                                                                         <filtering>true</filtering>
273                                                                         <includes>
274                                                                                 <include>**/*</include>
275                                                                         </includes>
276                                                                 </resource>
277                                                                 <resource>
278                                                                         <directory>${basedir}/src/main/bin/</directory>
279                                                                 </resource>
280                                                         </resources>
281                                                 </configuration>
282                                         </execution>
283                                 </executions>
284                         </plugin>
285             <plugin>
286                 <groupId>com.mycila</groupId>
287                 <artifactId>license-maven-plugin</artifactId>
288                 <version>3.0</version>
289                 <configuration>
290                     <header>License.txt</header>
291                     <includes>
292                         <include>src/main/java/**</include>
293                         <include>src/test/java/**</include>
294                         <include>version/properties</include>
295                         <include>pom.xml</include>
296                     </includes>
297                     <skipExistingHeaders>true</skipExistingHeaders>
298                 </configuration>
299                 <executions>
300                     <execution>
301                         <goals>
302                             <!-- Set goal to "format" to auto update license headers -->
303                             <goal>check</goal>
304                         </goals>
305                         <phase>process-sources</phase>
306                     </execution>
307                 </executions>
308             </plugin>
309                         <plugin>
310                                 <groupId>com.spotify</groupId>
311                                 <artifactId>docker-maven-plugin</artifactId>
312                                 <version>0.4.11</version>
313                                 <configuration>
314                                         <verbose>true</verbose>
315                                         <serverId>docker-hub</serverId>
316                                         <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
317                                         <dockerDirectory>${docker.location}</dockerDirectory>
318                                         <imageTags>
319                                                 <imageTag>latest</imageTag>
320                                         </imageTags>
321                                         <forceTags>true</forceTags>
322                                 </configuration>
323                         </plugin>
324                         <plugin>
325                                 <groupId>org.apache.maven.plugins</groupId>
326                                 <artifactId>maven-deploy-plugin</artifactId>
327                                 <configuration>
328                                         <skip>true</skip>
329                                 </configuration>
330                         </plugin>
331                 </plugins>
332         </build>
333 </project>