1 <?xml version="1.0" encoding="UTF-8"?>
4 Copyright (c) 2018 Orange
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
19 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21 <modelVersion>4.0.0</modelVersion>
23 <groupId>org.onap.externalapi-nbi</groupId>
24 <artifactId>nbi-rest-services</artifactId>
25 <version>3.0.1-STAGING</version>
26 <packaging>jar</packaging>
28 <name>externalapi-nbi</name>
31 <groupId>org.springframework.boot</groupId>
32 <artifactId>spring-boot-starter-parent</artifactId>
33 <version>1.5.12.RELEASE</version>
34 <relativePath /> <!-- lookup parent from repository -->
38 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
40 <nexusproxy>https://nexus.onap.org</nexusproxy>
41 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
42 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
43 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
44 <java.version>1.8</java.version>
45 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
46 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
47 <timestamp>${maven.build.timestamp}</timestamp>
48 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
50 <docker.tag>${project.version}-${timestamp}</docker.tag>
51 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
53 <sonar.language>java</sonar.language>
54 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
55 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
56 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
57 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
58 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
59 <sonar.projectVersion>${project.version}</sonar.projectVersion>
60 <sonar.coverage.exclusions>**/model/**/*</sonar.coverage.exclusions>
65 <id>maven2-repository.java.net</id>
66 <name>Java.net Repository for Maven</name>
67 <url>http://download.java.net/maven/2/</url>
68 <layout>default</layout>
71 <id>ecomp-snapshots</id>
72 <name>Snapshot Repository</name>
73 <url>https://nexus.onap.org/content/repositories/releases/</url>
76 <id>ecomp-staging</id>
77 <name>Staging Repository</name>
78 <url>https://nexus.onap.org/content/repositories/staging/</url>
82 <distributionManagement>
84 <id>ecomp-releases</id>
85 <name>Release Repository</name>
86 <url>${nexusproxy}/${releaseNexusPath}</url>
89 <id>ecomp-snapshots</id>
90 <name>Snapshot Repository</name>
91 <url>${nexusproxy}/${snapshotNexusPath}</url>
93 </distributionManagement>
98 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
105 <groupId>org.springframework.boot</groupId>
106 <artifactId>spring-boot-starter-web</artifactId>
109 <groupId>ch.qos.logback</groupId>
110 <artifactId>logback-classic</artifactId>
113 <groupId>org.apache.tomcat.embed</groupId>
114 <artifactId>tomcat-embed-core</artifactId>
117 <groupId>com.fasterxml.jackson.core</groupId>
118 <artifactId>jackson-databind</artifactId>
124 <groupId>com.fasterxml.jackson.core</groupId>
125 <artifactId>jackson-databind</artifactId>
126 <version>2.8.11.2</version>
130 <groupId>org.apache.tomcat.embed</groupId>
131 <artifactId>tomcat-embed-core</artifactId>
132 <version>8.5.32</version>
136 <groupId>ch.qos.logback</groupId>
137 <artifactId>logback-classic</artifactId>
138 <version>1.2.3</version>
142 <groupId>org.springframework.boot</groupId>
143 <artifactId>spring-boot-starter-data-jpa</artifactId>
146 <groupId>org.springframework.data</groupId>
147 <artifactId>spring-data-commons</artifactId>
153 <groupId>org.springframework.data</groupId>
154 <artifactId>spring-data-commons</artifactId>
155 <version>1.13.14.RELEASE</version>
159 <groupId>org.springframework.boot</groupId>
160 <artifactId>spring-boot-starter-aop</artifactId>
164 <groupId>org.apache.commons</groupId>
165 <artifactId>commons-io</artifactId>
166 <version>1.3.2</version>
170 <groupId>commons-beanutils</groupId>
171 <artifactId>commons-beanutils</artifactId>
172 <version>1.9.3</version>
176 <groupId>javax.validation</groupId>
177 <artifactId>validation-api</artifactId>
178 <version>2.0.1.Final</version>
182 <groupId>org.apache.commons</groupId>
183 <artifactId>commons-lang3</artifactId>
184 <version>3.4</version>
190 <groupId>org.springframework.boot</groupId>
191 <artifactId>spring-boot-starter-data-mongodb</artifactId>
197 <groupId>org.mariadb.jdbc</groupId>
198 <artifactId>mariadb-java-client</artifactId>
199 <version>1.1.7</version>
205 <groupId>io.swagger</groupId>
206 <artifactId>swagger-annotations</artifactId>
207 <version>1.5.18</version>
213 <groupId>com.fasterxml.jackson.dataformat</groupId>
214 <artifactId>jackson-dataformat-yaml</artifactId>
215 <version>2.9.6</version>
221 <groupId>com.bazaarvoice.jolt</groupId>
222 <artifactId>jolt-core</artifactId>
223 <version>0.1.0</version>
226 <groupId>com.fasterxml.jackson.core</groupId>
227 <artifactId>jackson-databind</artifactId>
233 <groupId>com.bazaarvoice.jolt</groupId>
234 <artifactId>json-utils</artifactId>
235 <version>0.1.0</version>
238 <groupId>com.fasterxml.jackson.core</groupId>
239 <artifactId>jackson-databind</artifactId>
247 <groupId>org.springframework.boot</groupId>
248 <artifactId>spring-boot-starter-test</artifactId>
255 <groupId>com.h2database</groupId>
256 <artifactId>h2</artifactId>
261 <groupId>de.flapdoodle.embed</groupId>
262 <artifactId>de.flapdoodle.embed.mongo</artifactId>
263 <version>${embedded-mongo.version}</version>
267 <!-- test wiremock -->
270 <groupId>org.springframework.cloud</groupId>
271 <artifactId>spring-cloud-contract-wiremock</artifactId>
272 <version>1.0.0.RELEASE</version>
276 <groupId>com.fasterxml.jackson.core</groupId>
277 <artifactId>jackson-databind</artifactId>
283 <groupId>org.eclipse.jetty</groupId>
284 <artifactId>jetty-server</artifactId>
285 <version>9.4.7.RC0</version>
290 <groupId>org.eclipse.jetty</groupId>
291 <artifactId>jetty-servlet</artifactId>
296 <groupId>org.eclipse.jetty</groupId>
297 <artifactId>jetty-servlets</artifactId>
304 <groupId>org.springframework.boot</groupId>
305 <artifactId>spring-boot-devtools</artifactId>
306 <scope>runtime</scope>
311 <groupId>org.onap.msb.java-sdk</groupId>
312 <artifactId>msb-java-sdk</artifactId>
313 <version>1.1.1</version>
316 <groupId>com.fasterxml.jackson.core</groupId>
317 <artifactId>jackson-databind</artifactId>
327 <groupId>org.springframework.boot</groupId>
328 <artifactId>spring-boot-maven-plugin</artifactId>
331 <groupId>org.sonatype.plugins</groupId>
332 <artifactId>nexus-staging-maven-plugin</artifactId>
333 <version>1.6.7</version>
334 <extensions>true</extensions>
336 <nexusUrl>${nexusproxy}</nexusUrl>
337 <stagingProfileId>176c31dfe190a</stagingProfileId>
338 <serverId>ecomp-staging</serverId>
342 <groupId>org.apache.maven.plugins</groupId>
343 <artifactId>maven-site-plugin</artifactId>
344 <version>3.6</version>
347 <groupId>org.apache.maven.wagon</groupId>
348 <artifactId>wagon-webdav-jackrabbit</artifactId>
349 <version>2.10</version>
354 <groupId>com.mycila</groupId>
355 <artifactId>license-maven-plugin</artifactId>
356 <version>3.0</version>
358 <header>LICENSE.TXT</header>
360 <include>restclient/**</include>
361 <include>src/**</include>
362 <include>./**/*.xml</include>
363 <include>./**/*.xml</include>
364 <include>./**/*.yml</include>
365 <include>./**/*.yaml</include>
367 <skipExistingHeaders>true</skipExistingHeaders>
370 <http>SCRIPT_STYLE</http>
376 <!-- Set goal to "format" to auto update license headers -->
379 <phase>process-sources</phase>
384 <groupId>org.codehaus.mojo</groupId>
385 <artifactId>sonar-maven-plugin</artifactId>
386 <version>3.2</version>
389 <groupId>org.jacoco</groupId>
390 <artifactId>jacoco-maven-plugin</artifactId>
391 <version>0.8.1</version>
393 <dumpOnExit>true</dumpOnExit>
395 <include>org.onap.nbi.*</include>
398 <exclude>**/model/**/*</exclude>
403 <id>pre-unit-test</id>
405 <goal>prepare-agent</goal>
408 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
409 <!-- <append>true</append> -->
413 <id>pre-integration-test</id>
414 <phase>pre-integration-test</phase>
416 <goal>prepare-agent</goal>
419 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
420 <!-- <append>true</append> -->
427 <phase>post-integration-test</phase>
430 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
431 <directory>${project.build.directory}/coverage-reports</directory>
433 <include>*.exec</include>
437 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
443 <artifactId>maven-source-plugin</artifactId>
446 <id>attach-sources</id>
447 <phase>deploy</phase>
449 <goal>jar-no-fork</goal>
465 <groupId>io.fabric8</groupId>
466 <artifactId>docker-maven-plugin</artifactId>
467 <version>0.26.1</version>
469 <verbose>true</verbose>
470 <apiVersion>1.23</apiVersion>
471 <pullRegistry>${docker.pull.registry}</pullRegistry>
472 <pushRegistry>${docker.push.registry}</pushRegistry>
475 <name>onap/externalapi/nbi:${docker.tag}</name>
477 <cleanup>true</cleanup>
480 <tag>${docker.latest.tag}</tag>
482 <dockerFileDir>${project.basedir}</dockerFileDir>
484 <PKG_FILENAME>${project.build.finalName}.${project.packaging}</PKG_FILENAME>
492 <id>clean-images</id>
493 <phase>pre-clean</phase>
498 <removeMode>all</removeMode>
502 <id>generate-images</id>
503 <phase>package</phase>
510 <phase>deploy</phase>