Merge "Update to use Schema Service"
[aai/gizmo.git] / 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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22     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.gizmo</groupId>
33     <artifactId>gizmo</artifactId>
34     <version>1.4.0-SNAPSHOT</version>
35     <name>aai-gizmo</name>
36
37     <properties>
38         <docker.location>${basedir}/target</docker.location>
39         <version.org.onap.aai.aai-common>1.4.1-SNAPSHOT</version.org.onap.aai.aai-common>
40         <event.client.version>1.3.1</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>1.5.18.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         </dependency>
61         <dependency>
62             <groupId>org.springframework.boot</groupId>
63             <artifactId>spring-boot-starter-jetty</artifactId>
64         </dependency>
65         <dependency>
66             <groupId>org.springframework.boot</groupId>
67             <artifactId>spring-boot-starter</artifactId>
68             <exclusions>
69                 <exclusion>
70                     <groupId>ch.qos.logback</groupId>
71                     <artifactId>logback-classic</artifactId>
72                 </exclusion>
73             </exclusions>
74         </dependency>
75         <dependency>
76             <groupId>org.springframework.boot</groupId>
77             <artifactId>spring-boot-starter-jersey</artifactId>
78         </dependency>
79         <dependency>
80             <groupId>org.springframework.boot</groupId>
81             <artifactId>spring-boot-starter-actuator</artifactId>
82         </dependency>
83         <dependency>
84             <groupId>org.springframework.boot</groupId>
85             <artifactId>spring-boot-configuration-processor</artifactId>
86             <optional>true</optional>
87         </dependency>
88         <dependency>
89             <groupId>org.springframework.boot</groupId>
90             <artifactId>spring-boot-starter-test</artifactId>
91             <scope>test</scope>
92         </dependency>
93         <dependency>
94             <groupId>org.apache.cxf</groupId>
95             <artifactId>cxf-rt-frontend-jaxrs</artifactId>
96             <version>3.2.5</version>
97         </dependency>
98         
99
100      <dependency>
101          <groupId>io.swagger</groupId>
102          <artifactId>swagger-jersey2-jaxrs</artifactId>
103          <version>1.5.8</version>
104       </dependency>
105       <dependency>
106          <groupId>io.springfox</groupId>
107          <artifactId>springfox-swagger2</artifactId>
108          <version>2.9.2</version>
109       </dependency>
110             <dependency>
111          <groupId>io.springfox</groupId>
112          <artifactId>springfox-swagger-ui</artifactId>
113          <version>2.9.2</version>
114       </dependency>
115       
116
117         <!-- ONAP AAI-COMMON (incl. model) -->
118         <dependency>
119             <groupId>org.onap.aai.aai-common</groupId>
120             <artifactId>aai-schema</artifactId>
121             <version>${version.org.onap.aai.aai-common}</version>
122         </dependency>
123         <dependency>
124             <groupId>org.onap.aai.aai-common</groupId>
125             <artifactId>aai-schema-ingest</artifactId>
126             <version>${version.org.onap.aai.aai-common}</version>
127             <exclusions>
128                 <exclusion>
129                   <groupId>org.powermock</groupId>
130                   <artifactId>*</artifactId>
131                 </exclusion>
132             </exclusions>
133         </dependency>
134         <dependency>
135             <groupId>org.onap.aai.aai-common</groupId>
136             <artifactId>aai-utils</artifactId>
137             <version>${version.org.onap.aai.aai-common}</version>
138         </dependency>
139         <dependency>
140             <groupId>org.onap.aai.aai-common</groupId>
141             <artifactId>aai-auth</artifactId>
142             <version>${version.org.onap.aai.aai-common}</version>
143         </dependency>
144
145         <!-- ONAP EVENT CLIENT -->
146         <dependency>
147             <groupId>org.onap.aai.event-client</groupId>
148             <artifactId>event-client-dmaap</artifactId>
149            <version>${event.client.version}</version>
150             <exclusions>
151                 <exclusion>
152                     <groupId>org.slf4j</groupId>
153                     <artifactId>slf4j-api</artifactId>
154                 </exclusion>
155             </exclusions>
156         </dependency>
157         <dependency>
158             <groupId>org.onap.aai.event-client</groupId>
159             <artifactId>event-client-kafka</artifactId>
160            <version>${event.client.version}</version>
161             <exclusions>
162                 <exclusion>
163                     <groupId>org.slf4j</groupId>
164                     <artifactId>slf4j-api</artifactId>
165                 </exclusion>
166             </exclusions>
167         </dependency>
168
169         <dependency>
170            <groupId>org.onap.aai.event-client</groupId>
171            <artifactId>event-client-rabbitmq</artifactId>
172            <version>${event.client.version}</version>
173             <exclusions>
174                 <exclusion>
175                     <groupId>org.slf4j</groupId>
176                     <artifactId>slf4j-api</artifactId>
177                 </exclusion>
178             </exclusions>
179         </dependency>
180
181         <!-- ONAP COMMON LOGGING -->
182         <dependency>
183             <groupId>org.onap.aai.logging-service</groupId>
184             <artifactId>common-logging</artifactId>
185             <version>1.2.2</version>
186             <exclusions>
187                 <exclusion>
188                     <groupId>ch.qos.logback</groupId>
189                     <artifactId>logback-classic</artifactId>
190                 </exclusion>
191                 <exclusion>
192                     <groupId>ch.qos.logback</groupId>
193                     <artifactId>logback-core</artifactId>
194                 </exclusion>
195                 <exclusion>
196                     <groupId>org.slf4j</groupId>
197                     <artifactId>slf4j-api</artifactId>
198                 </exclusion>
199             </exclusions>
200         </dependency>
201
202         <!-- ONAP REST CLIENT -->
203         <dependency>
204             <groupId>org.onap.aai</groupId>
205             <artifactId>rest-client</artifactId>
206             <version>1.2.1</version>
207         </dependency>
208
209         <dependency>
210             <groupId>ch.qos.logback</groupId>
211             <artifactId>logback-classic</artifactId>
212             <version>1.2.3</version>
213         </dependency>
214         <dependency>
215             <groupId>ch.qos.logback</groupId>
216             <artifactId>logback-core</artifactId>
217             <version>1.2.3</version>
218             <exclusions>
219                 <exclusion>
220                     <groupId>ch.qos.logback</groupId>
221                     <artifactId>logback-classic</artifactId>
222                 </exclusion>
223             </exclusions>
224         </dependency>
225         <dependency>
226             <groupId>ch.qos.logback</groupId>
227             <artifactId>logback-access</artifactId>
228             <version>1.2.3</version>
229         </dependency>
230         <dependency>
231             <groupId>com.google.guava</groupId>
232             <artifactId>guava</artifactId>
233         </dependency>
234         <dependency>
235             <groupId>radeox</groupId>
236             <artifactId>radeox</artifactId>
237             <version>1.0-b2</version>
238         </dependency>
239         <dependency>
240             <groupId>org.codehaus.jackson</groupId>
241             <artifactId>jackson-mapper-asl</artifactId>
242             <version>1.4.5</version>
243         </dependency>
244         <dependency>
245             <groupId>commons-io</groupId>
246             <artifactId>commons-io</artifactId>
247             <version>2.4</version>
248         </dependency>
249         <dependency>
250             <groupId>org.apache.commons</groupId>
251             <artifactId>commons-lang3</artifactId>
252             <version>3.3.1</version>
253         </dependency>
254         <dependency>
255             <groupId>com.google.code.gson</groupId>
256             <artifactId>gson</artifactId>
257             <version>2.6.2</version>
258         </dependency>
259         <dependency>
260             <groupId>org.eclipse.persistence</groupId>
261             <artifactId>eclipselink</artifactId>
262             <version>2.6.2</version>
263         </dependency>
264         <dependency>
265             <groupId>net.dongliu</groupId>
266             <artifactId>gson-java8-datatype</artifactId>
267             <version>1.0.3</version>
268         </dependency>
269         <dependency>
270             <groupId>com.jayway.jsonpath</groupId>
271             <artifactId>json-path</artifactId>
272             <version>2.2.0</version>
273             <exclusions>
274                 <exclusion>
275                     <groupId>org.slf4j</groupId>
276                     <artifactId>slf4j-api</artifactId>
277                 </exclusion>
278             </exclusions>
279         </dependency>
280         <dependency>
281             <groupId>org.apache.tinkerpop</groupId>
282             <artifactId>gremlin-core</artifactId>
283             <version>3.2.3</version>
284             <scope>provided</scope>
285             <exclusions>
286                 <exclusion>
287                     <groupId>org.slf4j</groupId>
288                     <artifactId>slf4j-log4j12</artifactId>
289                 </exclusion>
290                 <exclusion>
291                     <groupId>org.slf4j</groupId>
292                     <artifactId>jcl-over-slf4j</artifactId>
293                 </exclusion>
294                 <exclusion>
295                     <groupId>org.slf4j</groupId>
296                     <artifactId>slf4j-api</artifactId>
297                 </exclusion>
298             </exclusions>
299         </dependency>
300         <dependency>
301             <groupId>org.apache.tinkerpop</groupId>
302             <artifactId>tinkergraph-gremlin</artifactId>
303             <version>3.2.3</version>
304             <scope>provided</scope>
305         </dependency>
306         <dependency>
307             <groupId>org.json</groupId>
308             <artifactId>json</artifactId>
309             <version>20160212</version>
310         </dependency>
311         <dependency>
312             <groupId>org.apache.httpcomponents</groupId>
313             <artifactId>httpclient</artifactId>
314             <version>4.5.3</version>
315         </dependency>
316         <dependency>
317             <groupId>org.apache.httpcomponents</groupId>
318             <artifactId>httpcore</artifactId>
319             <version>4.4.1</version>
320         </dependency>
321
322         <!-- TEST DEPENDENCIES -->
323         <dependency>
324             <groupId>junit</groupId>
325             <artifactId>junit</artifactId>
326         </dependency>
327         <dependency>
328             <groupId>org.skyscreamer</groupId>
329             <artifactId>jsonassert</artifactId>
330             <version>1.5.0</version>
331             <scope>test</scope>
332         </dependency>
333         <dependency>
334             <groupId>org.mockito</groupId>
335             <artifactId>mockito-core</artifactId>
336             <version>2.15.0</version>
337             <scope>test</scope>
338             <exclusions>
339                 <exclusion>
340                     <groupId>org.hamcrest</groupId>
341                     <artifactId>hamcrest-library</artifactId>
342                 </exclusion>
343             </exclusions>
344         </dependency>
345     </dependencies>
346
347     <build>
348         <finalName>${project.artifactId}</finalName>
349         <plugins>
350             <plugin>
351                 <groupId>org.apache.maven.plugins</groupId>
352                 <artifactId>maven-resources-plugin</artifactId>
353                 <version>2.7</version>
354                 <executions>
355                     <execution>
356                         <id>copy-docker-file</id>
357                         <phase>package</phase>
358                         <goals>
359                             <goal>copy-resources</goal>
360                         </goals>
361                         <configuration>
362                             <outputDirectory>target</outputDirectory>
363                             <overwrite>true</overwrite>
364                             <resources>
365                                 <resource>
366                                     <directory>${basedir}/src/main/docker</directory>
367                                     <filtering>true</filtering>
368                                     <includes>
369                                         <include>**/*</include>
370                                     </includes>
371                                 </resource>
372                                 <resource>
373                                     <directory>${basedir}</directory>
374                                     <filtering>true</filtering>
375                                     <includes>
376                                         <include>bundleconfig-local/**</include>
377                                     </includes>
378                                 </resource>
379                                 <resource>
380                                     <directory>${basedir}/src/main/bin/</directory>
381                                 </resource>
382                             </resources>
383                         </configuration>
384                     </execution>
385                 </executions>
386             </plugin>
387
388             <plugin>
389                 <groupId>com.spotify</groupId>
390                 <artifactId>docker-maven-plugin</artifactId>
391                 <version>0.4.11</version>
392                 <configuration>
393                     <verbose>true</verbose>
394                     <serverId>docker-hub</serverId>
395                     <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
396                     <dockerDirectory>${docker.location}</dockerDirectory>
397                     <imageTags>
398                         <imageTag>latest</imageTag>
399                     </imageTags>
400                     <forceTags>true</forceTags>
401                 </configuration>
402             </plugin>
403
404             <!-- license plugin -->
405             <!-- Uncomment this to add a license header to every source file -->
406             <plugin>
407                 <groupId>com.mycila</groupId>
408                 <artifactId>license-maven-plugin</artifactId>
409                 <version>3.0</version>
410                 <configuration>
411                     <header>License.txt</header>
412                     <includes>
413                         <include>src/main/java/**</include>
414                         <include>src/test/java/**</include>
415                         <include>pom.xml</include>
416                     </includes>
417                     <skipExistingHeaders>true</skipExistingHeaders>
418                 </configuration>
419                 <executions>
420                     <execution>
421                         <goals>
422                             <!-- Set goal from "check" to "format" to auto update license headers -->
423                             <goal>check</goal>
424                         </goals>
425                         <phase>process-sources</phase>
426                     </execution>
427                 </executions>
428             </plugin>
429
430             <plugin>
431                 <groupId>org.apache.maven.plugins</groupId>
432                 <artifactId>maven-site-plugin</artifactId>
433                 <version>3.3</version>
434                 <configuration>
435                     <reportPlugins>
436                         <plugin>
437                             <groupId>org.apache.maven.plugins</groupId>
438                             <artifactId>maven-checkstyle-plugin</artifactId>
439                             <version>2.17</version>
440                             <reportSets>
441                                 <reportSet>
442                                     <reports>
443                                         <report>checkstyle</report>
444                                     </reports>
445                                 </reportSet>
446                             </reportSets>
447                         </plugin>
448                     </reportPlugins>
449                 </configuration>
450             </plugin>
451             <plugin>
452                 <groupId>org.apache.maven.plugins</groupId>
453                 <artifactId>maven-deploy-plugin</artifactId>
454                 <configuration>
455                     <skip>true</skip>
456                 </configuration>
457             </plugin>
458             <plugin>
459                 <groupId>org.springframework.boot</groupId>
460                 <artifactId>spring-boot-maven-plugin</artifactId>
461                 <version>2.0.1.RELEASE</version>
462                 <executions>
463                     <execution>
464                         <goals>
465                             <goal>repackage</goal>
466                         </goals>
467                     </execution>
468                 </executions>
469             </plugin>
470             <plugin>
471                 <groupId>org.apache.maven.plugins</groupId>
472                 <artifactId>maven-dependency-plugin</artifactId>
473                 <executions>
474                     <execution>
475                         <id>unpack</id>
476                         <phase>prepare-package</phase>
477                         <goals>
478                             <goal>unpack</goal>
479                         </goals>
480                         <configuration>
481                             <artifactItems>
482                                 <artifactItem>
483                                     <groupId>org.onap.aai.aai-common</groupId>
484                                     <artifactId>aai-schema</artifactId>
485                                     <version>${version.org.onap.aai.aai-common}</version>
486                                     <type>jar</type>
487                                     <includes>onap/**/</includes>
488                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
489                                 </artifactItem>
490                             </artifactItems>
491                         </configuration>
492                     </execution>
493                 </executions>
494             </plugin>
495         </plugins>
496     </build>
497
498     <distributionManagement>
499         <site>
500             <id>ecomp-javadoc</id>
501             <url>dav:https://ecomp-nexus:8443/repository/aai/gizmo-javadoc/${project.version}</url>
502         </site>
503     </distributionManagement>
504 </project>