2 ============LICENSE_START=======================================================
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
12 http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
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>
26 <groupId>org.onap.oparent</groupId>
27 <artifactId>oparent</artifactId>
28 <version>1.2.0</version>
32 <groupId>org.onap.aai.gizmo</groupId>
33 <artifactId>gizmo</artifactId>
34 <version>1.4.0-SNAPSHOT</version>
35 <name>aai-gizmo</name>
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>
43 <dependencyManagement>
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>
54 </dependencyManagement>
58 <groupId>org.springframework.boot</groupId>
59 <artifactId>spring-boot-starter-web</artifactId>
62 <groupId>org.springframework.boot</groupId>
63 <artifactId>spring-boot-starter-tomcat</artifactId>
68 <groupId>org.springframework.boot</groupId>
69 <artifactId>spring-boot-starter-jetty</artifactId>
72 <groupId>org.springframework.boot</groupId>
73 <artifactId>spring-boot-starter</artifactId>
76 <groupId>ch.qos.logback</groupId>
77 <artifactId>logback-classic</artifactId>
82 <groupId>org.springframework.boot</groupId>
83 <artifactId>spring-boot-starter-jersey</artifactId>
86 <groupId>org.springframework.boot</groupId>
87 <artifactId>spring-boot-starter-tomcat</artifactId>
92 <groupId>org.springframework.boot</groupId>
93 <artifactId>spring-boot-starter-actuator</artifactId>
96 <groupId>org.springframework.boot</groupId>
97 <artifactId>spring-boot-configuration-processor</artifactId>
98 <optional>true</optional>
101 <groupId>org.springframework.boot</groupId>
102 <artifactId>spring-boot-starter-test</artifactId>
106 <groupId>org.apache.cxf</groupId>
107 <artifactId>cxf-rt-frontend-jaxrs</artifactId>
108 <version>3.2.5</version>
113 <groupId>io.swagger</groupId>
114 <artifactId>swagger-jersey2-jaxrs</artifactId>
115 <version>1.5.8</version>
118 <groupId>io.springfox</groupId>
119 <artifactId>springfox-swagger2</artifactId>
120 <version>2.9.2</version>
123 <groupId>io.springfox</groupId>
124 <artifactId>springfox-swagger-ui</artifactId>
125 <version>2.9.2</version>
129 <!-- ONAP AAI-COMMON (incl. model) -->
131 <groupId>org.onap.aai.aai-common</groupId>
132 <artifactId>aai-schema</artifactId>
133 <version>${version.org.onap.aai.aai-common}</version>
136 <groupId>org.onap.aai.aai-common</groupId>
137 <artifactId>aai-schema-ingest</artifactId>
138 <version>${version.org.onap.aai.aai-common}</version>
141 <groupId>org.powermock</groupId>
142 <artifactId>*</artifactId>
147 <groupId>org.onap.aai.aai-common</groupId>
148 <artifactId>aai-utils</artifactId>
149 <version>${version.org.onap.aai.aai-common}</version>
152 <groupId>org.onap.aai.aai-common</groupId>
153 <artifactId>aai-auth</artifactId>
154 <version>${version.org.onap.aai.aai-common}</version>
157 <!-- ONAP EVENT CLIENT -->
159 <groupId>org.onap.aai.event-client</groupId>
160 <artifactId>event-client-dmaap</artifactId>
161 <version>${event.client.version}</version>
164 <groupId>org.slf4j</groupId>
165 <artifactId>slf4j-api</artifactId>
170 <groupId>org.onap.aai.event-client</groupId>
171 <artifactId>event-client-kafka</artifactId>
172 <version>${event.client.version}</version>
175 <groupId>org.slf4j</groupId>
176 <artifactId>slf4j-api</artifactId>
182 <groupId>org.onap.aai.event-client</groupId>
183 <artifactId>event-client-rabbitmq</artifactId>
184 <version>${event.client.version}</version>
187 <groupId>org.slf4j</groupId>
188 <artifactId>slf4j-api</artifactId>
193 <!-- ONAP COMMON LOGGING -->
195 <groupId>org.onap.aai.logging-service</groupId>
196 <artifactId>common-logging</artifactId>
197 <version>1.2.2</version>
200 <groupId>ch.qos.logback</groupId>
201 <artifactId>logback-classic</artifactId>
204 <groupId>ch.qos.logback</groupId>
205 <artifactId>logback-core</artifactId>
208 <groupId>org.slf4j</groupId>
209 <artifactId>slf4j-api</artifactId>
214 <!-- ONAP REST CLIENT -->
216 <groupId>org.onap.aai</groupId>
217 <artifactId>rest-client</artifactId>
218 <version>1.2.1</version>
222 <groupId>ch.qos.logback</groupId>
223 <artifactId>logback-classic</artifactId>
224 <version>1.2.3</version>
227 <groupId>ch.qos.logback</groupId>
228 <artifactId>logback-core</artifactId>
229 <version>1.2.3</version>
232 <groupId>ch.qos.logback</groupId>
233 <artifactId>logback-classic</artifactId>
238 <groupId>ch.qos.logback</groupId>
239 <artifactId>logback-access</artifactId>
240 <version>1.2.3</version>
243 <groupId>com.google.guava</groupId>
244 <artifactId>guava</artifactId>
247 <groupId>radeox</groupId>
248 <artifactId>radeox</artifactId>
249 <version>1.0-b2</version>
252 <groupId>org.codehaus.jackson</groupId>
253 <artifactId>jackson-mapper-asl</artifactId>
254 <version>1.4.5</version>
257 <groupId>commons-io</groupId>
258 <artifactId>commons-io</artifactId>
259 <version>2.4</version>
262 <groupId>org.apache.commons</groupId>
263 <artifactId>commons-lang3</artifactId>
264 <version>3.3.1</version>
267 <groupId>com.google.code.gson</groupId>
268 <artifactId>gson</artifactId>
269 <version>2.6.2</version>
272 <groupId>org.eclipse.persistence</groupId>
273 <artifactId>eclipselink</artifactId>
274 <version>2.6.2</version>
277 <groupId>net.dongliu</groupId>
278 <artifactId>gson-java8-datatype</artifactId>
279 <version>1.0.3</version>
282 <groupId>com.jayway.jsonpath</groupId>
283 <artifactId>json-path</artifactId>
284 <version>2.2.0</version>
287 <groupId>org.slf4j</groupId>
288 <artifactId>slf4j-api</artifactId>
293 <groupId>org.apache.tinkerpop</groupId>
294 <artifactId>gremlin-core</artifactId>
295 <version>3.2.3</version>
296 <scope>provided</scope>
299 <groupId>org.slf4j</groupId>
300 <artifactId>slf4j-log4j12</artifactId>
303 <groupId>org.slf4j</groupId>
304 <artifactId>jcl-over-slf4j</artifactId>
307 <groupId>org.slf4j</groupId>
308 <artifactId>slf4j-api</artifactId>
313 <groupId>org.apache.tinkerpop</groupId>
314 <artifactId>tinkergraph-gremlin</artifactId>
315 <version>3.2.3</version>
316 <scope>provided</scope>
319 <groupId>org.json</groupId>
320 <artifactId>json</artifactId>
321 <version>20160212</version>
324 <groupId>org.apache.httpcomponents</groupId>
325 <artifactId>httpclient</artifactId>
326 <version>4.5.3</version>
329 <groupId>org.apache.httpcomponents</groupId>
330 <artifactId>httpcore</artifactId>
331 <version>4.4.1</version>
334 <!-- TEST DEPENDENCIES -->
336 <groupId>junit</groupId>
337 <artifactId>junit</artifactId>
340 <groupId>org.skyscreamer</groupId>
341 <artifactId>jsonassert</artifactId>
342 <version>1.5.0</version>
346 <groupId>org.mockito</groupId>
347 <artifactId>mockito-core</artifactId>
348 <version>2.15.0</version>
352 <groupId>org.hamcrest</groupId>
353 <artifactId>hamcrest-library</artifactId>
360 <finalName>${project.artifactId}</finalName>
363 Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter
364 Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order
365 Use in combination to rewrite code and imports, then checkstyle
367 mvn formatter:format spotless:apply process-sources
370 <groupId>net.revelc.code.formatter</groupId>
371 <artifactId>formatter-maven-plugin</artifactId>
372 <version>2.8.1</version>
374 <configFile>${project.basedir}/onap-java-formatter.xml</configFile>
376 <!-- https://code.revelc.net/formatter-maven-plugin/
377 use mvn formatter:format to rewrite source files
378 use mvn formatter:validate to validate source files -->
381 <groupId>com.diffplug.spotless</groupId>
382 <artifactId>spotless-maven-plugin</artifactId>
383 <version>1.18.0</version>
387 <order>com,java,javax,org</order>
391 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
392 use mvn spotless:apply to rewrite source files
393 use mvn spotless:check to validate source files -->
396 <groupId>org.apache.maven.plugins</groupId>
397 <artifactId>maven-resources-plugin</artifactId>
398 <version>2.7</version>
401 <id>copy-docker-file</id>
402 <phase>package</phase>
404 <goal>copy-resources</goal>
407 <outputDirectory>target</outputDirectory>
408 <overwrite>true</overwrite>
411 <directory>${basedir}/src/main/docker</directory>
412 <filtering>true</filtering>
414 <include>**/*</include>
418 <directory>${basedir}</directory>
419 <filtering>true</filtering>
421 <include>bundleconfig-local/**</include>
425 <directory>${basedir}/src/main/bin/</directory>
434 <groupId>com.spotify</groupId>
435 <artifactId>docker-maven-plugin</artifactId>
436 <version>0.4.11</version>
438 <verbose>true</verbose>
439 <serverId>docker-hub</serverId>
440 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
441 <dockerDirectory>${docker.location}</dockerDirectory>
443 <imageTag>latest</imageTag>
445 <forceTags>true</forceTags>
449 <!-- license plugin -->
450 <!-- Uncomment this to add a license header to every source file -->
452 <groupId>com.mycila</groupId>
453 <artifactId>license-maven-plugin</artifactId>
454 <version>3.0</version>
456 <header>License.txt</header>
458 <include>src/main/java/**</include>
459 <include>src/test/java/**</include>
460 <include>pom.xml</include>
462 <skipExistingHeaders>true</skipExistingHeaders>
467 <!-- Set goal from "check" to "format" to auto update license headers -->
470 <phase>process-sources</phase>
476 <groupId>org.apache.maven.plugins</groupId>
477 <artifactId>maven-site-plugin</artifactId>
478 <version>3.3</version>
482 <groupId>org.apache.maven.plugins</groupId>
483 <artifactId>maven-checkstyle-plugin</artifactId>
484 <version>2.17</version>
488 <report>checkstyle</report>
497 <groupId>org.apache.maven.plugins</groupId>
498 <artifactId>maven-deploy-plugin</artifactId>
504 <groupId>org.springframework.boot</groupId>
505 <artifactId>spring-boot-maven-plugin</artifactId>
506 <version>2.0.1.RELEASE</version>
510 <goal>repackage</goal>
516 <groupId>org.apache.maven.plugins</groupId>
517 <artifactId>maven-dependency-plugin</artifactId>
521 <phase>prepare-package</phase>
528 <groupId>org.onap.aai.aai-common</groupId>
529 <artifactId>aai-schema</artifactId>
530 <version>${version.org.onap.aai.aai-common}</version>
532 <includes>onap/**/</includes>
533 <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
543 <distributionManagement>
545 <id>ecomp-javadoc</id>
546 <url>dav:https://ecomp-nexus:8443/repository/aai/gizmo-javadoc/${project.version}</url>
548 </distributionManagement>