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