1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Copyright (c) 2018 Orange Licensed under the Apache License, Version
3 2.0 (the "License"); you may not use this file except in compliance with
4 the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
5 Unless required by applicable law or agreed to in writing, software distributed
6 under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
7 OR CONDITIONS OF ANY KIND, either express or implied. See the License for
8 the specific language governing permissions and limitations under the License. -->
9 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10 xmlns="http://maven.apache.org/POM/4.0.0"
11 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12 <modelVersion>4.0.0</modelVersion>
14 <groupId>org.onap.externalapi-nbi</groupId>
15 <artifactId>nbi-rest-services</artifactId>
16 <version>3.0.1</version>
17 <packaging>jar</packaging>
19 <name>externalapi-nbi</name>
22 <groupId>org.springframework.boot</groupId>
23 <artifactId>spring-boot-starter-parent</artifactId>
24 <version>2.1.2.RELEASE</version>
25 <relativePath/> <!-- lookup parent from repository -->
29 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
30 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
31 <nexusproxy>https://nexus.onap.org</nexusproxy>
32 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
33 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
34 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
35 <java.version>1.8</java.version>
36 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
37 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
38 <timestamp>${maven.build.timestamp}</timestamp>
39 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
41 <docker.tag>${project.version}-${timestamp}</docker.tag>
42 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
44 <sonar.language>java</sonar.language>
45 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
46 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
47 </sonar.surefire.reportsPath>
48 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec
49 </sonar.jacoco.reportPath>
50 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec
51 </sonar.jacoco.itReportPath>
52 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
53 <sonar.projectVersion>${project.version}</sonar.projectVersion>
54 <sonar.coverage.exclusions>**/model/**/*</sonar.coverage.exclusions>
59 <id>maven2-repository.java.net</id>
60 <name>Java.net Repository for Maven</name>
61 <url>http://download.java.net/maven/2/</url>
62 <layout>default</layout>
65 <id>ecomp-snapshots</id>
66 <name>Snapshot Repository</name>
67 <url>https://nexus.onap.org/content/repositories/releases/</url>
70 <id>ecomp-staging</id>
71 <name>Staging Repository</name>
72 <url>https://nexus.onap.org/content/repositories/staging/</url>
76 <distributionManagement>
78 <id>ecomp-releases</id>
79 <name>Release Repository</name>
80 <url>${nexusproxy}/${releaseNexusPath}</url>
83 <id>ecomp-snapshots</id>
84 <name>Snapshot Repository</name>
85 <url>${nexusproxy}/${snapshotNexusPath}</url>
87 </distributionManagement>
92 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
99 <groupId>org.springframework.boot</groupId>
100 <artifactId>spring-boot-starter-web</artifactId>
103 <groupId>ch.qos.logback</groupId>
104 <artifactId>logback-classic</artifactId>
107 <groupId>com.fasterxml.jackson.core</groupId>
108 <artifactId>jackson-databind</artifactId>
114 <groupId>com.fasterxml.jackson.core</groupId>
115 <artifactId>jackson-databind</artifactId>
116 <version>2.9.4</version>
120 <groupId>ch.qos.logback</groupId>
121 <artifactId>logback-classic</artifactId>
122 <version>1.2.3</version>
126 <groupId>org.springframework.boot</groupId>
127 <artifactId>spring-boot-starter-data-jpa</artifactId>
130 <groupId>org.springframework.data</groupId>
131 <artifactId>spring-data-commons</artifactId>
137 <groupId>org.springframework.data</groupId>
138 <artifactId>spring-data-commons</artifactId>
139 <version>2.1.4.RELEASE</version>
143 <groupId>org.springframework.boot</groupId>
144 <artifactId>spring-boot-starter-aop</artifactId>
148 <groupId>org.apache.commons</groupId>
149 <artifactId>commons-io</artifactId>
150 <version>1.3.2</version>
154 <groupId>commons-beanutils</groupId>
155 <artifactId>commons-beanutils</artifactId>
156 <version>1.9.3</version>
160 <groupId>javax.validation</groupId>
161 <artifactId>validation-api</artifactId>
162 <version>2.0.1.Final</version>
166 <groupId>org.apache.commons</groupId>
167 <artifactId>commons-lang3</artifactId>
168 <version>3.4</version>
174 <groupId>org.springframework.boot</groupId>
175 <artifactId>spring-boot-starter-data-mongodb</artifactId>
181 <groupId>org.mariadb.jdbc</groupId>
182 <artifactId>mariadb-java-client</artifactId>
183 <version>1.1.7</version>
189 <groupId>io.swagger</groupId>
190 <artifactId>swagger-annotations</artifactId>
191 <version>1.5.18</version>
197 <groupId>com.fasterxml.jackson.dataformat</groupId>
198 <artifactId>jackson-dataformat-yaml</artifactId>
199 <version>2.9.6</version>
202 <!-- sdc tosca parser -->
205 <groupId>org.onap.sdc.sdc-tosca</groupId>
206 <artifactId>sdc-tosca</artifactId>
207 <version>1.4.6</version>
213 <groupId>com.bazaarvoice.jolt</groupId>
214 <artifactId>jolt-core</artifactId>
215 <version>0.1.0</version>
218 <groupId>com.fasterxml.jackson.core</groupId>
219 <artifactId>jackson-databind</artifactId>
225 <groupId>com.bazaarvoice.jolt</groupId>
226 <artifactId>json-utils</artifactId>
227 <version>0.1.0</version>
230 <groupId>com.fasterxml.jackson.core</groupId>
231 <artifactId>jackson-databind</artifactId>
239 <groupId>org.springframework.boot</groupId>
240 <artifactId>spring-boot-starter-test</artifactId>
247 <groupId>com.h2database</groupId>
248 <artifactId>h2</artifactId>
253 <groupId>de.flapdoodle.embed</groupId>
254 <artifactId>de.flapdoodle.embed.mongo</artifactId>
255 <version>${embedded-mongo.version}</version>
259 <!-- test wiremock -->
262 <groupId>org.springframework.cloud</groupId>
263 <artifactId>spring-cloud-contract-wiremock</artifactId>
264 <version>1.2.6.RELEASE</version>
268 <groupId>com.fasterxml.jackson.core</groupId>
269 <artifactId>jackson-databind</artifactId>
275 <groupId>org.eclipse.jetty</groupId>
276 <artifactId>jetty-servlet</artifactId>
281 <groupId>org.eclipse.jetty</groupId>
282 <artifactId>jetty-servlets</artifactId>
289 <groupId>org.springframework.boot</groupId>
290 <artifactId>spring-boot-devtools</artifactId>
291 <scope>runtime</scope>
296 <groupId>org.onap.msb.java-sdk</groupId>
297 <artifactId>msb-java-sdk</artifactId>
298 <version>1.2.0</version>
301 <groupId>com.fasterxml.jackson.core</groupId>
302 <artifactId>jackson-databind</artifactId>
310 <groupId>com.intuit.karate</groupId>
311 <artifactId>karate-junit4</artifactId>
312 <version>0.9.0</version>
316 <groupId>com.intuit.karate</groupId>
317 <artifactId>karate-apache</artifactId>
318 <version>0.9.0</version>
328 <directory>src/test/java</directory>
330 <exclude>**/*.java</exclude>
334 <directory>src/test/resources</directory>
339 <groupId>org.springframework.boot</groupId>
340 <artifactId>spring-boot-maven-plugin</artifactId>
343 <groupId>org.apache.maven.plugins</groupId>
344 <artifactId>maven-surefire-plugin</artifactId>
347 <include>org/onap/nbi/test/KarateApiTest.java</include>
348 <include>org/onap/nbi/test/ExecutionTaskTest.java</include>
349 <include>org/onap/nbi/test/ServiceOrderRepositoryTest.java</include>
350 <include>org/onap/nbi/apis/servicecatalog/ToscaInfosProcessorTest.java</include>
355 <groupId>org.sonatype.plugins</groupId>
356 <artifactId>nexus-staging-maven-plugin</artifactId>
357 <version>1.6.7</version>
358 <extensions>true</extensions>
360 <nexusUrl>${nexusproxy}</nexusUrl>
361 <stagingProfileId>176c31dfe190a</stagingProfileId>
362 <serverId>ecomp-staging</serverId>
366 <groupId>org.apache.maven.plugins</groupId>
367 <artifactId>maven-site-plugin</artifactId>
368 <version>3.6</version>
371 <groupId>org.apache.maven.wagon</groupId>
372 <artifactId>wagon-webdav-jackrabbit</artifactId>
373 <version>2.10</version>
378 <groupId>com.mycila</groupId>
379 <artifactId>license-maven-plugin</artifactId>
380 <version>3.0</version>
382 <header>LICENSE.TXT</header>
384 <include>restclient/**</include>
385 <include>src/**</include>
386 <include>./**/*.xml</include>
387 <include>./**/*.xml</include>
388 <include>./**/*.yml</include>
389 <include>./**/*.yaml</include>
392 <!-- karate-config.js doesn't support comment, and is mandatory by
394 <exclude>src/test/java/karate-config.js</exclude>
396 <skipExistingHeaders>true</skipExistingHeaders>
399 <http>SCRIPT_STYLE</http>
405 <!-- Set goal to "format" to auto update license headers -->
408 <phase>process-sources</phase>
413 <groupId>org.codehaus.mojo</groupId>
414 <artifactId>sonar-maven-plugin</artifactId>
415 <version>3.2</version>
418 <!-- <groupId>org.jacoco</groupId> -->
419 <!-- <artifactId>jacoco-maven-plugin</artifactId> -->
420 <!-- <version>0.8.1</version> -->
421 <!-- <configuration> -->
422 <!-- <dumpOnExit>true</dumpOnExit> -->
424 <!-- <include>org.onap.nbi.*</include> -->
427 <!-- <exclude>**/model/**/*</exclude> -->
429 <!-- </configuration> -->
430 <!-- <executions> -->
432 <!-- <id>pre-unit-test</id> -->
434 <!-- <goal>prepare-agent</goal> -->
436 <!-- <configuration> -->
437 <!-- <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile> -->
438 <!-- <append>true</append> -->
439 <!-- </configuration> -->
440 <!-- </execution> -->
442 <!-- <id>pre-integration-test</id> -->
443 <!-- <phase>pre-integration-test</phase> -->
445 <!-- <goal>prepare-agent</goal> -->
447 <!-- <configuration> -->
448 <!-- <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> -->
449 <!-- <append>true</append> -->
450 <!-- </configuration> -->
451 <!-- </execution> -->
454 <!-- <goal>merge</goal> -->
456 <!-- <phase>post-integration-test</phase> -->
457 <!-- <configuration> -->
460 <!-- implementation="org.apache.maven.shared.model.fileset.FileSet"> -->
461 <!-- <directory>${project.build.directory}/coverage-reports</directory> -->
463 <!-- <include>*.exec</include> -->
467 <!-- <destFile>${project.build.directory}/jacoco-dev.exec</destFile> -->
468 <!-- </configuration> -->
469 <!-- </execution> -->
470 <!-- </executions> -->
473 <artifactId>maven-source-plugin</artifactId>
476 <id>attach-sources</id>
477 <phase>deploy</phase>
479 <goal>jar-no-fork</goal>
494 <groupId>io.fabric8</groupId>
495 <artifactId>docker-maven-plugin</artifactId>
496 <version>0.26.1</version>
498 <verbose>true</verbose>
499 <apiVersion>1.23</apiVersion>
500 <pullRegistry>${docker.pull.registry}</pullRegistry>
501 <pushRegistry>${docker.push.registry}</pushRegistry>
504 <name>onap/externalapi/nbi:${docker.tag}</name>
506 <cleanup>true</cleanup>
509 <tag>${docker.latest.tag}</tag>
511 <dockerFileDir>${project.basedir}</dockerFileDir>
513 <PKG_FILENAME>${project.build.finalName}.${project.packaging}</PKG_FILENAME>
521 <id>clean-images</id>
522 <phase>pre-clean</phase>
527 <removeMode>all</removeMode>
531 <id>generate-images</id>
532 <phase>package</phase>
539 <phase>deploy</phase>