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>
44 <!-- Minimum code coverage percentage. Please update this figure as coverage increases to prevent any drops in
45 coverage caused by new changes. Note that this figure cannot be lower than the ONAP requirement of 0.55 -->
46 <jacoco.line.coverage.limit>0.60</jacoco.line.coverage.limit>
47 <jacoco.report.directory>${project.build.directory}/code-coverage</jacoco.report.directory>
50 <dependencyManagement>
53 <!-- Import dependency management from Spring Boot -->
54 <groupId>org.springframework.boot</groupId>
55 <artifactId>spring-boot-dependencies</artifactId>
56 <version>1.5.20.RELEASE</version>
61 </dependencyManagement>
65 <groupId>org.springframework.boot</groupId>
66 <artifactId>spring-boot-starter-web</artifactId>
69 <groupId>org.springframework.boot</groupId>
70 <artifactId>spring-boot-starter-tomcat</artifactId>
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot-starter-jetty</artifactId>
79 <groupId>org.springframework.boot</groupId>
80 <artifactId>spring-boot-starter</artifactId>
83 <groupId>ch.qos.logback</groupId>
84 <artifactId>logback-classic</artifactId>
89 <groupId>org.springframework.boot</groupId>
90 <artifactId>spring-boot-starter-jersey</artifactId>
93 <groupId>org.springframework.boot</groupId>
94 <artifactId>spring-boot-starter-tomcat</artifactId>
99 <groupId>org.springframework.boot</groupId>
100 <artifactId>spring-boot-starter-actuator</artifactId>
103 <groupId>org.springframework.boot</groupId>
104 <artifactId>spring-boot-configuration-processor</artifactId>
105 <optional>true</optional>
108 <groupId>org.springframework.boot</groupId>
109 <artifactId>spring-boot-starter-test</artifactId>
113 <groupId>org.apache.cxf</groupId>
114 <artifactId>cxf-rt-frontend-jaxrs</artifactId>
115 <version>3.2.5</version>
120 <groupId>io.swagger</groupId>
121 <artifactId>swagger-jersey2-jaxrs</artifactId>
122 <version>1.5.8</version>
125 <groupId>io.springfox</groupId>
126 <artifactId>springfox-swagger2</artifactId>
127 <version>2.9.2</version>
130 <groupId>io.springfox</groupId>
131 <artifactId>springfox-swagger-ui</artifactId>
132 <version>2.9.2</version>
136 <!-- ONAP AAI-COMMON (incl. model) -->
138 <groupId>org.onap.aai.aai-common</groupId>
139 <artifactId>aai-schema</artifactId>
140 <version>${version.org.onap.aai.aai-schema}</version>
143 <groupId>org.onap.aai.aai-common</groupId>
144 <artifactId>aai-schema-ingest</artifactId>
145 <version>${version.org.onap.aai.aai-schema-ingest}</version>
148 <groupId>org.powermock</groupId>
149 <artifactId>*</artifactId>
154 <groupId>org.onap.aai.aai-common</groupId>
155 <artifactId>aai-utils</artifactId>
156 <version>${version.org.onap.aai.aai-utils}</version>
159 <groupId>org.onap.aai.aai-common</groupId>
160 <artifactId>aai-auth</artifactId>
161 <version>${version.org.onap.aai.aai-auth}</version>
164 <!-- ONAP EVENT CLIENT -->
166 <groupId>org.onap.aai.event-client</groupId>
167 <artifactId>event-client-dmaap</artifactId>
168 <version>${event.client.version}</version>
171 <groupId>org.slf4j</groupId>
172 <artifactId>slf4j-api</artifactId>
177 <groupId>org.onap.aai.event-client</groupId>
178 <artifactId>event-client-kafka</artifactId>
179 <version>${event.client.version}</version>
182 <groupId>org.slf4j</groupId>
183 <artifactId>slf4j-api</artifactId>
189 <groupId>org.onap.aai.event-client</groupId>
190 <artifactId>event-client-rabbitmq</artifactId>
191 <version>${event.client.version}</version>
194 <groupId>org.slf4j</groupId>
195 <artifactId>slf4j-api</artifactId>
200 <!-- ONAP COMMON LOGGING -->
202 <groupId>org.onap.aai.logging-service</groupId>
203 <artifactId>common-logging</artifactId>
204 <version>1.2.2</version>
207 <groupId>ch.qos.logback</groupId>
208 <artifactId>logback-classic</artifactId>
211 <groupId>ch.qos.logback</groupId>
212 <artifactId>logback-core</artifactId>
215 <groupId>org.slf4j</groupId>
216 <artifactId>slf4j-api</artifactId>
221 <!-- ONAP REST CLIENT -->
223 <groupId>org.onap.aai</groupId>
224 <artifactId>rest-client</artifactId>
225 <version>1.2.1</version>
229 <groupId>ch.qos.logback</groupId>
230 <artifactId>logback-classic</artifactId>
231 <version>1.2.3</version>
234 <groupId>ch.qos.logback</groupId>
235 <artifactId>logback-core</artifactId>
236 <version>1.2.3</version>
239 <groupId>ch.qos.logback</groupId>
240 <artifactId>logback-classic</artifactId>
245 <groupId>ch.qos.logback</groupId>
246 <artifactId>logback-access</artifactId>
247 <version>1.2.3</version>
250 <groupId>com.google.guava</groupId>
251 <artifactId>guava</artifactId>
254 <groupId>radeox</groupId>
255 <artifactId>radeox</artifactId>
256 <version>1.0-b2</version>
259 <groupId>org.codehaus.jackson</groupId>
260 <artifactId>jackson-mapper-asl</artifactId>
261 <version>1.4.5</version>
264 <groupId>commons-io</groupId>
265 <artifactId>commons-io</artifactId>
266 <version>2.4</version>
269 <groupId>org.apache.commons</groupId>
270 <artifactId>commons-lang3</artifactId>
271 <version>3.3.1</version>
274 <groupId>com.google.code.gson</groupId>
275 <artifactId>gson</artifactId>
276 <version>2.6.2</version>
279 <groupId>org.eclipse.persistence</groupId>
280 <artifactId>eclipselink</artifactId>
281 <version>2.6.2</version>
284 <groupId>net.dongliu</groupId>
285 <artifactId>gson-java8-datatype</artifactId>
286 <version>1.0.3</version>
289 <groupId>com.jayway.jsonpath</groupId>
290 <artifactId>json-path</artifactId>
291 <version>2.2.0</version>
294 <groupId>org.slf4j</groupId>
295 <artifactId>slf4j-api</artifactId>
300 <groupId>org.apache.tinkerpop</groupId>
301 <artifactId>gremlin-core</artifactId>
302 <version>3.2.3</version>
303 <scope>provided</scope>
306 <groupId>org.slf4j</groupId>
307 <artifactId>slf4j-log4j12</artifactId>
310 <groupId>org.slf4j</groupId>
311 <artifactId>jcl-over-slf4j</artifactId>
314 <groupId>org.slf4j</groupId>
315 <artifactId>slf4j-api</artifactId>
320 <groupId>org.apache.tinkerpop</groupId>
321 <artifactId>tinkergraph-gremlin</artifactId>
322 <version>3.2.3</version>
323 <scope>provided</scope>
326 <groupId>org.json</groupId>
327 <artifactId>json</artifactId>
328 <version>20160212</version>
331 <groupId>org.apache.httpcomponents</groupId>
332 <artifactId>httpclient</artifactId>
333 <version>4.5.3</version>
336 <groupId>org.apache.httpcomponents</groupId>
337 <artifactId>httpcore</artifactId>
338 <version>4.4.1</version>
341 <!-- TEST DEPENDENCIES -->
343 <groupId>junit</groupId>
344 <artifactId>junit</artifactId>
347 <groupId>org.skyscreamer</groupId>
348 <artifactId>jsonassert</artifactId>
349 <version>1.5.0</version>
353 <groupId>org.mockito</groupId>
354 <artifactId>mockito-core</artifactId>
355 <version>2.15.0</version>
359 <groupId>org.hamcrest</groupId>
360 <artifactId>hamcrest-library</artifactId>
367 <finalName>${project.artifactId}</finalName>
370 Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter
371 Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order
372 Use in combination to rewrite code and imports, then checkstyle
374 mvn formatter:format spotless:apply process-sources
377 <groupId>net.revelc.code.formatter</groupId>
378 <artifactId>formatter-maven-plugin</artifactId>
379 <version>2.8.1</version>
381 <configFile>${project.basedir}/onap-java-formatter.xml</configFile>
383 <!-- https://code.revelc.net/formatter-maven-plugin/
384 use mvn formatter:format to rewrite source files
385 use mvn formatter:validate to validate source files -->
388 <groupId>com.diffplug.spotless</groupId>
389 <artifactId>spotless-maven-plugin</artifactId>
390 <version>1.18.0</version>
394 <order>com,java,javax,org</order>
398 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
399 use mvn spotless:apply to rewrite source files
400 use mvn spotless:check to validate source files -->
403 <groupId>org.apache.maven.plugins</groupId>
404 <artifactId>maven-resources-plugin</artifactId>
405 <version>2.7</version>
408 <id>copy-docker-file</id>
409 <phase>package</phase>
411 <goal>copy-resources</goal>
414 <outputDirectory>target</outputDirectory>
415 <overwrite>true</overwrite>
418 <directory>${basedir}/src/main/docker</directory>
419 <filtering>true</filtering>
421 <include>**/*</include>
425 <directory>${basedir}</directory>
426 <filtering>true</filtering>
428 <include>bundleconfig-local/**</include>
432 <directory>${basedir}/src/main/bin/</directory>
441 <groupId>com.spotify</groupId>
442 <artifactId>docker-maven-plugin</artifactId>
443 <version>0.4.11</version>
445 <verbose>true</verbose>
446 <serverId>docker-hub</serverId>
447 <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
448 <dockerDirectory>${docker.location}</dockerDirectory>
450 <imageTag>latest</imageTag>
452 <forceTags>true</forceTags>
456 <!-- license plugin -->
457 <!-- Uncomment this to add a license header to every source file -->
459 <groupId>com.mycila</groupId>
460 <artifactId>license-maven-plugin</artifactId>
461 <version>3.0</version>
463 <header>License.txt</header>
465 <include>src/main/java/**</include>
466 <include>src/test/java/**</include>
467 <include>pom.xml</include>
469 <skipExistingHeaders>true</skipExistingHeaders>
474 <!-- Set goal from "check" to "format" to auto update license headers -->
477 <phase>process-sources</phase>
483 <groupId>org.apache.maven.plugins</groupId>
484 <artifactId>maven-site-plugin</artifactId>
485 <version>3.3</version>
489 <groupId>org.apache.maven.plugins</groupId>
490 <artifactId>maven-checkstyle-plugin</artifactId>
491 <version>2.17</version>
495 <report>checkstyle</report>
504 <groupId>org.apache.maven.plugins</groupId>
505 <artifactId>maven-deploy-plugin</artifactId>
511 <groupId>org.springframework.boot</groupId>
512 <artifactId>spring-boot-maven-plugin</artifactId>
513 <version>2.0.1.RELEASE</version>
517 <goal>repackage</goal>
523 <groupId>org.apache.maven.plugins</groupId>
524 <artifactId>maven-dependency-plugin</artifactId>
528 <phase>prepare-package</phase>
535 <groupId>org.onap.aai.aai-common</groupId>
536 <artifactId>aai-schema</artifactId>
537 <version>${version.org.onap.aai.aai-schema}</version>
539 <includes>onap/**/</includes>
540 <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
548 <groupId>org.jacoco</groupId>
549 <artifactId>jacoco-maven-plugin</artifactId>
552 <id>default-check</id>
557 <dataFile>${jacoco.report.directory}/jacoco-ut.exec</dataFile>
559 <!-- implementation is needed only for Maven 2 -->
560 <rule implementation="org.jacoco.maven.RuleConfiguration">
561 <element>BUNDLE</element>
563 <limit implementation="org.jacoco.report.check.Limit">
564 <counter>LINE</counter>
565 <value>COVEREDRATIO</value>
566 <minimum>${jacoco.line.coverage.limit}</minimum>
578 <distributionManagement>
580 <id>ecomp-javadoc</id>
581 <url>dav:https://ecomp-nexus:8443/repository/aai/gizmo-javadoc/${project.version}</url>
583 </distributionManagement>