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>nbi-rest-services</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>
111 <groupId>org.springframework.boot</groupId>
112 <artifactId>spring-boot-starter-data-jpa</artifactId>
116 <groupId>org.apache.commons</groupId>
117 <artifactId>commons-io</artifactId>
118 <version>1.3.2</version>
122 <groupId>commons-beanutils</groupId>
123 <artifactId>commons-beanutils</artifactId>
124 <version>1.9.3</version>
128 <groupId>javax.validation</groupId>
129 <artifactId>validation-api</artifactId>
130 <version>2.0.1.Final</version>
134 <groupId>org.apache.commons</groupId>
135 <artifactId>commons-lang3</artifactId>
136 <version>3.4</version>
142 <groupId>org.springframework.boot</groupId>
143 <artifactId>spring-boot-starter-data-mongodb</artifactId>
149 <groupId>org.mariadb.jdbc</groupId>
150 <artifactId>mariadb-java-client</artifactId>
151 <version>1.1.7</version>
157 <groupId>io.swagger</groupId>
158 <artifactId>swagger-annotations</artifactId>
159 <version>1.5.18</version>
165 <groupId>com.fasterxml.jackson.dataformat</groupId>
166 <artifactId>jackson-dataformat-yaml</artifactId>
167 <version>2.8.0</version>
173 <groupId>com.bazaarvoice.jolt</groupId>
174 <artifactId>jolt-core</artifactId>
175 <version>0.1.0</version>
178 <groupId>com.fasterxml.jackson.core</groupId>
179 <artifactId>jackson-databind</artifactId>
185 <groupId>com.bazaarvoice.jolt</groupId>
186 <artifactId>json-utils</artifactId>
187 <version>0.1.0</version>
193 <groupId>org.springframework.boot</groupId>
194 <artifactId>spring-boot-starter-test</artifactId>
201 <groupId>com.h2database</groupId>
202 <artifactId>h2</artifactId>
207 <groupId>de.flapdoodle.embed</groupId>
208 <artifactId>de.flapdoodle.embed.mongo</artifactId>
209 <version>${embedded-mongo.version}</version>
213 <!-- test wiremock -->
216 <groupId>org.springframework.cloud</groupId>
217 <artifactId>spring-cloud-contract-wiremock</artifactId>
218 <version>1.0.0.RELEASE</version>
223 <groupId>org.eclipse.jetty</groupId>
224 <artifactId>jetty-server</artifactId>
225 <version>9.4.7.RC0</version>
230 <groupId>org.eclipse.jetty</groupId>
231 <artifactId>jetty-servlet</artifactId>
236 <groupId>org.eclipse.jetty</groupId>
237 <artifactId>jetty-servlets</artifactId>
244 <groupId>org.springframework.boot</groupId>
245 <artifactId>spring-boot-devtools</artifactId>
246 <scope>runtime</scope>
254 <groupId>org.springframework.boot</groupId>
255 <artifactId>spring-boot-maven-plugin</artifactId>
258 <groupId>org.sonatype.plugins</groupId>
259 <artifactId>nexus-staging-maven-plugin</artifactId>
260 <version>1.6.7</version>
261 <extensions>true</extensions>
263 <nexusUrl>${nexusproxy}</nexusUrl>
264 <stagingProfileId>176c31dfe190a</stagingProfileId>
265 <serverId>ecomp-staging</serverId>
269 <groupId>org.apache.maven.plugins</groupId>
270 <artifactId>maven-site-plugin</artifactId>
271 <version>3.6</version>
274 <groupId>org.apache.maven.wagon</groupId>
275 <artifactId>wagon-webdav-jackrabbit</artifactId>
276 <version>2.10</version>
281 <groupId>com.mycila</groupId>
282 <artifactId>license-maven-plugin</artifactId>
283 <version>3.0</version>
285 <header>LICENSE.TXT</header>
287 <include>restclient/**</include>
288 <include>src/**</include>
289 <include>pom.xml</include>
291 <skipExistingHeaders>true</skipExistingHeaders>
294 <http>SCRIPT_STYLE</http>
300 <!-- Set goal to "format" to auto update license headers -->
303 <phase>process-sources</phase>
308 <groupId>org.codehaus.mojo</groupId>
309 <artifactId>sonar-maven-plugin</artifactId>
310 <version>3.2</version>
313 <groupId>org.jacoco</groupId>
314 <artifactId>jacoco-maven-plugin</artifactId>
315 <version>0.7.7.201606060606</version>
317 <dumpOnExit>true</dumpOnExit>
319 <include>org.onap.nbi.*</include>
322 <exclude>**/model/**/*</exclude>
327 <id>pre-unit-test</id>
329 <goal>prepare-agent</goal>
332 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
333 <!-- <append>true</append> -->
337 <id>pre-integration-test</id>
338 <phase>pre-integration-test</phase>
340 <goal>prepare-agent</goal>
343 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
344 <!-- <append>true</append> -->
351 <phase>post-integration-test</phase>
354 <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
355 <directory>${project.build.directory}/coverage-reports</directory>
357 <include>*.exec</include>
361 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
367 <artifactId>maven-source-plugin</artifactId>
370 <id>attach-sources</id>
371 <phase>deploy</phase>
373 <goal>jar-no-fork</goal>
389 <groupId>io.fabric8</groupId>
390 <artifactId>docker-maven-plugin</artifactId>
391 <version>0.25.0</version>
393 <verbose>true</verbose>
394 <apiVersion>1.23</apiVersion>
395 <pullRegistry>${docker.pull.registry}</pullRegistry>
396 <pushRegistry>${docker.push.registry}</pushRegistry>
399 <name>onap/externalapi/nbi</name>
400 <alias>onap/externalapi/nbi</alias>
402 <cleanup>true</cleanup>
404 <tag>${docker.tag}</tag>
405 <tag>${docker.latest.tag}</tag>
407 <dockerFileDir>${project.basedir}</dockerFileDir>
409 <PKG_FILENAME>${project.build.finalName}.${project.packaging}</PKG_FILENAME>
417 <id>clean-images</id>
418 <phase>pre-clean</phase>
423 <removeMode>all</removeMode>
427 <id>generate-images</id>
428 <phase>package</phase>
435 <phase>deploy</phase>