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