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 <!-- Copyright (c) 2018 Orange Licensed under the Apache License, Version
20 2.0 (the "License"); you may not use this file except in compliance with
21 the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
22 Unless required by applicable law or agreed to in writing, software distributed
23 under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
24 OR CONDITIONS OF ANY KIND, either express or implied. See the License for
25 the specific language governing permissions and limitations under the License. -->
26 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
27 xmlns="http://maven.apache.org/POM/4.0.0"
28 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
29 <modelVersion>4.0.0</modelVersion>
31 <groupId>org.onap.externalapi-nbi</groupId>
32 <artifactId>nbi-rest-services</artifactId>
33 <version>5.0.1-SNAPSHOT</version>
34 <packaging>jar</packaging>
36 <name>externalapi-nbi</name>
39 <groupId>org.onap.oparent</groupId>
40 <artifactId>oparent</artifactId>
41 <version>3.0.0-SNAPSHOT</version>
45 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
47 <start-class>org.onap.nbi.Application</start-class>
48 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
49 <nexusproxy>https://nexus.onap.org</nexusproxy>
50 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
51 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
52 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
53 <java.version>1.8</java.version>
54 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
55 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
56 <timestamp>${maven.build.timestamp}</timestamp>
57 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
59 <docker.tag>${project.version}-${timestamp}</docker.tag>
60 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
62 <sonar.language>java</sonar.language>
63 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
64 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
65 </sonar.surefire.reportsPath>
66 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec
67 </sonar.jacoco.reportPath>
68 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec
69 </sonar.jacoco.itReportPath>
70 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
71 <sonar.projectVersion>${project.version}</sonar.projectVersion>
72 <sonar.coverage.exclusions>**/model/**/*</sonar.coverage.exclusions>
77 <!--<id>maven2-repository.java.net</id>-->
78 <!--<name>Java.net Repository for Maven</name>-->
79 <!--<url>http://download.java.net/maven/2/</url>-->
80 <!--<layout>default</layout>-->
83 <!--<id>ecomp-release</id>-->
84 <!--<name>Snapshot Repository</name>-->
85 <!--<url>https://nexus.onap.org/content/repositories/releases/</url>-->
88 <!--<id>ecomp-staging</id>-->
89 <!--<name>Staging Repository</name>-->
90 <!--<url>https://nexus.onap.org/content/repositories/staging/</url>-->
93 <!--<id>ecomp-snapshots</id>-->
94 <!--<name>Snapshot Repository</name>-->
95 <!--<url>https://nexus.onap.org/content/repositories/snapshots/</url>-->
97 <!--</repositories>-->
99 <distributionManagement>
101 <id>ecomp-releases</id>
102 <name>Release Repository</name>
103 <url>${nexusproxy}/${releaseNexusPath}</url>
106 <id>ecomp-snapshots</id>
107 <name>Snapshot Repository</name>
108 <url>${nexusproxy}/${snapshotNexusPath}</url>
109 </snapshotRepository>
110 </distributionManagement>
115 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
119 <dependencyManagement>
122 <groupId>org.springframework.boot</groupId>
123 <artifactId>spring-boot-dependencies</artifactId>
124 <version>2.1.7.RELEASE</version>
126 <scope>import</scope>
129 </dependencyManagement>
134 <groupId>org.springframework.boot</groupId>
135 <artifactId>spring-boot-starter-web</artifactId>
138 <groupId>org.apache.tomcat.embed</groupId>
139 <artifactId>tomcat-embed-core</artifactId>
145 <groupId>org.apache.tomcat.embed</groupId>
146 <artifactId>tomcat-embed-core</artifactId>
147 <version>9.0.24</version>
151 <groupId>org.springframework.boot</groupId>
152 <artifactId>spring-boot-starter-data-jpa</artifactId>
156 <groupId>org.springframework.boot</groupId>
157 <artifactId>spring-boot-starter-aop</artifactId>
161 <groupId>commons-io</groupId>
162 <artifactId>commons-io</artifactId>
163 <version>2.6</version>
167 <groupId>commons-beanutils</groupId>
168 <artifactId>commons-beanutils</artifactId>
172 <groupId>javax.validation</groupId>
173 <artifactId>validation-api</artifactId>
177 <groupId>org.apache.commons</groupId>
178 <artifactId>commons-lang3</artifactId>
184 <groupId>org.springframework.boot</groupId>
185 <artifactId>spring-boot-starter-data-mongodb</artifactId>
191 <groupId>org.mariadb.jdbc</groupId>
192 <artifactId>mariadb-java-client</artifactId>
198 <groupId>io.swagger</groupId>
199 <artifactId>swagger-annotations</artifactId>
200 <version>1.5.23</version>
203 <!-- swagger core -->
205 <groupId>io.swagger</groupId>
206 <artifactId>swagger-core</artifactId>
207 <version>1.5.23</version>
213 <groupId>com.fasterxml.jackson.core</groupId>
214 <artifactId>jackson-databind</artifactId>
215 <version>2.9.9.3</version>
219 <groupId>com.fasterxml.jackson.dataformat</groupId>
220 <artifactId>jackson-dataformat-yaml</artifactId>
223 <!-- sdc tosca parser -->
226 <groupId>org.onap.sdc.sdc-tosca</groupId>
227 <artifactId>sdc-tosca</artifactId>
228 <version>1.6.0</version>
231 <groupId>com.google.guava</groupId>
232 <artifactId>guava</artifactId>
235 <groupId>commons-codec</groupId>
236 <artifactId>commons-codec</artifactId>
242 <groupId>commons-codec</groupId>
243 <artifactId>commons-codec</artifactId>
244 <version>1.13</version>
250 <groupId>com.bazaarvoice.jolt</groupId>
251 <artifactId>jolt-core</artifactId>
252 <version>0.1.1</version>
255 <groupId>com.fasterxml.jackson.core</groupId>
256 <artifactId>jackson-databind</artifactId>
262 <groupId>com.bazaarvoice.jolt</groupId>
263 <artifactId>json-utils</artifactId>
264 <version>0.1.1</version>
267 <groupId>com.fasterxml.jackson.core</groupId>
268 <artifactId>jackson-databind</artifactId>
276 <groupId>org.springframework.boot</groupId>
277 <artifactId>spring-boot-starter-test</artifactId>
284 <groupId>com.h2database</groupId>
285 <artifactId>h2</artifactId>
290 <groupId>de.flapdoodle.embed</groupId>
291 <artifactId>de.flapdoodle.embed.mongo</artifactId>
295 <!-- test wiremock -->
298 <groupId>org.springframework.cloud</groupId>
299 <artifactId>spring-cloud-contract-wiremock</artifactId>
300 <version>1.2.7.RELEASE</version>
304 <groupId>com.fasterxml.jackson.core</groupId>
305 <artifactId>jackson-databind</artifactId>
308 <groupId>commons-codec</groupId>
309 <artifactId>commons-codec</artifactId>
315 <groupId>org.eclipse.jetty</groupId>
316 <artifactId>jetty-servlet</artifactId>
321 <groupId>org.eclipse.jetty</groupId>
322 <artifactId>jetty-servlets</artifactId>
329 <groupId>org.springframework.boot</groupId>
330 <artifactId>spring-boot-devtools</artifactId>
331 <scope>runtime</scope>
336 <groupId>org.onap.msb.java-sdk</groupId>
337 <artifactId>msb-java-sdk</artifactId>
338 <version>1.2.5</version>
341 <groupId>com.google.guava</groupId>
342 <artifactId>guava</artifactId>
345 <groupId>com.squareup.okhttp3</groupId>
346 <artifactId>okhttp</artifactId>
352 <groupId>com.squareup.okhttp3</groupId>
353 <artifactId>okhttp</artifactId>
354 <version>3.14.2</version>
358 <groupId>com.google.guava</groupId>
359 <artifactId>guava</artifactId>
365 <groupId>com.intuit.karate</groupId>
366 <artifactId>karate-junit4</artifactId>
367 <version>0.9.4</version>
372 <groupId>com.intuit.karate</groupId>
373 <artifactId>karate-apache</artifactId>
374 <version>0.9.4</version>
383 <directory>src/test/java</directory>
385 <exclude>**/*.java</exclude>
389 <directory>src/test/resources</directory>
394 <groupId>org.springframework.boot</groupId>
395 <artifactId>spring-boot-maven-plugin</artifactId>
396 <version>2.2.1.RELEASE</version>
400 <goal>repackage</goal>
403 <mainClass>org.onap.nbi.Application</mainClass>
409 <groupId>org.apache.maven.plugins</groupId>
410 <artifactId>maven-surefire-plugin</artifactId>
411 <version>2.22.2</version>
414 <!-- --illegal-access=permit-->
417 <include>org/onap/nbi/test/KarateApiTest.java</include>
418 <include>org/onap/nbi/test/ExecutionTaskTest.java</include>
419 <include>org/onap/nbi/test/ServiceOrderRepositoryTest.java</include>
420 <include>org/onap/nbi/apis/servicecatalog/ToscaInfosProcessorTest.java</include>
425 <groupId>org.apache.maven.plugins</groupId>
426 <artifactId>maven-site-plugin</artifactId>
429 <groupId>org.apache.maven.wagon</groupId>
430 <artifactId>wagon-webdav-jackrabbit</artifactId>
431 <version>2.10</version>
436 <groupId>com.mycila</groupId>
437 <artifactId>license-maven-plugin</artifactId>
438 <version>3.0</version>
440 <header>LICENSE.TXT</header>
442 <include>restclient/**</include>
443 <include>src/**</include>
444 <include>**/*.xml</include>
445 <include>**/*.xsd</include>
446 <include>**/*.yml</include>
447 <include>**/*.yaml</include>
448 <include>**/*.plantuml</include>
451 <!-- karate-config.js doesn't support comment, and is mandatory by
453 <exclude>src/test/java/karate-config.js</exclude>
454 <exclude>releases/**/*.yaml</exclude>
456 <skipExistingHeaders>true</skipExistingHeaders>
459 <http>SCRIPT_STYLE</http>
461 <yaml>SCRIPT_STYLE</yaml>
462 <yml>SCRIPT_STYLE</yml>
463 <feature>SCRIPT_STYLE</feature>
464 <plantuml>SCRIPT_STYLE</plantuml>
470 <!-- Set goal to "format" to auto update license headers -->
473 <phase>process-sources</phase>
478 <groupId>org.codehaus.mojo</groupId>
479 <artifactId>sonar-maven-plugin</artifactId>
480 <version>3.2</version>
483 <groupId>org.jacoco</groupId>
484 <artifactId>jacoco-maven-plugin</artifactId>
485 <version>0.8.5</version>
487 <dumpOnExit>true</dumpOnExit>
489 <include>org.onap.nbi.*</include>
492 <exclude>**/model/**/*</exclude>
497 <id>pre-unit-test</id>
499 <goal>prepare-agent</goal>
502 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
506 <id>pre-integration-test</id>
507 <phase>pre-integration-test</phase>
509 <goal>prepare-agent</goal>
512 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
519 <phase>post-integration-test</phase>
523 implementation="org.apache.maven.shared.model.fileset.FileSet">
524 <directory>${project.build.directory}/coverage-reports</directory>
526 <include>*.exec</include>
530 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
536 <artifactId>maven-source-plugin</artifactId>
537 <version>3.2.0</version>
540 <id>attach-sources</id>
541 <phase>deploy</phase>
543 <goal>jar-no-fork</goal>
557 <groupId>io.fabric8</groupId>
558 <artifactId>docker-maven-plugin</artifactId>
559 <version>0.28.0</version>
561 <verbose>true</verbose>
562 <apiVersion>1.23</apiVersion>
563 <pullRegistry>${docker.pull.registry}</pullRegistry>
564 <pushRegistry>${docker.push.registry}</pushRegistry>
567 <name>onap/externalapi/nbi:${docker.tag}</name>
569 <cleanup>true</cleanup>
572 <tag>${docker.latest.tag}</tag>
574 <dockerFileDir>${project.basedir}</dockerFileDir>
576 <PKG_FILENAME>${project.build.finalName}.${project.packaging}</PKG_FILENAME>
584 <id>clean-images</id>
585 <phase>pre-clean</phase>
590 <removeMode>all</removeMode>
594 <id>generate-images</id>
595 <phase>package</phase>
602 <phase>deploy</phase>
613 <id>onap-settings</id>
615 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
616 <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw
617 </onap.nexus.rawrepo.baseurl.upload>
618 <onap.nexus.rawrepo.baseurl.download>
619 https://nexus.onap.org/service/local/repositories/raw/content
620 </onap.nexus.rawrepo.baseurl.download>
621 <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid>
623 <!-- properties for Nexus Docker registry -->
624 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
625 <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
626 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
627 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
631 <id>onap-snapshots</id>
634 <id>onap-snapshots</id>
635 <name>onap-snapshots</name>
636 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
638 <enabled>false</enabled>
641 <enabled>true</enabled>
647 <id>onap-snapshots</id>
648 <name>onap-snapshots</name>
649 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
651 <enabled>false</enabled>
654 <enabled>true</enabled>
657 </pluginRepositories>
660 <id>onap-releases</id>
663 <id>onap-releases</id>
664 <name>onap-releases</name>
665 <url>https://nexus.onap.org/content/repositories/releases/</url>
667 <enabled>true</enabled>
670 <enabled>false</enabled>
676 <id>onap-releases</id>
677 <name>onap-releases</name>
678 <url>https://nexus.onap.org/content/repositories/releases/</url>
680 <enabled>true</enabled>
683 <enabled>false</enabled>
686 </pluginRepositories>
693 <url>http://repo1.maven.org/maven2/</url>
697 <name>onap-public</name>
698 <url>https://nexus.onap.org/content/repositories/public/</url>
700 <enabled>true</enabled>
703 <enabled>false</enabled>
710 <url>http://repo1.maven.org/maven2/</url>
714 <name>onap-public</name>
715 <url>https://nexus.onap.org/content/repositories/public/</url>
717 <enabled>true</enabled>
720 <enabled>false</enabled>
723 </pluginRepositories>