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</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.2.2.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.30</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.10.1</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>
349 <groupId>com.squareup.retrofit2</groupId>
350 <artifactId>retrofit</artifactId>
356 <groupId>com.squareup.okhttp3</groupId>
357 <artifactId>okhttp</artifactId>
358 <version>4.3.1</version>
362 <groupId>com.google.guava</groupId>
363 <artifactId>guava</artifactId>
367 <groupId>com.squareup.retrofit2</groupId>
368 <artifactId>retrofit</artifactId>
369 <version>2.7.1</version>
375 <groupId>com.intuit.karate</groupId>
376 <artifactId>karate-junit4</artifactId>
377 <version>0.9.4</version>
382 <groupId>com.intuit.karate</groupId>
383 <artifactId>karate-apache</artifactId>
384 <version>0.9.4</version>
393 <directory>src/test/java</directory>
395 <exclude>**/*.java</exclude>
399 <directory>src/test/resources</directory>
404 <groupId>org.springframework.boot</groupId>
405 <artifactId>spring-boot-maven-plugin</artifactId>
406 <version>2.2.1.RELEASE</version>
410 <goal>repackage</goal>
413 <mainClass>org.onap.nbi.Application</mainClass>
419 <groupId>org.apache.maven.plugins</groupId>
420 <artifactId>maven-surefire-plugin</artifactId>
421 <version>2.22.2</version>
424 <!-- --illegal-access=permit-->
427 <include>org/onap/nbi/test/KarateApiTest.java</include>
428 <include>org/onap/nbi/test/ExecutionTaskTest.java</include>
429 <include>org/onap/nbi/test/ServiceOrderRepositoryTest.java</include>
430 <include>org/onap/nbi/apis/servicecatalog/ToscaInfosProcessorTest.java</include>
435 <groupId>org.apache.maven.plugins</groupId>
436 <artifactId>maven-site-plugin</artifactId>
439 <groupId>org.apache.maven.wagon</groupId>
440 <artifactId>wagon-webdav-jackrabbit</artifactId>
441 <version>2.10</version>
446 <groupId>com.mycila</groupId>
447 <artifactId>license-maven-plugin</artifactId>
448 <version>3.0</version>
450 <header>LICENSE.TXT</header>
452 <include>restclient/**</include>
453 <include>src/**</include>
454 <include>**/*.xml</include>
455 <include>**/*.xsd</include>
456 <include>**/*.yml</include>
457 <include>**/*.yaml</include>
458 <include>**/*.plantuml</include>
461 <!-- karate-config.js doesn't support comment, and is mandatory by
463 <exclude>src/test/java/karate-config.js</exclude>
464 <exclude>releases/**/*.yaml</exclude>
466 <skipExistingHeaders>true</skipExistingHeaders>
469 <http>SCRIPT_STYLE</http>
471 <yaml>SCRIPT_STYLE</yaml>
472 <yml>SCRIPT_STYLE</yml>
473 <feature>SCRIPT_STYLE</feature>
474 <plantuml>SCRIPT_STYLE</plantuml>
480 <!-- Set goal to "format" to auto update license headers -->
483 <phase>process-sources</phase>
488 <groupId>org.codehaus.mojo</groupId>
489 <artifactId>sonar-maven-plugin</artifactId>
490 <version>3.2</version>
493 <groupId>org.jacoco</groupId>
494 <artifactId>jacoco-maven-plugin</artifactId>
495 <version>0.8.5</version>
497 <dumpOnExit>true</dumpOnExit>
499 <include>org.onap.nbi.*</include>
502 <exclude>**/model/**/*</exclude>
507 <id>pre-unit-test</id>
509 <goal>prepare-agent</goal>
512 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
516 <id>pre-integration-test</id>
517 <phase>pre-integration-test</phase>
519 <goal>prepare-agent</goal>
522 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
529 <phase>post-integration-test</phase>
533 implementation="org.apache.maven.shared.model.fileset.FileSet">
534 <directory>${project.build.directory}/coverage-reports</directory>
536 <include>*.exec</include>
540 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
546 <artifactId>maven-source-plugin</artifactId>
547 <version>3.2.0</version>
550 <id>attach-sources</id>
551 <phase>deploy</phase>
553 <goal>jar-no-fork</goal>
567 <groupId>io.fabric8</groupId>
568 <artifactId>docker-maven-plugin</artifactId>
569 <version>0.28.0</version>
571 <verbose>true</verbose>
572 <apiVersion>1.23</apiVersion>
573 <pullRegistry>${docker.pull.registry}</pullRegistry>
574 <pushRegistry>${docker.push.registry}</pushRegistry>
577 <name>onap/externalapi/nbi:${docker.tag}</name>
579 <cleanup>true</cleanup>
582 <tag>${docker.latest.tag}</tag>
584 <dockerFileDir>${project.basedir}</dockerFileDir>
586 <PKG_FILENAME>${project.build.finalName}.${project.packaging}</PKG_FILENAME>
594 <id>clean-images</id>
595 <phase>pre-clean</phase>
600 <removeMode>all</removeMode>
604 <id>generate-images</id>
605 <phase>package</phase>
612 <phase>deploy</phase>
623 <id>onap-settings</id>
625 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
626 <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw
627 </onap.nexus.rawrepo.baseurl.upload>
628 <onap.nexus.rawrepo.baseurl.download>
629 https://nexus.onap.org/service/local/repositories/raw/content
630 </onap.nexus.rawrepo.baseurl.download>
631 <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid>
633 <!-- properties for Nexus Docker registry -->
634 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
635 <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
636 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
637 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
641 <id>onap-snapshots</id>
644 <id>onap-snapshots</id>
645 <name>onap-snapshots</name>
646 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
648 <enabled>false</enabled>
651 <enabled>true</enabled>
657 <id>onap-snapshots</id>
658 <name>onap-snapshots</name>
659 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
661 <enabled>false</enabled>
664 <enabled>true</enabled>
667 </pluginRepositories>
670 <id>onap-releases</id>
673 <id>onap-releases</id>
674 <name>onap-releases</name>
675 <url>https://nexus.onap.org/content/repositories/releases/</url>
677 <enabled>true</enabled>
680 <enabled>false</enabled>
686 <id>onap-releases</id>
687 <name>onap-releases</name>
688 <url>https://nexus.onap.org/content/repositories/releases/</url>
690 <enabled>true</enabled>
693 <enabled>false</enabled>
696 </pluginRepositories>
703 <url>http://repo1.maven.org/maven2/</url>
707 <name>onap-public</name>
708 <url>https://nexus.onap.org/content/repositories/public/</url>
710 <enabled>true</enabled>
713 <enabled>false</enabled>
720 <url>http://repo1.maven.org/maven2/</url>
724 <name>onap-public</name>
725 <url>https://nexus.onap.org/content/repositories/public/</url>
727 <enabled>true</enabled>
730 <enabled>false</enabled>
733 </pluginRepositories>