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