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-schema-ingest>1.4.1</version.org.onap.aai.aai-schema-ingest>
40 <version.org.onap.aai.aai-schema>1.4.0</version.org.onap.aai.aai-schema>
41 <version.org.onap.aai.aai-utils>1.4.0</version.org.onap.aai.aai-utils>
42 <version.org.onap.aai.aai-auth>1.4.0</version.org.onap.aai.aai-auth>
43 <event.client.version>1.3.1</event.client.version>
46 <dependencyManagement>
49 <!-- Import dependency management from Spring Boot -->
50 <groupId>org.springframework.boot</groupId>
51 <artifactId>spring-boot-dependencies</artifactId>
52 <version>1.5.18.RELEASE</version>
57 </dependencyManagement>
61 <groupId>org.springframework.boot</groupId>
62 <artifactId>spring-boot-starter-web</artifactId>
65 <groupId>org.springframework.boot</groupId>
66 <artifactId>spring-boot-starter-tomcat</artifactId>
71 <groupId>org.springframework.boot</groupId>
72 <artifactId>spring-boot-starter-jetty</artifactId>
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot-starter</artifactId>
79 <groupId>ch.qos.logback</groupId>
80 <artifactId>logback-classic</artifactId>
85 <groupId>org.springframework.boot</groupId>
86 <artifactId>spring-boot-starter-jersey</artifactId>
89 <groupId>org.springframework.boot</groupId>
90 <artifactId>spring-boot-starter-tomcat</artifactId>
95 <groupId>org.springframework.boot</groupId>
96 <artifactId>spring-boot-starter-actuator</artifactId>
99 <groupId>org.springframework.boot</groupId>
100 <artifactId>spring-boot-configuration-processor</artifactId>
101 <optional>true</optional>
104 <groupId>org.springframework.boot</groupId>
105 <artifactId>spring-boot-starter-test</artifactId>
109 <groupId>org.apache.cxf</groupId>
110 <artifactId>cxf-rt-frontend-jaxrs</artifactId>
111 <version>3.2.5</version>
116 <groupId>io.swagger</groupId>
117 <artifactId>swagger-jersey2-jaxrs</artifactId>
118 <version>1.5.8</version>
121 <groupId>io.springfox</groupId>
122 <artifactId>springfox-swagger2</artifactId>
123 <version>2.9.2</version>
126 <groupId>io.springfox</groupId>
127 <artifactId>springfox-swagger-ui</artifactId>
128 <version>2.9.2</version>
132 <!-- ONAP AAI-COMMON (incl. model) -->
134 <groupId>org.onap.aai.aai-common</groupId>
135 <artifactId>aai-schema</artifactId>
136 <version>${version.org.onap.aai.aai-schema}</version>
139 <groupId>org.onap.aai.aai-common</groupId>
140 <artifactId>aai-schema-ingest</artifactId>
141 <version>${version.org.onap.aai.aai-schema-ingest}</version>
144 <groupId>org.powermock</groupId>
145 <artifactId>*</artifactId>
150 <groupId>org.onap.aai.aai-common</groupId>
151 <artifactId>aai-utils</artifactId>
152 <version>${version.org.onap.aai.aai-utils}</version>
155 <groupId>org.onap.aai.aai-common</groupId>
156 <artifactId>aai-auth</artifactId>
157 <version>${version.org.onap.aai.aai-auth}</version>
160 <!-- ONAP EVENT CLIENT -->
162 <groupId>org.onap.aai.event-client</groupId>
163 <artifactId>event-client-dmaap</artifactId>
164 <version>${event.client.version}</version>
167 <groupId>org.slf4j</groupId>
168 <artifactId>slf4j-api</artifactId>
173 <groupId>org.onap.aai.event-client</groupId>
174 <artifactId>event-client-kafka</artifactId>
175 <version>${event.client.version}</version>
178 <groupId>org.slf4j</groupId>
179 <artifactId>slf4j-api</artifactId>
185 <groupId>org.onap.aai.event-client</groupId>
186 <artifactId>event-client-rabbitmq</artifactId>
187 <version>${event.client.version}</version>
190 <groupId>org.slf4j</groupId>
191 <artifactId>slf4j-api</artifactId>
196 <!-- ONAP COMMON LOGGING -->
198 <groupId>org.onap.aai.logging-service</groupId>
199 <artifactId>common-logging</artifactId>
200 <version>1.2.2</version>
203 <groupId>ch.qos.logback</groupId>
204 <artifactId>logback-classic</artifactId>
207 <groupId>ch.qos.logback</groupId>
208 <artifactId>logback-core</artifactId>
211 <groupId>org.slf4j</groupId>
212 <artifactId>slf4j-api</artifactId>
217 <!-- ONAP REST CLIENT -->
219 <groupId>org.onap.aai</groupId>
220 <artifactId>rest-client</artifactId>
221 <version>1.2.1</version>
225 <groupId>ch.qos.logback</groupId>
226 <artifactId>logback-classic</artifactId>
227 <version>1.2.3</version>
230 <groupId>ch.qos.logback</groupId>
231 <artifactId>logback-core</artifactId>
232 <version>1.2.3</version>
235 <groupId>ch.qos.logback</groupId>
236 <artifactId>logback-classic</artifactId>
241 <groupId>ch.qos.logback</groupId>
242 <artifactId>logback-access</artifactId>
243 <version>1.2.3</version>
246 <groupId>com.google.guava</groupId>
247 <artifactId>guava</artifactId>
250 <groupId>radeox</groupId>
251 <artifactId>radeox</artifactId>
252 <version>1.0-b2</version>
255 <groupId>org.codehaus.jackson</groupId>
256 <artifactId>jackson-mapper-asl</artifactId>
257 <version>1.4.5</version>
260 <groupId>commons-io</groupId>
261 <artifactId>commons-io</artifactId>
262 <version>2.4</version>
265 <groupId>org.apache.commons</groupId>
266 <artifactId>commons-lang3</artifactId>
267 <version>3.3.1</version>
270 <groupId>com.google.code.gson</groupId>
271 <artifactId>gson</artifactId>
272 <version>2.6.2</version>
275 <groupId>org.eclipse.persistence</groupId>
276 <artifactId>eclipselink</artifactId>
277 <version>2.6.2</version>
280 <groupId>net.dongliu</groupId>
281 <artifactId>gson-java8-datatype</artifactId>
282 <version>1.0.3</version>
285 <groupId>com.jayway.jsonpath</groupId>
286 <artifactId>json-path</artifactId>
287 <version>2.2.0</version>
290 <groupId>org.slf4j</groupId>
291 <artifactId>slf4j-api</artifactId>
296 <groupId>org.apache.tinkerpop</groupId>
297 <artifactId>gremlin-core</artifactId>
298 <version>3.2.3</version>
299 <scope>provided</scope>
302 <groupId>org.slf4j</groupId>
303 <artifactId>slf4j-log4j12</artifactId>
306 <groupId>org.slf4j</groupId>
307 <artifactId>jcl-over-slf4j</artifactId>
310 <groupId>org.slf4j</groupId>
311 <artifactId>slf4j-api</artifactId>
316 <groupId>org.apache.tinkerpop</groupId>
317 <artifactId>tinkergraph-gremlin</artifactId>
318 <version>3.2.3</version>
319 <scope>provided</scope>
322 <groupId>org.json</groupId>
323 <artifactId>json</artifactId>
324 <version>20160212</version>
327 <groupId>org.apache.httpcomponents</groupId>
328 <artifactId>httpclient</artifactId>
329 <version>4.5.3</version>
332 <groupId>org.apache.httpcomponents</groupId>
333 <artifactId>httpcore</artifactId>
334 <version>4.4.1</version>
337 <!-- TEST DEPENDENCIES -->
339 <groupId>junit</groupId>
340 <artifactId>junit</artifactId>
343 <groupId>org.skyscreamer</groupId>
344 <artifactId>jsonassert</artifactId>
345 <version>1.5.0</version>
349 <groupId>org.mockito</groupId>
350 <artifactId>mockito-core</artifactId>
351 <version>2.15.0</version>
355 <groupId>org.hamcrest</groupId>
356 <artifactId>hamcrest-library</artifactId>
363 <finalName>${project.artifactId}</finalName>
366 Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter
367 Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order
368 Use in combination to rewrite code and imports, then checkstyle
370 mvn formatter:format spotless:apply process-sources
373 <groupId>net.revelc.code.formatter</groupId>
374 <artifactId>formatter-maven-plugin</artifactId>
375 <version>2.8.1</version>
377 <configFile>${project.basedir}/onap-java-formatter.xml</configFile>
379 <!-- https://code.revelc.net/formatter-maven-plugin/
380 use mvn formatter:format to rewrite source files
381 use mvn formatter:validate to validate source files -->
384 <groupId>com.diffplug.spotless</groupId>
385 <artifactId>spotless-maven-plugin</artifactId>
386 <version>1.18.0</version>
390 <order>com,java,javax,org</order>
394 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
395 use mvn spotless:apply to rewrite source files
396 use mvn spotless:check to validate source files -->
399 <groupId>org.apache.maven.plugins</groupId>
400 <artifactId>maven-resources-plugin</artifactId>
401 <version>2.7</version>
404 <id>copy-docker-file</id>
405 <phase>package</phase>
407 <goal>copy-resources</goal>
410 <outputDirectory>target</outputDirectory>
411 <overwrite>true</overwrite>
414 <directory>${basedir}/src/main/docker</directory>
415 <filtering>true</filtering>
417 <include>**/*</include>
421 <directory>${basedir}</directory>
422 <filtering>true</filtering>
424 <include>bundleconfig-local/**</include>
428 <directory>${basedir}/src/main/bin/</directory>
437 <groupId>com.spotify</groupId>
438 <artifactId>docker-maven-plugin</artifactId>
439 <version>0.4.11</version>
441 <verbose>true</verbose>
442 <serverId>docker-hub</serverId>
443 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
444 <dockerDirectory>${docker.location}</dockerDirectory>
446 <imageTag>latest</imageTag>
448 <forceTags>true</forceTags>
452 <!-- license plugin -->
453 <!-- Uncomment this to add a license header to every source file -->
455 <groupId>com.mycila</groupId>
456 <artifactId>license-maven-plugin</artifactId>
457 <version>3.0</version>
459 <header>License.txt</header>
461 <include>src/main/java/**</include>
462 <include>src/test/java/**</include>
463 <include>pom.xml</include>
465 <skipExistingHeaders>true</skipExistingHeaders>
470 <!-- Set goal from "check" to "format" to auto update license headers -->
473 <phase>process-sources</phase>
479 <groupId>org.apache.maven.plugins</groupId>
480 <artifactId>maven-site-plugin</artifactId>
481 <version>3.3</version>
485 <groupId>org.apache.maven.plugins</groupId>
486 <artifactId>maven-checkstyle-plugin</artifactId>
487 <version>2.17</version>
491 <report>checkstyle</report>
500 <groupId>org.apache.maven.plugins</groupId>
501 <artifactId>maven-deploy-plugin</artifactId>
507 <groupId>org.springframework.boot</groupId>
508 <artifactId>spring-boot-maven-plugin</artifactId>
509 <version>2.0.1.RELEASE</version>
513 <goal>repackage</goal>
519 <groupId>org.apache.maven.plugins</groupId>
520 <artifactId>maven-dependency-plugin</artifactId>
524 <phase>prepare-package</phase>
531 <groupId>org.onap.aai.aai-common</groupId>
532 <artifactId>aai-schema</artifactId>
533 <version>${version.org.onap.aai.aai-schema}</version>
535 <includes>onap/**/</includes>
536 <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
546 <distributionManagement>
548 <id>ecomp-javadoc</id>
549 <url>dav:https://ecomp-nexus:8443/repository/aai/gizmo-javadoc/${project.version}</url>
551 </distributionManagement>