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