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.0-SNAPSHOT</version>
34 <packaging>jar</packaging>
36 <name>externalapi-nbi</name>
39 <groupId>org.onap.oparent</groupId>
40 <artifactId>oparent</artifactId>
41 <version>2.0.0</version>
45 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
47 <maven.compiler.target>1.8</maven.compiler.target>
48 <maven.compiler.source>1.8</maven.compiler.source>
49 <start-class>org.onap.nbi.Application</start-class>
50 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
51 <nexusproxy>https://nexus.onap.org</nexusproxy>
52 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
53 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
54 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
55 <java.version>1.8</java.version>
56 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
57 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
58 <timestamp>${maven.build.timestamp}</timestamp>
59 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
61 <docker.tag>${project.version}-${timestamp}</docker.tag>
62 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
64 <sonar.language>java</sonar.language>
65 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
66 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
67 </sonar.surefire.reportsPath>
68 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec
69 </sonar.jacoco.reportPath>
70 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec
71 </sonar.jacoco.itReportPath>
72 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
73 <sonar.projectVersion>${project.version}</sonar.projectVersion>
74 <sonar.coverage.exclusions>**/model/**/*</sonar.coverage.exclusions>
79 <!--<id>maven2-repository.java.net</id>-->
80 <!--<name>Java.net Repository for Maven</name>-->
81 <!--<url>http://download.java.net/maven/2/</url>-->
82 <!--<layout>default</layout>-->
85 <!--<id>ecomp-release</id>-->
86 <!--<name>Snapshot Repository</name>-->
87 <!--<url>https://nexus.onap.org/content/repositories/releases/</url>-->
90 <!--<id>ecomp-staging</id>-->
91 <!--<name>Staging Repository</name>-->
92 <!--<url>https://nexus.onap.org/content/repositories/staging/</url>-->
95 <!--<id>ecomp-snapshots</id>-->
96 <!--<name>Snapshot Repository</name>-->
97 <!--<url>https://nexus.onap.org/content/repositories/snapshots/</url>-->
99 <!--</repositories>-->
101 <distributionManagement>
103 <id>ecomp-releases</id>
104 <name>Release Repository</name>
105 <url>${nexusproxy}/${releaseNexusPath}</url>
108 <id>ecomp-snapshots</id>
109 <name>Snapshot Repository</name>
110 <url>${nexusproxy}/${snapshotNexusPath}</url>
111 </snapshotRepository>
112 </distributionManagement>
117 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
121 <dependencyManagement>
124 <groupId>org.springframework.boot</groupId>
125 <artifactId>spring-boot-dependencies</artifactId>
126 <version>2.1.7.RELEASE</version>
128 <scope>import</scope>
131 </dependencyManagement>
136 <groupId>org.springframework.boot</groupId>
137 <artifactId>spring-boot-starter-web</artifactId>
140 <groupId>org.apache.tomcat.embed</groupId>
141 <artifactId>tomcat-embed-core</artifactId>
147 <groupId>org.apache.tomcat.embed</groupId>
148 <artifactId>tomcat-embed-core</artifactId>
152 <groupId>org.springframework.boot</groupId>
153 <artifactId>spring-boot-starter-data-jpa</artifactId>
157 <groupId>org.springframework.boot</groupId>
158 <artifactId>spring-boot-starter-aop</artifactId>
162 <groupId>org.apache.commons</groupId>
163 <artifactId>commons-io</artifactId>
164 <version>1.3.2</version>
168 <groupId>commons-beanutils</groupId>
169 <artifactId>commons-beanutils</artifactId>
170 <version>1.9.3</version>
174 <groupId>javax.validation</groupId>
175 <artifactId>validation-api</artifactId>
179 <groupId>org.apache.commons</groupId>
180 <artifactId>commons-lang3</artifactId>
186 <groupId>org.springframework.boot</groupId>
187 <artifactId>spring-boot-starter-data-mongodb</artifactId>
193 <groupId>org.mariadb.jdbc</groupId>
194 <artifactId>mariadb-java-client</artifactId>
200 <groupId>io.swagger</groupId>
201 <artifactId>swagger-annotations</artifactId>
202 <version>1.5.18</version>
205 <!-- swagger core -->
207 <groupId>io.swagger</groupId>
208 <artifactId>swagger-core</artifactId>
209 <version>1.5.18</version>
215 <groupId>com.fasterxml.jackson.dataformat</groupId>
216 <artifactId>jackson-dataformat-yaml</artifactId>
219 <!-- sdc tosca parser -->
222 <groupId>org.onap.sdc.sdc-tosca</groupId>
223 <artifactId>sdc-tosca</artifactId>
224 <version>1.6.0</version>
227 <groupId>com.google.guava</groupId>
228 <artifactId>guava</artifactId>
231 <groupId>commons-codec</groupId>
232 <artifactId>commons-codec</artifactId>
238 <groupId>commons-codec</groupId>
239 <artifactId>commons-codec</artifactId>
240 <version>1.13</version>
246 <groupId>com.bazaarvoice.jolt</groupId>
247 <artifactId>jolt-core</artifactId>
248 <version>0.1.0</version>
251 <groupId>com.fasterxml.jackson.core</groupId>
252 <artifactId>jackson-databind</artifactId>
258 <groupId>com.bazaarvoice.jolt</groupId>
259 <artifactId>json-utils</artifactId>
260 <version>0.1.0</version>
263 <groupId>com.fasterxml.jackson.core</groupId>
264 <artifactId>jackson-databind</artifactId>
272 <groupId>org.springframework.boot</groupId>
273 <artifactId>spring-boot-starter-test</artifactId>
280 <groupId>com.h2database</groupId>
281 <artifactId>h2</artifactId>
286 <groupId>de.flapdoodle.embed</groupId>
287 <artifactId>de.flapdoodle.embed.mongo</artifactId>
291 <!-- test wiremock -->
294 <groupId>org.springframework.cloud</groupId>
295 <artifactId>spring-cloud-contract-wiremock</artifactId>
296 <version>1.2.6.RELEASE</version>
300 <groupId>com.fasterxml.jackson.core</groupId>
301 <artifactId>jackson-databind</artifactId>
304 <groupId>commons-codec</groupId>
305 <artifactId>commons-codec</artifactId>
311 <groupId>org.eclipse.jetty</groupId>
312 <artifactId>jetty-servlet</artifactId>
317 <groupId>org.eclipse.jetty</groupId>
318 <artifactId>jetty-servlets</artifactId>
325 <groupId>org.springframework.boot</groupId>
326 <artifactId>spring-boot-devtools</artifactId>
327 <scope>runtime</scope>
332 <groupId>org.onap.msb.java-sdk</groupId>
333 <artifactId>msb-java-sdk</artifactId>
334 <version>1.1.1</version>
337 <groupId>com.google.guava</groupId>
338 <artifactId>guava</artifactId>
341 <groupId>com.squareup.okhttp3</groupId>
342 <artifactId>okhttp</artifactId>
348 <groupId>com.squareup.okhttp3</groupId>
349 <artifactId>okhttp</artifactId>
350 <version>3.14.1</version>
354 <groupId>com.google.guava</groupId>
355 <artifactId>guava</artifactId>
361 <groupId>com.intuit.karate</groupId>
362 <artifactId>karate-junit4</artifactId>
363 <version>0.9.0</version>
368 <groupId>com.intuit.karate</groupId>
369 <artifactId>karate-apache</artifactId>
370 <version>0.9.0</version>
379 <directory>src/test/java</directory>
381 <exclude>**/*.java</exclude>
385 <directory>src/test/resources</directory>
390 <groupId>org.springframework.boot</groupId>
391 <artifactId>spring-boot-maven-plugin</artifactId>
395 <goal>repackage</goal>
398 <mainClass>org.onap.nbi.Application</mainClass>
404 <groupId>org.apache.maven.plugins</groupId>
405 <artifactId>maven-surefire-plugin</artifactId>
406 <version>2.22.0</version>
409 <!-- --illegal-access=permit-->
412 <include>org/onap/nbi/test/KarateApiTest.java</include>
413 <include>org/onap/nbi/test/ExecutionTaskTest.java</include>
414 <include>org/onap/nbi/test/ServiceOrderRepositoryTest.java</include>
415 <include>org/onap/nbi/apis/servicecatalog/ToscaInfosProcessorTest.java</include>
420 <groupId>org.apache.maven.plugins</groupId>
421 <artifactId>maven-site-plugin</artifactId>
424 <groupId>org.apache.maven.wagon</groupId>
425 <artifactId>wagon-webdav-jackrabbit</artifactId>
426 <version>2.10</version>
431 <groupId>com.mycila</groupId>
432 <artifactId>license-maven-plugin</artifactId>
433 <version>3.0</version>
435 <header>LICENSE.TXT</header>
437 <include>restclient/**</include>
438 <include>src/**</include>
439 <include>**/*.xml</include>
440 <include>**/*.xsd</include>
441 <include>**/*.yml</include>
442 <include>**/*.yaml</include>
443 <include>**/*.plantuml</include>
446 <!-- karate-config.js doesn't support comment, and is mandatory by
448 <exclude>src/test/java/karate-config.js</exclude>
449 <exclude>releases/**/*.yaml</exclude>
451 <skipExistingHeaders>true</skipExistingHeaders>
454 <http>SCRIPT_STYLE</http>
456 <yaml>SCRIPT_STYLE</yaml>
457 <yml>SCRIPT_STYLE</yml>
458 <feature>SCRIPT_STYLE</feature>
459 <plantuml>SCRIPT_STYLE</plantuml>
465 <!-- Set goal to "format" to auto update license headers -->
468 <phase>process-sources</phase>
473 <groupId>org.codehaus.mojo</groupId>
474 <artifactId>sonar-maven-plugin</artifactId>
475 <version>3.2</version>
478 <groupId>org.jacoco</groupId>
479 <artifactId>jacoco-maven-plugin</artifactId>
480 <version>0.8.1</version>
482 <dumpOnExit>true</dumpOnExit>
484 <include>org.onap.nbi.*</include>
487 <exclude>**/model/**/*</exclude>
492 <id>pre-unit-test</id>
494 <goal>prepare-agent</goal>
497 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
501 <id>pre-integration-test</id>
502 <phase>pre-integration-test</phase>
504 <goal>prepare-agent</goal>
507 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
514 <phase>post-integration-test</phase>
518 implementation="org.apache.maven.shared.model.fileset.FileSet">
519 <directory>${project.build.directory}/coverage-reports</directory>
521 <include>*.exec</include>
525 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
531 <artifactId>maven-source-plugin</artifactId>
534 <id>attach-sources</id>
535 <phase>deploy</phase>
537 <goal>jar-no-fork</goal>
551 <groupId>io.fabric8</groupId>
552 <artifactId>docker-maven-plugin</artifactId>
553 <version>0.28.0</version>
555 <verbose>true</verbose>
556 <apiVersion>1.23</apiVersion>
557 <pullRegistry>${docker.pull.registry}</pullRegistry>
558 <pushRegistry>${docker.push.registry}</pushRegistry>
561 <name>onap/externalapi/nbi:${docker.tag}</name>
563 <cleanup>true</cleanup>
566 <tag>${docker.latest.tag}</tag>
568 <dockerFileDir>${project.basedir}</dockerFileDir>
570 <PKG_FILENAME>${project.build.finalName}.${project.packaging}</PKG_FILENAME>
578 <id>clean-images</id>
579 <phase>pre-clean</phase>
584 <removeMode>all</removeMode>
588 <id>generate-images</id>
589 <phase>package</phase>
596 <phase>deploy</phase>
607 <id>onap-settings</id>
609 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
610 <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw
611 </onap.nexus.rawrepo.baseurl.upload>
612 <onap.nexus.rawrepo.baseurl.download>
613 https://nexus.onap.org/service/local/repositories/raw/content
614 </onap.nexus.rawrepo.baseurl.download>
615 <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid>
617 <!-- properties for Nexus Docker registry -->
618 <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
619 <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
620 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
621 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
625 <id>onap-snapshots</id>
628 <id>onap-snapshots</id>
629 <name>onap-snapshots</name>
630 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
632 <enabled>false</enabled>
635 <enabled>true</enabled>
641 <id>onap-snapshots</id>
642 <name>onap-snapshots</name>
643 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
645 <enabled>false</enabled>
648 <enabled>true</enabled>
651 </pluginRepositories>
654 <id>onap-releases</id>
657 <id>onap-releases</id>
658 <name>onap-releases</name>
659 <url>https://nexus.onap.org/content/repositories/releases/</url>
661 <enabled>true</enabled>
664 <enabled>false</enabled>
670 <id>onap-releases</id>
671 <name>onap-releases</name>
672 <url>https://nexus.onap.org/content/repositories/releases/</url>
674 <enabled>true</enabled>
677 <enabled>false</enabled>
680 </pluginRepositories>
687 <url>http://repo1.maven.org/maven2/</url>
691 <name>onap-public</name>
692 <url>https://nexus.onap.org/content/repositories/public/</url>
694 <enabled>true</enabled>
697 <enabled>false</enabled>
704 <url>http://repo1.maven.org/maven2/</url>
708 <name>onap-public</name>
709 <url>https://nexus.onap.org/content/repositories/public/</url>
711 <enabled>true</enabled>
714 <enabled>false</enabled>
717 </pluginRepositories>