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>4.0.0-SNAPSHOT</version>
17 <packaging>jar</packaging>
19 <name>externalapi-nbi</name>
22 <groupId>org.onap.oparent</groupId>
23 <artifactId>oparent</artifactId>
24 <version>2.0.0-SNAPSHOT</version>
28 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
29 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
30 <maven.compiler.target>1.8</maven.compiler.target>
31 <maven.compiler.source>1.8</maven.compiler.source>
32 <start-class>org.onap.nbi.Application</start-class>
33 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
34 <nexusproxy>https://nexus.onap.org</nexusproxy>
35 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
36 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
37 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
38 <java.version>1.8</java.version>
39 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
40 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
41 <timestamp>${maven.build.timestamp}</timestamp>
42 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
44 <docker.tag>${project.version}-${timestamp}</docker.tag>
45 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
47 <sonar.language>java</sonar.language>
48 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
49 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
50 </sonar.surefire.reportsPath>
51 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec
52 </sonar.jacoco.reportPath>
53 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec
54 </sonar.jacoco.itReportPath>
55 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
56 <sonar.projectVersion>${project.version}</sonar.projectVersion>
57 <sonar.coverage.exclusions>**/model/**/*</sonar.coverage.exclusions>
62 <!--<id>maven2-repository.java.net</id>-->
63 <!--<name>Java.net Repository for Maven</name>-->
64 <!--<url>http://download.java.net/maven/2/</url>-->
65 <!--<layout>default</layout>-->
68 <!--<id>ecomp-release</id>-->
69 <!--<name>Snapshot Repository</name>-->
70 <!--<url>https://nexus.onap.org/content/repositories/releases/</url>-->
73 <!--<id>ecomp-staging</id>-->
74 <!--<name>Staging Repository</name>-->
75 <!--<url>https://nexus.onap.org/content/repositories/staging/</url>-->
78 <!--<id>ecomp-snapshots</id>-->
79 <!--<name>Snapshot Repository</name>-->
80 <!--<url>https://nexus.onap.org/content/repositories/snapshots/</url>-->
82 <!--</repositories>-->
84 <distributionManagement>
86 <id>ecomp-releases</id>
87 <name>Release Repository</name>
88 <url>${nexusproxy}/${releaseNexusPath}</url>
91 <id>ecomp-snapshots</id>
92 <name>Snapshot Repository</name>
93 <url>${nexusproxy}/${snapshotNexusPath}</url>
95 </distributionManagement>
100 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
104 <dependencyManagement>
107 <groupId>org.springframework.boot</groupId>
108 <artifactId>spring-boot-dependencies</artifactId>
109 <version>2.1.3.RELEASE</version>
111 <scope>import</scope>
114 </dependencyManagement>
119 <groupId>org.springframework.boot</groupId>
120 <artifactId>spring-boot-starter-web</artifactId>
124 <groupId>org.springframework.boot</groupId>
125 <artifactId>spring-boot-starter-data-jpa</artifactId>
129 <groupId>org.springframework.boot</groupId>
130 <artifactId>spring-boot-starter-aop</artifactId>
134 <groupId>org.apache.commons</groupId>
135 <artifactId>commons-io</artifactId>
136 <version>1.3.2</version>
140 <groupId>commons-beanutils</groupId>
141 <artifactId>commons-beanutils</artifactId>
142 <version>1.9.3</version>
146 <groupId>javax.validation</groupId>
147 <artifactId>validation-api</artifactId>
151 <groupId>org.apache.commons</groupId>
152 <artifactId>commons-lang3</artifactId>
158 <groupId>org.springframework.boot</groupId>
159 <artifactId>spring-boot-starter-data-mongodb</artifactId>
165 <groupId>org.mariadb.jdbc</groupId>
166 <artifactId>mariadb-java-client</artifactId>
172 <groupId>io.swagger</groupId>
173 <artifactId>swagger-annotations</artifactId>
174 <version>1.5.18</version>
177 <!-- swagger core -->
179 <groupId>io.swagger</groupId>
180 <artifactId>swagger-core</artifactId>
181 <version>1.5.18</version>
187 <groupId>com.fasterxml.jackson.dataformat</groupId>
188 <artifactId>jackson-dataformat-yaml</artifactId>
191 <!-- sdc tosca parser -->
194 <groupId>org.onap.sdc.sdc-tosca</groupId>
195 <artifactId>sdc-tosca</artifactId>
196 <version>1.4.6</version>
199 <groupId>com.google.guava</groupId>
200 <artifactId>guava</artifactId>
208 <groupId>com.bazaarvoice.jolt</groupId>
209 <artifactId>jolt-core</artifactId>
210 <version>0.1.0</version>
213 <groupId>com.fasterxml.jackson.core</groupId>
214 <artifactId>jackson-databind</artifactId>
220 <groupId>com.bazaarvoice.jolt</groupId>
221 <artifactId>json-utils</artifactId>
222 <version>0.1.0</version>
225 <groupId>com.fasterxml.jackson.core</groupId>
226 <artifactId>jackson-databind</artifactId>
234 <groupId>org.springframework.boot</groupId>
235 <artifactId>spring-boot-starter-test</artifactId>
242 <groupId>com.h2database</groupId>
243 <artifactId>h2</artifactId>
248 <groupId>de.flapdoodle.embed</groupId>
249 <artifactId>de.flapdoodle.embed.mongo</artifactId>
253 <!-- test wiremock -->
256 <groupId>org.springframework.cloud</groupId>
257 <artifactId>spring-cloud-contract-wiremock</artifactId>
258 <version>1.2.6.RELEASE</version>
262 <groupId>com.fasterxml.jackson.core</groupId>
263 <artifactId>jackson-databind</artifactId>
269 <groupId>org.eclipse.jetty</groupId>
270 <artifactId>jetty-servlet</artifactId>
275 <groupId>org.eclipse.jetty</groupId>
276 <artifactId>jetty-servlets</artifactId>
283 <groupId>org.springframework.boot</groupId>
284 <artifactId>spring-boot-devtools</artifactId>
285 <scope>runtime</scope>
290 <groupId>org.onap.msb.java-sdk</groupId>
291 <artifactId>msb-java-sdk</artifactId>
292 <version>1.1.1</version>
295 <groupId>com.google.guava</groupId>
296 <artifactId>guava</artifactId>
302 <groupId>com.google.guava</groupId>
303 <artifactId>guava</artifactId>
309 <groupId>com.intuit.karate</groupId>
310 <artifactId>karate-junit4</artifactId>
311 <version>0.9.0</version>
316 <groupId>com.intuit.karate</groupId>
317 <artifactId>karate-apache</artifactId>
318 <version>0.9.0</version>
327 <directory>src/test/java</directory>
329 <exclude>**/*.java</exclude>
333 <directory>src/test/resources</directory>
338 <groupId>org.springframework.boot</groupId>
339 <artifactId>spring-boot-maven-plugin</artifactId>
343 <goal>repackage</goal>
346 <mainClass>org.onap.nbi.Application</mainClass>
352 <groupId>org.apache.maven.plugins</groupId>
353 <artifactId>maven-surefire-plugin</artifactId>
356 <include>org/onap/nbi/test/KarateApiTest.java</include>
357 <include>org/onap/nbi/test/ExecutionTaskTest.java</include>
358 <include>org/onap/nbi/test/ServiceOrderRepositoryTest.java</include>
359 <include>org/onap/nbi/apis/servicecatalog/ToscaInfosProcessorTest.java</include>
364 <groupId>org.sonatype.plugins</groupId>
365 <artifactId>nexus-staging-maven-plugin</artifactId>
366 <extensions>true</extensions>
368 <nexusUrl>${nexusproxy}</nexusUrl>
369 <stagingProfileId>176c31dfe190a</stagingProfileId>
370 <serverId>ecomp-staging</serverId>
374 <groupId>org.apache.maven.plugins</groupId>
375 <artifactId>maven-site-plugin</artifactId>
378 <groupId>org.apache.maven.wagon</groupId>
379 <artifactId>wagon-webdav-jackrabbit</artifactId>
380 <version>2.10</version>
385 <groupId>com.mycila</groupId>
386 <artifactId>license-maven-plugin</artifactId>
387 <version>3.0</version>
389 <header>LICENSE.TXT</header>
391 <include>restclient/**</include>
392 <include>src/**</include>
393 <include>./**/*.xml</include>
394 <include>./**/*.xml</include>
395 <include>./**/*.yml</include>
396 <include>./**/*.yaml</include>
399 <!-- karate-config.js doesn't support comment, and is mandatory by
401 <exclude>src/test/java/karate-config.js</exclude>
403 <skipExistingHeaders>true</skipExistingHeaders>
406 <http>SCRIPT_STYLE</http>
412 <!-- Set goal to "format" to auto update license headers -->
415 <phase>process-sources</phase>
420 <groupId>org.codehaus.mojo</groupId>
421 <artifactId>sonar-maven-plugin</artifactId>
422 <version>3.2</version>
425 <!-- <groupId>org.jacoco</groupId> -->
426 <!-- <artifactId>jacoco-maven-plugin</artifactId> -->
427 <!-- <version>0.8.1</version> -->
428 <!-- <configuration> -->
429 <!-- <dumpOnExit>true</dumpOnExit> -->
431 <!-- <include>org.onap.nbi.*</include> -->
434 <!-- <exclude>**/model/**/*</exclude> -->
436 <!-- </configuration> -->
437 <!-- <executions> -->
439 <!-- <id>pre-unit-test</id> -->
441 <!-- <goal>prepare-agent</goal> -->
443 <!-- <configuration> -->
444 <!-- <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile> -->
445 <!-- <append>true</append> -->
446 <!-- </configuration> -->
447 <!-- </execution> -->
449 <!-- <id>pre-integration-test</id> -->
450 <!-- <phase>pre-integration-test</phase> -->
452 <!-- <goal>prepare-agent</goal> -->
454 <!-- <configuration> -->
455 <!-- <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> -->
456 <!-- <append>true</append> -->
457 <!-- </configuration> -->
458 <!-- </execution> -->
461 <!-- <goal>merge</goal> -->
463 <!-- <phase>post-integration-test</phase> -->
464 <!-- <configuration> -->
467 <!-- implementation="org.apache.maven.shared.model.fileset.FileSet"> -->
468 <!-- <directory>${project.build.directory}/coverage-reports</directory> -->
470 <!-- <include>*.exec</include> -->
474 <!-- <destFile>${project.build.directory}/jacoco-dev.exec</destFile> -->
475 <!-- </configuration> -->
476 <!-- </execution> -->
477 <!-- </executions> -->
480 <artifactId>maven-source-plugin</artifactId>
483 <id>attach-sources</id>
484 <phase>deploy</phase>
486 <goal>jar-no-fork</goal>
501 <groupId>io.fabric8</groupId>
502 <artifactId>docker-maven-plugin</artifactId>
503 <version>0.28.0</version>
505 <verbose>true</verbose>
506 <apiVersion>1.23</apiVersion>
507 <pullRegistry>${docker.pull.registry}</pullRegistry>
508 <pushRegistry>${docker.push.registry}</pushRegistry>
511 <name>onap/externalapi/nbi:${docker.tag}</name>
513 <cleanup>true</cleanup>
516 <tag>${docker.latest.tag}</tag>
518 <dockerFileDir>${project.basedir}</dockerFileDir>
520 <PKG_FILENAME>${project.build.finalName}.${project.packaging}</PKG_FILENAME>
528 <id>clean-images</id>
529 <phase>pre-clean</phase>
534 <removeMode>all</removeMode>
538 <id>generate-images</id>
539 <phase>package</phase>
546 <phase>deploy</phase>
557 <id>onap-settings</id>
559 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
560 <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw
561 </onap.nexus.rawrepo.baseurl.upload>
562 <onap.nexus.rawrepo.baseurl.download>
563 https://nexus.onap.org/service/local/repositories/raw/content
564 </onap.nexus.rawrepo.baseurl.download>
565 <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid>
567 <!-- properties for Nexus Docker registry -->
568 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
569 <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
570 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
571 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
575 <id>onap-snapshots</id>
578 <id>onap-snapshots</id>
579 <name>onap-snapshots</name>
580 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
582 <enabled>false</enabled>
585 <enabled>true</enabled>
591 <id>onap-snapshots</id>
592 <name>onap-snapshots</name>
593 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
595 <enabled>false</enabled>
598 <enabled>true</enabled>
601 </pluginRepositories>
604 <id>onap-releases</id>
607 <id>onap-releases</id>
608 <name>onap-releases</name>
609 <url>https://nexus.onap.org/content/repositories/releases/</url>
611 <enabled>true</enabled>
614 <enabled>false</enabled>
620 <id>onap-releases</id>
621 <name>onap-releases</name>
622 <url>https://nexus.onap.org/content/repositories/releases/</url>
624 <enabled>true</enabled>
627 <enabled>false</enabled>
630 </pluginRepositories>
637 <url>http://repo1.maven.org/maven2/</url>
641 <name>onap-public</name>
642 <url>https://nexus.onap.org/content/repositories/public/</url>
644 <enabled>true</enabled>
647 <enabled>false</enabled>
654 <url>http://repo1.maven.org/maven2/</url>
658 <name>onap-public</name>
659 <url>https://nexus.onap.org/content/repositories/public/</url>
661 <enabled>true</enabled>
664 <enabled>false</enabled>
667 </pluginRepositories>