1 <?xml version="1.0" encoding="UTF-8"?>
5 Copyright (c) 2017 Orange. All rights reserved.
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
20 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22 <modelVersion>4.0.0</modelVersion>
24 <groupId>org.onap.externalapi-nbi</groupId>
25 <artifactId>nbi-rest-services</artifactId>
26 <version>1.0.0-SNAPSHOT</version>
27 <packaging>jar</packaging>
29 <name>externalapi-nbi</name>
32 <groupId>org.springframework.boot</groupId>
33 <artifactId>spring-boot-starter-parent</artifactId>
34 <version>1.5.10.RELEASE</version>
35 <relativePath /> <!-- lookup parent from repository -->
39 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
41 <nexusproxy>https://nexus.onap.org</nexusproxy>
42 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
43 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
44 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
45 <java.version>1.8</java.version>
46 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
47 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
48 <timestamp>${maven.build.timestamp}</timestamp>
49 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
51 <docker.tag>${project.version}-${timestamp}</docker.tag>
52 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
54 <sonar.language>java</sonar.language>
55 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
56 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
57 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
58 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
59 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
60 <sonar.projectVersion>${project.version}</sonar.projectVersion>
61 <sonar.coverage.exclusions>**/model/**/*</sonar.coverage.exclusions>
66 <id>maven2-repository.java.net</id>
67 <name>Java.net Repository for Maven</name>
68 <url>http://download.java.net/maven/2/</url>
69 <layout>default</layout>
72 <id>ecomp-snapshots</id>
73 <name>Snapshot Repository</name>
74 <url>https://nexus.onap.org/content/repositories/releases/</url>
77 <id>ecomp-staging</id>
78 <name>Staging Repository</name>
79 <url>https://nexus.onap.org/content/repositories/staging/</url>
83 <distributionManagement>
85 <id>ecomp-releases</id>
86 <name>Release Repository</name>
87 <url>${nexusproxy}/${releaseNexusPath}</url>
90 <id>ecomp-snapshots</id>
91 <name>Snapshot Repository</name>
92 <url>${nexusproxy}/${snapshotNexusPath}</url>
94 </distributionManagement>
99 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
106 <groupId>org.springframework.boot</groupId>
107 <artifactId>spring-boot-starter-web</artifactId>
110 <groupId>ch.qos.logback</groupId>
111 <artifactId>logback-classic</artifactId>
117 <groupId>ch.qos.logback</groupId>
118 <artifactId>logback-classic</artifactId>
119 <version>1.2.3</version>
123 <groupId>org.springframework.boot</groupId>
124 <artifactId>spring-boot-starter-data-jpa</artifactId>
128 <groupId>org.apache.commons</groupId>
129 <artifactId>commons-io</artifactId>
130 <version>1.3.2</version>
134 <groupId>commons-beanutils</groupId>
135 <artifactId>commons-beanutils</artifactId>
136 <version>1.9.3</version>
140 <groupId>javax.validation</groupId>
141 <artifactId>validation-api</artifactId>
142 <version>2.0.1.Final</version>
146 <groupId>org.apache.commons</groupId>
147 <artifactId>commons-lang3</artifactId>
148 <version>3.4</version>
154 <groupId>org.springframework.boot</groupId>
155 <artifactId>spring-boot-starter-data-mongodb</artifactId>
161 <groupId>org.mariadb.jdbc</groupId>
162 <artifactId>mariadb-java-client</artifactId>
163 <version>1.1.7</version>
169 <groupId>io.swagger</groupId>
170 <artifactId>swagger-annotations</artifactId>
171 <version>1.5.18</version>
177 <groupId>com.fasterxml.jackson.dataformat</groupId>
178 <artifactId>jackson-dataformat-yaml</artifactId>
179 <version>2.8.0</version>
185 <groupId>com.bazaarvoice.jolt</groupId>
186 <artifactId>jolt-core</artifactId>
187 <version>0.1.0</version>
190 <groupId>com.fasterxml.jackson.core</groupId>
191 <artifactId>jackson-databind</artifactId>
197 <groupId>com.bazaarvoice.jolt</groupId>
198 <artifactId>json-utils</artifactId>
199 <version>0.1.0</version>
205 <groupId>org.springframework.boot</groupId>
206 <artifactId>spring-boot-starter-test</artifactId>
213 <groupId>com.h2database</groupId>
214 <artifactId>h2</artifactId>
219 <groupId>de.flapdoodle.embed</groupId>
220 <artifactId>de.flapdoodle.embed.mongo</artifactId>
221 <version>${embedded-mongo.version}</version>
225 <!-- test wiremock -->
228 <groupId>org.springframework.cloud</groupId>
229 <artifactId>spring-cloud-contract-wiremock</artifactId>
230 <version>1.0.0.RELEASE</version>
235 <groupId>org.eclipse.jetty</groupId>
236 <artifactId>jetty-server</artifactId>
237 <version>9.4.7.RC0</version>
242 <groupId>org.eclipse.jetty</groupId>
243 <artifactId>jetty-servlet</artifactId>
248 <groupId>org.eclipse.jetty</groupId>
249 <artifactId>jetty-servlets</artifactId>
256 <groupId>org.springframework.boot</groupId>
257 <artifactId>spring-boot-devtools</artifactId>
258 <scope>runtime</scope>
266 <groupId>org.springframework.boot</groupId>
267 <artifactId>spring-boot-maven-plugin</artifactId>
270 <groupId>org.sonatype.plugins</groupId>
271 <artifactId>nexus-staging-maven-plugin</artifactId>
272 <version>1.6.7</version>
273 <extensions>true</extensions>
275 <nexusUrl>${nexusproxy}</nexusUrl>
276 <stagingProfileId>176c31dfe190a</stagingProfileId>
277 <serverId>ecomp-staging</serverId>
281 <groupId>org.apache.maven.plugins</groupId>
282 <artifactId>maven-site-plugin</artifactId>
283 <version>3.6</version>
286 <groupId>org.apache.maven.wagon</groupId>
287 <artifactId>wagon-webdav-jackrabbit</artifactId>
288 <version>2.10</version>
293 <groupId>com.mycila</groupId>
294 <artifactId>license-maven-plugin</artifactId>
295 <version>3.0</version>
297 <header>LICENSE.TXT</header>
299 <include>restclient/**</include>
300 <include>src/**</include>
301 <include>pom.xml</include>
303 <skipExistingHeaders>true</skipExistingHeaders>
306 <http>SCRIPT_STYLE</http>
312 <!-- Set goal to "format" to auto update license headers -->
315 <phase>process-sources</phase>
320 <groupId>org.codehaus.mojo</groupId>
321 <artifactId>sonar-maven-plugin</artifactId>
322 <version>3.2</version>
325 <groupId>org.jacoco</groupId>
326 <artifactId>jacoco-maven-plugin</artifactId>
327 <version>0.7.7.201606060606</version>
329 <dumpOnExit>true</dumpOnExit>
331 <include>org.onap.nbi.*</include>
334 <exclude>**/model/**/*</exclude>
339 <id>pre-unit-test</id>
341 <goal>prepare-agent</goal>
344 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
345 <!-- <append>true</append> -->
349 <id>pre-integration-test</id>
350 <phase>pre-integration-test</phase>
352 <goal>prepare-agent</goal>
355 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
356 <!-- <append>true</append> -->
363 <phase>post-integration-test</phase>
366 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
367 <directory>${project.build.directory}/coverage-reports</directory>
369 <include>*.exec</include>
373 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
379 <artifactId>maven-source-plugin</artifactId>
382 <id>attach-sources</id>
383 <phase>deploy</phase>
385 <goal>jar-no-fork</goal>
401 <groupId>io.fabric8</groupId>
402 <artifactId>docker-maven-plugin</artifactId>
403 <version>0.25.0</version>
405 <verbose>true</verbose>
406 <apiVersion>1.23</apiVersion>
407 <pullRegistry>${docker.pull.registry}</pullRegistry>
408 <pushRegistry>${docker.push.registry}</pushRegistry>
411 <name>onap/externalapi/nbi</name>
412 <alias>onap/externalapi/nbi</alias>
414 <cleanup>true</cleanup>
416 <tag>${docker.tag}</tag>
417 <tag>${docker.latest.tag}</tag>
419 <dockerFileDir>${project.basedir}</dockerFileDir>
421 <PKG_FILENAME>${project.build.finalName}.${project.packaging}</PKG_FILENAME>
429 <id>clean-images</id>
430 <phase>pre-clean</phase>
435 <removeMode>all</removeMode>
439 <id>generate-images</id>
440 <phase>package</phase>
447 <phase>deploy</phase>