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>2.1.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>
149 <version>9.0.24</version>
153 <groupId>org.springframework.boot</groupId>
154 <artifactId>spring-boot-starter-data-jpa</artifactId>
158 <groupId>org.springframework.boot</groupId>
159 <artifactId>spring-boot-starter-aop</artifactId>
163 <groupId>commons-io</groupId>
164 <artifactId>commons-io</artifactId>
165 <version>2.6</version>
169 <groupId>commons-beanutils</groupId>
170 <artifactId>commons-beanutils</artifactId>
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.23</version>
205 <!-- swagger core -->
207 <groupId>io.swagger</groupId>
208 <artifactId>swagger-core</artifactId>
209 <version>1.5.23</version>
215 <groupId>com.fasterxml.jackson.core</groupId>
216 <artifactId>jackson-databind</artifactId>
217 <version>2.9.9.3</version>
221 <groupId>com.fasterxml.jackson.dataformat</groupId>
222 <artifactId>jackson-dataformat-yaml</artifactId>
225 <!-- sdc tosca parser -->
228 <groupId>org.onap.sdc.sdc-tosca</groupId>
229 <artifactId>sdc-tosca</artifactId>
230 <version>1.6.0</version>
233 <groupId>com.google.guava</groupId>
234 <artifactId>guava</artifactId>
237 <groupId>commons-codec</groupId>
238 <artifactId>commons-codec</artifactId>
244 <groupId>commons-codec</groupId>
245 <artifactId>commons-codec</artifactId>
246 <version>1.13</version>
252 <groupId>com.bazaarvoice.jolt</groupId>
253 <artifactId>jolt-core</artifactId>
254 <version>0.1.1</version>
257 <groupId>com.fasterxml.jackson.core</groupId>
258 <artifactId>jackson-databind</artifactId>
264 <groupId>com.bazaarvoice.jolt</groupId>
265 <artifactId>json-utils</artifactId>
266 <version>0.1.1</version>
269 <groupId>com.fasterxml.jackson.core</groupId>
270 <artifactId>jackson-databind</artifactId>
278 <groupId>org.springframework.boot</groupId>
279 <artifactId>spring-boot-starter-test</artifactId>
286 <groupId>com.h2database</groupId>
287 <artifactId>h2</artifactId>
292 <groupId>de.flapdoodle.embed</groupId>
293 <artifactId>de.flapdoodle.embed.mongo</artifactId>
297 <!-- test wiremock -->
300 <groupId>org.springframework.cloud</groupId>
301 <artifactId>spring-cloud-contract-wiremock</artifactId>
302 <version>1.2.7.RELEASE</version>
306 <groupId>com.fasterxml.jackson.core</groupId>
307 <artifactId>jackson-databind</artifactId>
310 <groupId>commons-codec</groupId>
311 <artifactId>commons-codec</artifactId>
317 <groupId>org.eclipse.jetty</groupId>
318 <artifactId>jetty-servlet</artifactId>
323 <groupId>org.eclipse.jetty</groupId>
324 <artifactId>jetty-servlets</artifactId>
331 <groupId>org.springframework.boot</groupId>
332 <artifactId>spring-boot-devtools</artifactId>
333 <scope>runtime</scope>
338 <groupId>org.onap.msb.java-sdk</groupId>
339 <artifactId>msb-java-sdk</artifactId>
340 <version>1.2.5</version>
343 <groupId>com.google.guava</groupId>
344 <artifactId>guava</artifactId>
347 <groupId>com.squareup.okhttp3</groupId>
348 <artifactId>okhttp</artifactId>
354 <groupId>com.squareup.okhttp3</groupId>
355 <artifactId>okhttp</artifactId>
356 <version>3.14.2</version>
360 <groupId>com.google.guava</groupId>
361 <artifactId>guava</artifactId>
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>
401 <goal>repackage</goal>
404 <mainClass>org.onap.nbi.Application</mainClass>
410 <groupId>org.apache.maven.plugins</groupId>
411 <artifactId>maven-surefire-plugin</artifactId>
412 <version>2.22.2</version>
415 <!-- --illegal-access=permit-->
418 <include>org/onap/nbi/test/KarateApiTest.java</include>
419 <include>org/onap/nbi/test/ExecutionTaskTest.java</include>
420 <include>org/onap/nbi/test/ServiceOrderRepositoryTest.java</include>
421 <include>org/onap/nbi/apis/servicecatalog/ToscaInfosProcessorTest.java</include>
426 <groupId>org.apache.maven.plugins</groupId>
427 <artifactId>maven-site-plugin</artifactId>
430 <groupId>org.apache.maven.wagon</groupId>
431 <artifactId>wagon-webdav-jackrabbit</artifactId>
432 <version>2.10</version>
437 <groupId>com.mycila</groupId>
438 <artifactId>license-maven-plugin</artifactId>
439 <version>3.0</version>
441 <header>LICENSE.TXT</header>
443 <include>restclient/**</include>
444 <include>src/**</include>
445 <include>**/*.xml</include>
446 <include>**/*.xsd</include>
447 <include>**/*.yml</include>
448 <include>**/*.yaml</include>
449 <include>**/*.plantuml</include>
452 <!-- karate-config.js doesn't support comment, and is mandatory by
454 <exclude>src/test/java/karate-config.js</exclude>
455 <exclude>releases/**/*.yaml</exclude>
457 <skipExistingHeaders>true</skipExistingHeaders>
460 <http>SCRIPT_STYLE</http>
462 <yaml>SCRIPT_STYLE</yaml>
463 <yml>SCRIPT_STYLE</yml>
464 <feature>SCRIPT_STYLE</feature>
465 <plantuml>SCRIPT_STYLE</plantuml>
471 <!-- Set goal to "format" to auto update license headers -->
474 <phase>process-sources</phase>
479 <groupId>org.codehaus.mojo</groupId>
480 <artifactId>sonar-maven-plugin</artifactId>
481 <version>3.2</version>
484 <groupId>org.jacoco</groupId>
485 <artifactId>jacoco-maven-plugin</artifactId>
486 <version>0.8.1</version>
488 <dumpOnExit>true</dumpOnExit>
490 <include>org.onap.nbi.*</include>
493 <exclude>**/model/**/*</exclude>
498 <id>pre-unit-test</id>
500 <goal>prepare-agent</goal>
503 <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
507 <id>pre-integration-test</id>
508 <phase>pre-integration-test</phase>
510 <goal>prepare-agent</goal>
513 <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
520 <phase>post-integration-test</phase>
524 implementation="org.apache.maven.shared.model.fileset.FileSet">
525 <directory>${project.build.directory}/coverage-reports</directory>
527 <include>*.exec</include>
531 <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
537 <artifactId>maven-source-plugin</artifactId>
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>