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