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.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.30</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>
458 <skipExistingHeaders>true</skipExistingHeaders>
461 <http>SCRIPT_STYLE</http>
463 <yaml>SCRIPT_STYLE</yaml>
464 <yml>SCRIPT_STYLE</yml>
465 <feature>SCRIPT_STYLE</feature>
466 <plantuml>SCRIPT_STYLE</plantuml>
472 <!-- Set goal to "format" to auto update license headers -->
475 <phase>process-sources</phase>
480 <groupId>org.codehaus.mojo</groupId>
481 <artifactId>sonar-maven-plugin</artifactId>
482 <version>3.2</version>
485 <groupId>org.jacoco</groupId>
486 <artifactId>jacoco-maven-plugin</artifactId>
487 <version>0.8.5</version>
490 <id>default-prepare-agent</id>
492 <goal>prepare-agent</goal>
496 <id>default-report</id>
497 <phase>prepare-package</phase>
503 <id>default-check</id>
510 <element>PACKAGE</element>
513 <counter>COMPLEXITY</counter>
514 <value>COVEREDRATIO</value>
515 <minimum>0.0</minimum>
525 <artifactId>maven-source-plugin</artifactId>
526 <version>3.2.0</version>
529 <id>attach-sources</id>
530 <phase>deploy</phase>
532 <goal>jar-no-fork</goal>
546 <groupId>io.fabric8</groupId>
547 <artifactId>docker-maven-plugin</artifactId>
548 <version>0.28.0</version>
550 <verbose>true</verbose>
551 <apiVersion>1.23</apiVersion>
552 <pullRegistry>${docker.pull.registry}</pullRegistry>
553 <pushRegistry>${docker.push.registry}</pushRegistry>
556 <name>onap/externalapi/nbi:${docker.tag}</name>
558 <cleanup>true</cleanup>
561 <tag>${docker.latest.tag}</tag>
563 <dockerFileDir>${project.basedir}</dockerFileDir>
565 <PKG_FILENAME>${project.build.finalName}.${project.packaging}</PKG_FILENAME>
573 <id>clean-images</id>
574 <phase>pre-clean</phase>
579 <removeMode>all</removeMode>
583 <id>generate-images</id>
584 <phase>package</phase>
591 <phase>deploy</phase>
602 <id>onap-settings</id>
604 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
605 <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw
606 </onap.nexus.rawrepo.baseurl.upload>
607 <onap.nexus.rawrepo.baseurl.download>
608 https://nexus.onap.org/service/local/repositories/raw/content
609 </onap.nexus.rawrepo.baseurl.download>
610 <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid>
612 <!-- properties for Nexus Docker registry -->
613 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
614 <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
615 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
616 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
620 <id>onap-snapshots</id>
623 <id>onap-snapshots</id>
624 <name>onap-snapshots</name>
625 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
627 <enabled>false</enabled>
630 <enabled>true</enabled>
636 <id>onap-snapshots</id>
637 <name>onap-snapshots</name>
638 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
640 <enabled>false</enabled>
643 <enabled>true</enabled>
646 </pluginRepositories>
649 <id>onap-releases</id>
652 <id>onap-releases</id>
653 <name>onap-releases</name>
654 <url>https://nexus.onap.org/content/repositories/releases/</url>
656 <enabled>true</enabled>
659 <enabled>false</enabled>
665 <id>onap-releases</id>
666 <name>onap-releases</name>
667 <url>https://nexus.onap.org/content/repositories/releases/</url>
669 <enabled>true</enabled>
672 <enabled>false</enabled>
675 </pluginRepositories>
682 <url>http://repo1.maven.org/maven2/</url>
686 <name>onap-public</name>
687 <url>https://nexus.onap.org/content/repositories/public/</url>
689 <enabled>true</enabled>
692 <enabled>false</enabled>
699 <url>http://repo1.maven.org/maven2/</url>
703 <name>onap-public</name>
704 <url>https://nexus.onap.org/content/repositories/public/</url>
706 <enabled>true</enabled>
709 <enabled>false</enabled>
712 </pluginRepositories>