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