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>7.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.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
64 <sonar.projectVersion>${project.version}</sonar.projectVersion>
69 <!--<id>maven2-repository.java.net</id>-->
70 <!--<name>Java.net Repository for Maven</name>-->
71 <!--<url>http://download.java.net/maven/2/</url>-->
72 <!--<layout>default</layout>-->
75 <!--<id>ecomp-release</id>-->
76 <!--<name>Snapshot Repository</name>-->
77 <!--<url>https://nexus.onap.org/content/repositories/releases/</url>-->
80 <!--<id>ecomp-staging</id>-->
81 <!--<name>Staging Repository</name>-->
82 <!--<url>https://nexus.onap.org/content/repositories/staging/</url>-->
85 <!--<id>ecomp-snapshots</id>-->
86 <!--<name>Snapshot Repository</name>-->
87 <!--<url>https://nexus.onap.org/content/repositories/snapshots/</url>-->
89 <!--</repositories>-->
91 <distributionManagement>
93 <id>ecomp-releases</id>
94 <name>Release Repository</name>
95 <url>${nexusproxy}/${releaseNexusPath}</url>
98 <id>ecomp-snapshots</id>
99 <name>Snapshot Repository</name>
100 <url>${nexusproxy}/${snapshotNexusPath}</url>
101 </snapshotRepository>
102 </distributionManagement>
107 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
111 <dependencyManagement>
114 <groupId>org.springframework.boot</groupId>
115 <artifactId>spring-boot-dependencies</artifactId>
116 <version>2.2.2.RELEASE</version>
118 <scope>import</scope>
121 </dependencyManagement>
126 <groupId>org.springframework.boot</groupId>
127 <artifactId>spring-boot-starter-web</artifactId>
130 <groupId>org.apache.tomcat.embed</groupId>
131 <artifactId>tomcat-embed-core</artifactId>
137 <groupId>org.apache.tomcat.embed</groupId>
138 <artifactId>tomcat-embed-core</artifactId>
139 <version>9.0.36</version>
143 <groupId>org.springframework.boot</groupId>
144 <artifactId>spring-boot-starter-data-jpa</artifactId>
148 <groupId>org.springframework.boot</groupId>
149 <artifactId>spring-boot-starter-aop</artifactId>
153 <groupId>commons-io</groupId>
154 <artifactId>commons-io</artifactId>
155 <version>2.6</version>
159 <groupId>commons-beanutils</groupId>
160 <artifactId>commons-beanutils</artifactId>
164 <groupId>javax.validation</groupId>
165 <artifactId>validation-api</artifactId>
169 <groupId>org.apache.commons</groupId>
170 <artifactId>commons-lang3</artifactId>
176 <groupId>org.springframework.boot</groupId>
177 <artifactId>spring-boot-starter-data-mongodb</artifactId>
183 <groupId>org.mariadb.jdbc</groupId>
184 <artifactId>mariadb-java-client</artifactId>
190 <groupId>io.swagger</groupId>
191 <artifactId>swagger-annotations</artifactId>
192 <version>1.5.23</version>
195 <!-- swagger core -->
197 <groupId>io.swagger</groupId>
198 <artifactId>swagger-core</artifactId>
199 <version>1.5.23</version>
205 <groupId>com.fasterxml.jackson.core</groupId>
206 <artifactId>jackson-databind</artifactId>
207 <version>2.10.1</version>
211 <groupId>com.fasterxml.jackson.dataformat</groupId>
212 <artifactId>jackson-dataformat-yaml</artifactId>
215 <!-- sdc tosca parser -->
218 <groupId>org.onap.sdc.sdc-tosca</groupId>
219 <artifactId>sdc-tosca</artifactId>
220 <version>1.6.0</version>
223 <groupId>com.google.guava</groupId>
224 <artifactId>guava</artifactId>
227 <groupId>commons-codec</groupId>
228 <artifactId>commons-codec</artifactId>
234 <groupId>commons-codec</groupId>
235 <artifactId>commons-codec</artifactId>
236 <version>1.13</version>
242 <groupId>com.bazaarvoice.jolt</groupId>
243 <artifactId>jolt-core</artifactId>
244 <version>0.1.1</version>
247 <groupId>com.fasterxml.jackson.core</groupId>
248 <artifactId>jackson-databind</artifactId>
254 <groupId>com.bazaarvoice.jolt</groupId>
255 <artifactId>json-utils</artifactId>
256 <version>0.1.1</version>
259 <groupId>com.fasterxml.jackson.core</groupId>
260 <artifactId>jackson-databind</artifactId>
268 <groupId>org.springframework.boot</groupId>
269 <artifactId>spring-boot-starter-test</artifactId>
276 <groupId>com.h2database</groupId>
277 <artifactId>h2</artifactId>
282 <groupId>de.flapdoodle.embed</groupId>
283 <artifactId>de.flapdoodle.embed.mongo</artifactId>
287 <!-- test wiremock -->
290 <groupId>org.springframework.cloud</groupId>
291 <artifactId>spring-cloud-contract-wiremock</artifactId>
292 <version>1.2.7.RELEASE</version>
296 <groupId>com.fasterxml.jackson.core</groupId>
297 <artifactId>jackson-databind</artifactId>
300 <groupId>commons-codec</groupId>
301 <artifactId>commons-codec</artifactId>
307 <groupId>org.eclipse.jetty</groupId>
308 <artifactId>jetty-servlet</artifactId>
313 <groupId>org.eclipse.jetty</groupId>
314 <artifactId>jetty-servlets</artifactId>
321 <groupId>org.springframework.boot</groupId>
322 <artifactId>spring-boot-devtools</artifactId>
323 <scope>runtime</scope>
328 <groupId>org.onap.msb.java-sdk</groupId>
329 <artifactId>msb-java-sdk</artifactId>
330 <version>1.2.5</version>
333 <groupId>com.google.guava</groupId>
334 <artifactId>guava</artifactId>
337 <groupId>com.squareup.okhttp3</groupId>
338 <artifactId>okhttp</artifactId>
341 <groupId>com.squareup.retrofit2</groupId>
342 <artifactId>retrofit</artifactId>
348 <groupId>com.squareup.okhttp3</groupId>
349 <artifactId>okhttp</artifactId>
350 <version>4.3.1</version>
354 <groupId>com.google.guava</groupId>
355 <artifactId>guava</artifactId>
359 <groupId>com.squareup.retrofit2</groupId>
360 <artifactId>retrofit</artifactId>
361 <version>2.7.1</version>
367 <groupId>com.intuit.karate</groupId>
368 <artifactId>karate-junit4</artifactId>
369 <version>0.9.4</version>
374 <groupId>com.intuit.karate</groupId>
375 <artifactId>karate-apache</artifactId>
376 <version>0.9.4</version>
385 <directory>src/test/java</directory>
387 <exclude>**/*.java</exclude>
391 <directory>src/test/resources</directory>
396 <groupId>org.springframework.boot</groupId>
397 <artifactId>spring-boot-maven-plugin</artifactId>
398 <version>2.2.1.RELEASE</version>
402 <goal>repackage</goal>
405 <mainClass>org.onap.nbi.Application</mainClass>
411 <groupId>org.apache.maven.plugins</groupId>
412 <artifactId>maven-surefire-plugin</artifactId>
413 <version>2.22.2</version>
416 <!-- --illegal-access=permit-->
419 <include>org/onap/nbi/test/KarateApiTest.java</include>
420 <include>org/onap/nbi/test/ExecutionTaskTest.java</include>
421 <include>org/onap/nbi/test/ServiceOrderRepositoryTest.java</include>
422 <include>org/onap/nbi/apis/servicecatalog/ToscaInfosProcessorTest.java</include>
427 <groupId>org.apache.maven.plugins</groupId>
428 <artifactId>maven-site-plugin</artifactId>
431 <groupId>org.apache.maven.wagon</groupId>
432 <artifactId>wagon-webdav-jackrabbit</artifactId>
433 <version>2.10</version>
438 <groupId>com.mycila</groupId>
439 <artifactId>license-maven-plugin</artifactId>
440 <version>3.0</version>
442 <header>LICENSE.TXT</header>
444 <include>restclient/**</include>
445 <include>src/**</include>
446 <include>**/*.xml</include>
447 <include>**/*.xsd</include>
448 <include>**/*.yml</include>
449 <include>**/*.yaml</include>
450 <include>**/*.plantuml</include>
453 <!-- karate-config.js doesn't support comment, and is mandatory by
455 <exclude>src/test/java/karate-config.js</exclude>
456 <exclude>releases/**/*.yaml</exclude>
457 <exclude>docs/conf.yaml</exclude>
458 <exclude>.readthedocs.yaml</exclude>
460 <skipExistingHeaders>true</skipExistingHeaders>
463 <http>SCRIPT_STYLE</http>
465 <yaml>SCRIPT_STYLE</yaml>
466 <yml>SCRIPT_STYLE</yml>
467 <feature>SCRIPT_STYLE</feature>
468 <plantuml>SCRIPT_STYLE</plantuml>
474 <!-- Set goal to "format" to auto update license headers -->
477 <phase>process-sources</phase>
482 <groupId>org.codehaus.mojo</groupId>
483 <artifactId>sonar-maven-plugin</artifactId>
484 <version>3.2</version>
487 <groupId>org.jacoco</groupId>
488 <artifactId>jacoco-maven-plugin</artifactId>
489 <version>0.8.5</version>
492 <id>default-prepare-agent</id>
494 <goal>prepare-agent</goal>
498 <id>default-report</id>
499 <phase>prepare-package</phase>
505 <id>default-check</id>
512 <element>PACKAGE</element>
515 <counter>COMPLEXITY</counter>
516 <value>COVEREDRATIO</value>
517 <minimum>0.0</minimum>
527 <artifactId>maven-source-plugin</artifactId>
528 <version>3.2.0</version>
531 <id>attach-sources</id>
532 <phase>deploy</phase>
534 <goal>jar-no-fork</goal>
548 <groupId>io.fabric8</groupId>
549 <artifactId>docker-maven-plugin</artifactId>
550 <version>0.28.0</version>
552 <verbose>true</verbose>
553 <apiVersion>1.23</apiVersion>
554 <pullRegistry>${docker.pull.registry}</pullRegistry>
555 <pushRegistry>${docker.push.registry}</pushRegistry>
558 <name>onap/externalapi/nbi:${docker.tag}</name>
560 <cleanup>true</cleanup>
563 <tag>${docker.latest.tag}</tag>
565 <dockerFileDir>${project.basedir}</dockerFileDir>
567 <PKG_FILENAME>${project.build.finalName}.${project.packaging}</PKG_FILENAME>
575 <id>clean-images</id>
576 <phase>pre-clean</phase>
581 <removeMode>all</removeMode>
585 <id>generate-images</id>
586 <phase>package</phase>
593 <phase>deploy</phase>
604 <id>onap-settings</id>
606 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
607 <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw
608 </onap.nexus.rawrepo.baseurl.upload>
609 <onap.nexus.rawrepo.baseurl.download>
610 https://nexus.onap.org/service/local/repositories/raw/content
611 </onap.nexus.rawrepo.baseurl.download>
612 <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid>
614 <!-- properties for Nexus Docker registry -->
615 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
616 <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
617 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
618 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
622 <id>onap-snapshots</id>
625 <id>onap-snapshots</id>
626 <name>onap-snapshots</name>
627 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
629 <enabled>false</enabled>
632 <enabled>true</enabled>
638 <id>onap-snapshots</id>
639 <name>onap-snapshots</name>
640 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
642 <enabled>false</enabled>
645 <enabled>true</enabled>
648 </pluginRepositories>
651 <id>onap-releases</id>
654 <id>onap-releases</id>
655 <name>onap-releases</name>
656 <url>https://nexus.onap.org/content/repositories/releases/</url>
658 <enabled>true</enabled>
661 <enabled>false</enabled>
667 <id>onap-releases</id>
668 <name>onap-releases</name>
669 <url>https://nexus.onap.org/content/repositories/releases/</url>
671 <enabled>true</enabled>
674 <enabled>false</enabled>
677 </pluginRepositories>
684 <url>http://repo1.maven.org/maven2/</url>
688 <name>onap-public</name>
689 <url>https://nexus.onap.org/content/repositories/public/</url>
691 <enabled>true</enabled>
694 <enabled>false</enabled>
701 <url>http://repo1.maven.org/maven2/</url>
705 <name>onap-public</name>
706 <url>https://nexus.onap.org/content/repositories/public/</url>
708 <enabled>true</enabled>
711 <enabled>false</enabled>
714 </pluginRepositories>