1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Copyright (c) 2018 Orange Licensed under the Apache License, Version
3 2.0 (the "License"); you may not use this file except in compliance with
4 the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
5 Unless required by applicable law or agreed to in writing, software distributed
6 under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
7 OR CONDITIONS OF ANY KIND, either express or implied. See the License for
8 the specific language governing permissions and limitations under the License. -->
9 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10 xmlns="http://maven.apache.org/POM/4.0.0"
11 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12 <modelVersion>4.0.0</modelVersion>
14 <groupId>org.onap.externalapi-nbi</groupId>
15 <artifactId>nbi-rest-services</artifactId>
16 <version>3.0.1</version>
17 <packaging>jar</packaging>
19 <name>externalapi-nbi</name>
22 <groupId>org.onap.oparent</groupId>
23 <artifactId>oparent</artifactId>
24 <version>1.2.0</version>
28 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
29 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
30 <maven.compiler.target>1.8</maven.compiler.target>
31 <maven.compiler.source>1.8</maven.compiler.source>
32 <start-class>org.onap.nbi.Application</start-class>
33 <nexusproxy>https://nexus.onap.org</nexusproxy>
34 <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
35 <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
36 <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
37 <java.version>1.8</java.version>
38 <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
39 <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
40 <timestamp>${maven.build.timestamp}</timestamp>
41 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
43 <docker.tag>${project.version}-${timestamp}</docker.tag>
44 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
46 <sonar.language>java</sonar.language>
47 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
48 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
49 </sonar.surefire.reportsPath>
50 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec
51 </sonar.jacoco.reportPath>
52 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec
53 </sonar.jacoco.itReportPath>
54 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
55 <sonar.projectVersion>${project.version}</sonar.projectVersion>
56 <sonar.coverage.exclusions>**/model/**/*</sonar.coverage.exclusions>
61 <id>maven2-repository.java.net</id>
62 <name>Java.net Repository for Maven</name>
63 <url>http://download.java.net/maven/2/</url>
64 <layout>default</layout>
67 <id>ecomp-snapshots</id>
68 <name>Snapshot Repository</name>
69 <url>https://nexus.onap.org/content/repositories/releases/</url>
72 <id>ecomp-staging</id>
73 <name>Staging Repository</name>
74 <url>https://nexus.onap.org/content/repositories/staging/</url>
78 <distributionManagement>
80 <id>ecomp-releases</id>
81 <name>Release Repository</name>
82 <url>${nexusproxy}/${releaseNexusPath}</url>
85 <id>ecomp-snapshots</id>
86 <name>Snapshot Repository</name>
87 <url>${nexusproxy}/${snapshotNexusPath}</url>
89 </distributionManagement>
94 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
98 <dependencyManagement>
101 <groupId>org.springframework.boot</groupId>
102 <artifactId>spring-boot-dependencies</artifactId>
103 <version>2.1.3.RELEASE</version>
105 <scope>import</scope>
108 </dependencyManagement>
113 <groupId>org.springframework.boot</groupId>
114 <artifactId>spring-boot-starter-web</artifactId>
118 <groupId>org.springframework.boot</groupId>
119 <artifactId>spring-boot-starter-data-jpa</artifactId>
123 <groupId>org.springframework.boot</groupId>
124 <artifactId>spring-boot-starter-aop</artifactId>
128 <groupId>org.apache.commons</groupId>
129 <artifactId>commons-io</artifactId>
130 <version>1.3.2</version>
134 <groupId>commons-beanutils</groupId>
135 <artifactId>commons-beanutils</artifactId>
136 <version>1.9.3</version>
140 <groupId>javax.validation</groupId>
141 <artifactId>validation-api</artifactId>
145 <groupId>org.apache.commons</groupId>
146 <artifactId>commons-lang3</artifactId>
152 <groupId>org.springframework.boot</groupId>
153 <artifactId>spring-boot-starter-data-mongodb</artifactId>
159 <groupId>org.mariadb.jdbc</groupId>
160 <artifactId>mariadb-java-client</artifactId>
166 <groupId>io.swagger</groupId>
167 <artifactId>swagger-annotations</artifactId>
168 <version>1.5.18</version>
174 <groupId>com.fasterxml.jackson.dataformat</groupId>
175 <artifactId>jackson-dataformat-yaml</artifactId>
178 <!-- sdc tosca parser -->
181 <groupId>org.onap.sdc.sdc-tosca</groupId>
182 <artifactId>sdc-tosca</artifactId>
183 <version>1.4.6</version>
189 <groupId>com.bazaarvoice.jolt</groupId>
190 <artifactId>jolt-core</artifactId>
191 <version>0.1.0</version>
194 <groupId>com.fasterxml.jackson.core</groupId>
195 <artifactId>jackson-databind</artifactId>
201 <groupId>com.bazaarvoice.jolt</groupId>
202 <artifactId>json-utils</artifactId>
203 <version>0.1.0</version>
206 <groupId>com.fasterxml.jackson.core</groupId>
207 <artifactId>jackson-databind</artifactId>
215 <groupId>org.springframework.boot</groupId>
216 <artifactId>spring-boot-starter-test</artifactId>
223 <groupId>com.h2database</groupId>
224 <artifactId>h2</artifactId>
229 <groupId>de.flapdoodle.embed</groupId>
230 <artifactId>de.flapdoodle.embed.mongo</artifactId>
234 <!-- test wiremock -->
237 <groupId>org.springframework.cloud</groupId>
238 <artifactId>spring-cloud-contract-wiremock</artifactId>
239 <version>1.2.6.RELEASE</version>
243 <groupId>com.fasterxml.jackson.core</groupId>
244 <artifactId>jackson-databind</artifactId>
250 <groupId>org.eclipse.jetty</groupId>
251 <artifactId>jetty-servlet</artifactId>
256 <groupId>org.eclipse.jetty</groupId>
257 <artifactId>jetty-servlets</artifactId>
264 <groupId>org.springframework.boot</groupId>
265 <artifactId>spring-boot-devtools</artifactId>
266 <scope>runtime</scope>
271 <groupId>org.onap.msb.java-sdk</groupId>
272 <artifactId>msb-java-sdk</artifactId>
273 <version>1.2.0</version>
279 <groupId>com.intuit.karate</groupId>
280 <artifactId>karate-junit4</artifactId>
281 <version>0.9.0</version>
286 <groupId>com.intuit.karate</groupId>
287 <artifactId>karate-apache</artifactId>
288 <version>0.9.0</version>
297 <directory>src/test/java</directory>
299 <exclude>**/*.java</exclude>
303 <directory>src/test/resources</directory>
308 <groupId>org.springframework.boot</groupId>
309 <artifactId>spring-boot-maven-plugin</artifactId>
313 <goal>repackage</goal>
316 <mainClass>org.onap.nbi.Application</mainClass>
322 <groupId>org.apache.maven.plugins</groupId>
323 <artifactId>maven-surefire-plugin</artifactId>
326 <include>org/onap/nbi/test/KarateApiTest.java</include>
327 <include>org/onap/nbi/test/ExecutionTaskTest.java</include>
328 <include>org/onap/nbi/test/ServiceOrderRepositoryTest.java</include>
329 <include>org/onap/nbi/apis/servicecatalog/ToscaInfosProcessorTest.java</include>
334 <groupId>org.sonatype.plugins</groupId>
335 <artifactId>nexus-staging-maven-plugin</artifactId>
336 <extensions>true</extensions>
338 <nexusUrl>${nexusproxy}</nexusUrl>
339 <stagingProfileId>176c31dfe190a</stagingProfileId>
340 <serverId>ecomp-staging</serverId>
344 <groupId>org.apache.maven.plugins</groupId>
345 <artifactId>maven-site-plugin</artifactId>
348 <groupId>org.apache.maven.wagon</groupId>
349 <artifactId>wagon-webdav-jackrabbit</artifactId>
350 <version>2.10</version>
355 <groupId>com.mycila</groupId>
356 <artifactId>license-maven-plugin</artifactId>
357 <version>3.0</version>
359 <header>LICENSE.TXT</header>
361 <include>restclient/**</include>
362 <include>src/**</include>
363 <include>./**/*.xml</include>
364 <include>./**/*.xml</include>
365 <include>./**/*.yml</include>
366 <include>./**/*.yaml</include>
369 <!-- karate-config.js doesn't support comment, and is mandatory by
371 <exclude>src/test/java/karate-config.js</exclude>
373 <skipExistingHeaders>true</skipExistingHeaders>
376 <http>SCRIPT_STYLE</http>
382 <!-- Set goal to "format" to auto update license headers -->
385 <phase>process-sources</phase>
390 <groupId>org.codehaus.mojo</groupId>
391 <artifactId>sonar-maven-plugin</artifactId>
392 <version>3.2</version>
395 <!-- <groupId>org.jacoco</groupId> -->
396 <!-- <artifactId>jacoco-maven-plugin</artifactId> -->
397 <!-- <version>0.8.1</version> -->
398 <!-- <configuration> -->
399 <!-- <dumpOnExit>true</dumpOnExit> -->
401 <!-- <include>org.onap.nbi.*</include> -->
404 <!-- <exclude>**/model/**/*</exclude> -->
406 <!-- </configuration> -->
407 <!-- <executions> -->
409 <!-- <id>pre-unit-test</id> -->
411 <!-- <goal>prepare-agent</goal> -->
413 <!-- <configuration> -->
414 <!-- <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile> -->
415 <!-- <append>true</append> -->
416 <!-- </configuration> -->
417 <!-- </execution> -->
419 <!-- <id>pre-integration-test</id> -->
420 <!-- <phase>pre-integration-test</phase> -->
422 <!-- <goal>prepare-agent</goal> -->
424 <!-- <configuration> -->
425 <!-- <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> -->
426 <!-- <append>true</append> -->
427 <!-- </configuration> -->
428 <!-- </execution> -->
431 <!-- <goal>merge</goal> -->
433 <!-- <phase>post-integration-test</phase> -->
434 <!-- <configuration> -->
437 <!-- implementation="org.apache.maven.shared.model.fileset.FileSet"> -->
438 <!-- <directory>${project.build.directory}/coverage-reports</directory> -->
440 <!-- <include>*.exec</include> -->
444 <!-- <destFile>${project.build.directory}/jacoco-dev.exec</destFile> -->
445 <!-- </configuration> -->
446 <!-- </execution> -->
447 <!-- </executions> -->
450 <artifactId>maven-source-plugin</artifactId>
453 <id>attach-sources</id>
454 <phase>deploy</phase>
456 <goal>jar-no-fork</goal>
471 <groupId>io.fabric8</groupId>
472 <artifactId>docker-maven-plugin</artifactId>
473 <version>0.28.0</version>
475 <verbose>true</verbose>
476 <apiVersion>1.23</apiVersion>
477 <pullRegistry>${docker.pull.registry}</pullRegistry>
478 <pushRegistry>${docker.push.registry}</pushRegistry>
481 <name>onap/externalapi/nbi:${docker.tag}</name>
483 <cleanup>true</cleanup>
486 <tag>${docker.latest.tag}</tag>
488 <dockerFileDir>${project.basedir}</dockerFileDir>
490 <PKG_FILENAME>${project.build.finalName}.${project.packaging}</PKG_FILENAME>
498 <id>clean-images</id>
499 <phase>pre-clean</phase>
504 <removeMode>all</removeMode>
508 <id>generate-images</id>
509 <phase>package</phase>
516 <phase>deploy</phase>