Merge "Increase code coverage to 55% for Dublin"
[aai/spike.git] / pom.xml
1 <?xml version="1.0"?>
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 <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</groupId>
33     <artifactId>spike</artifactId>
34     <version>1.4.0-SNAPSHOT</version>
35     <name>aai-spike</name>
36
37     <properties>
38         <docker.location>${basedir}/target</docker.location>
39         <event.client.version>1.4.0-SNAPSHOT</event.client.version>
40         <version.aai-schema>1.4.1-SNAPSHOT</version.aai-schema>
41         <version.aai-schema-ingest>1.4.1-SNAPSHOT</version.aai-schema-ingest>
42     </properties>
43
44     <dependencyManagement>
45         <dependencies>
46             <dependency>
47                 <!-- Import dependency management from Spring Boot -->
48                 <groupId>org.springframework.boot</groupId>
49                 <artifactId>spring-boot-dependencies</artifactId>
50                 <version>1.5.17.RELEASE</version>
51                 <type>pom</type>
52                 <scope>import</scope>
53             </dependency>
54         </dependencies>
55     </dependencyManagement>
56
57     <dependencies>
58         <dependency>
59             <groupId>org.springframework.boot</groupId>
60             <artifactId>spring-boot-starter-web</artifactId>
61             <exclusions>
62                 <exclusion>
63                     <groupId>org.springframework.boot</groupId>
64                     <artifactId>spring-boot-starter-tomcat</artifactId>
65                 </exclusion>
66             </exclusions>
67         </dependency>
68
69         <dependency>
70             <groupId>org.springframework.boot</groupId>
71             <artifactId>spring-boot-starter-jetty</artifactId>
72         </dependency>
73
74         <dependency>
75             <groupId>org.springframework</groupId>
76             <artifactId>spring-webmvc</artifactId>
77         </dependency>
78
79         <dependency>
80             <groupId>org.springframework.boot</groupId>
81             <artifactId>spring-boot-starter-test</artifactId>
82             <scope>test</scope>
83         </dependency>
84
85         <!-- MODEL -->
86         <dependency>
87             <groupId>org.onap.aai.aai-common</groupId>
88             <artifactId>aai-schema</artifactId>
89             <version>${version.aai-schema}</version>
90         </dependency>
91         <dependency>
92             <groupId>org.onap.aai.aai-common</groupId>
93             <artifactId>aai-schema-ingest</artifactId>
94             <version>${version.aai-schema-ingest}</version>
95             <exclusions>
96                 <exclusion>
97                     <groupId>org.powermock</groupId>
98                     <artifactId>*</artifactId>
99                 </exclusion>
100             </exclusions>
101         </dependency>
102
103         <!-- EVENT CLIENT -->
104         <dependency>
105             <groupId>org.onap.aai.event-client</groupId>
106             <artifactId>event-client-api</artifactId>
107             <version>${event.client.version}</version>
108         </dependency>
109         <dependency>
110             <groupId>org.onap.aai.event-client</groupId>
111             <artifactId>event-client-dmaap</artifactId>
112             <version>${event.client.version}</version>
113             <exclusions>
114                 <exclusion>
115                     <groupId>com.sun.jersey</groupId>
116                     <artifactId>jersey-client</artifactId>
117                 </exclusion>
118             </exclusions>
119         </dependency>
120         <dependency>
121             <groupId>org.onap.aai.event-client</groupId>
122             <artifactId>event-client-kafka</artifactId>
123             <version>${event.client.version}</version>
124         </dependency>
125         <dependency>
126            <groupId>org.onap.aai.event-client</groupId>
127            <artifactId>event-client-rabbitmq</artifactId>
128            <version>${event.client.version}</version>
129         </dependency>
130
131         <dependency>
132             <groupId>org.apache.commons</groupId>
133             <artifactId>commons-lang3</artifactId>
134             <version>3.7</version>
135         </dependency>
136
137         <dependency>
138             <groupId>org.codehaus.jackson</groupId>
139             <artifactId>jackson-mapper-asl</artifactId>
140             <version>1.4.5</version>
141         </dependency>
142
143         <dependency>
144             <groupId>commons-io</groupId>
145             <artifactId>commons-io</artifactId>
146             <version>2.4</version>
147         </dependency>
148
149         <!-- Common logging framework -->
150         <dependency>
151             <groupId>org.onap.aai.logging-service</groupId>
152             <artifactId>common-logging</artifactId>
153             <version>1.2.2</version>
154         </dependency>
155
156         <dependency>
157             <groupId>org.onap.aai.logging-service</groupId>
158             <artifactId>logging-api</artifactId>
159             <version>1.2.2</version>
160         </dependency>
161
162         <dependency>
163             <groupId>ch.qos.logback</groupId>
164             <artifactId>logback-core</artifactId>
165         </dependency>
166
167         <dependency>
168             <groupId>com.google.guava</groupId>
169             <artifactId>guava</artifactId>
170         </dependency>
171
172         <dependency>
173             <groupId>org.eclipse.persistence</groupId>
174             <artifactId>eclipselink</artifactId>
175             <version>2.6.2</version>
176         </dependency>
177
178         <dependency>
179             <groupId>org.glassfish.jersey.core</groupId>
180             <artifactId>jersey-client</artifactId>
181         </dependency>
182
183         <dependency>
184             <groupId>org.glassfish.jersey.inject</groupId>
185             <artifactId>jersey-hk2</artifactId>
186             <version>2.26</version>
187         </dependency>
188
189         <dependency>
190             <groupId>com.google.code.gson</groupId>
191             <artifactId>gson</artifactId>
192         </dependency>
193
194         <dependency>
195             <groupId>org.apache.httpcomponents</groupId>
196             <artifactId>httpclient</artifactId>
197             <version>4.5.3</version>
198         </dependency>
199
200         <dependency>
201             <groupId>org.apache.httpcomponents</groupId>
202             <artifactId>httpcore</artifactId>
203             <version>4.4.1</version>
204         </dependency>
205
206         <dependency>
207             <groupId>org.json</groupId>
208             <artifactId>json</artifactId>
209             <version>20160212</version>
210         </dependency>
211
212         <dependency>
213             <groupId>org.skyscreamer</groupId>
214             <artifactId>jsonassert</artifactId>
215             <scope>test</scope>
216         </dependency>
217
218         <dependency>
219             <groupId>org.mockito</groupId>
220             <artifactId>mockito-core</artifactId>
221             <version>2.15.0</version>
222             <scope>test</scope>
223         </dependency>
224     </dependencies>
225
226
227     <build>
228         <finalName>${project.artifactId}</finalName>
229         <plugins>
230             <plugin>
231                 <groupId>org.springframework.boot</groupId>
232                 <artifactId>spring-boot-maven-plugin</artifactId>
233                 <version>1.5.17.RELEASE</version>
234                 <executions>
235                     <execution>
236                         <goals>
237                             <goal>repackage</goal>
238                         </goals>
239                     </execution>
240                 </executions>
241             </plugin>
242
243             <plugin>
244                 <groupId>org.apache.maven.plugins</groupId>
245                 <artifactId>maven-resources-plugin</artifactId>
246                 <version>2.7</version>
247                 <executions>
248                     <execution>
249                         <id>copy-docker-file</id>
250                         <phase>package</phase>
251                         <goals>
252                             <goal>copy-resources</goal>
253                         </goals>
254                         <configuration>
255                             <outputDirectory>target</outputDirectory>
256                             <overwrite>true</overwrite>
257                             <resources>
258                                 <resource>
259                                     <directory>${basedir}/src/main/docker</directory>
260                                     <filtering>true</filtering>
261                                     <includes>
262                                         <include>**/*</include>
263                                     </includes>
264                                 </resource>
265                                 <resource>
266                                     <directory>${basedir}</directory>
267                                     <filtering>true</filtering>
268                                     <includes>
269                                         <include>bundleconfig-local/**</include>
270                                     </includes>
271                                 </resource>
272                                 <resource>
273                                     <directory>${basedir}/src/main/bin/</directory>
274                                 </resource>
275                             </resources>
276                         </configuration>
277                     </execution>
278                 </executions>
279             </plugin>
280
281             <plugin>
282                 <groupId>org.jacoco</groupId>
283                 <artifactId>jacoco-maven-plugin</artifactId>
284                 <executions>
285                     <execution>
286                         <id>prepare-agent</id>
287                         <goals>
288                             <goal>prepare-agent</goal>
289                         </goals>
290                     </execution>
291                     <execution>
292                         <id>report</id>
293                         <phase>package</phase>
294                         <goals>
295                             <goal>report</goal>
296                         </goals>
297                     </execution>
298                 </executions>
299             </plugin>
300
301             <plugin>
302                 <groupId>org.apache.maven.plugins</groupId>
303                 <artifactId>maven-dependency-plugin</artifactId>
304                 <executions>
305                     <execution>
306                         <id>unpack</id>
307                         <phase>prepare-package</phase>
308                         <goals>
309                             <goal>unpack</goal>
310                         </goals>
311                         <configuration>
312                             <artifactItems>
313                                 <artifactItem>
314                                     <groupId>org.onap.aai.aai-common</groupId>
315                                     <artifactId>aai-schema</artifactId>
316                                     <version>${version.aai-schema}</version>
317                                     <type>jar</type>
318                                     <includes>onap/**/</includes>
319                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
320                                 </artifactItem>
321                             </artifactItems>
322                         </configuration>
323                     </execution>
324                 </executions>
325             </plugin>
326
327             <plugin>
328                 <groupId>com.spotify</groupId>
329                 <artifactId>docker-maven-plugin</artifactId>
330                 <version>0.4.11</version>
331                 <configuration>
332                     <verbose>true</verbose>
333                     <serverId>docker-hub</serverId>
334                     <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
335                     <dockerDirectory>${docker.location}</dockerDirectory>
336                     <imageTags>
337                         <imageTag>latest</imageTag>
338                     </imageTags>
339                     <forceTags>true</forceTags>
340                 </configuration>
341             </plugin>
342
343             <plugin>
344                 <groupId>com.mycila</groupId>
345                 <artifactId>license-maven-plugin</artifactId>
346                 <version>3.0</version>
347                 <configuration>
348                     <header>License.txt</header>
349                     <includes>
350                         <include>src/main/java/**</include>
351                         <include>src/test/java/**</include>
352                         <include>pom.xml</include>
353                     </includes>
354                     <skipExistingHeaders>true</skipExistingHeaders>
355                 </configuration>
356                 <executions>
357                     <execution>
358                         <goals>
359                             <!-- Set goal to "format" to auto update license header. To verify only, set goal to "check". -->
360                             <goal>check</goal>
361                         </goals>
362                         <phase>process-sources</phase>
363                     </execution>
364                 </executions>
365             </plugin>
366         </plugins>
367     </build>
368 </project>