Update jackson-databind from 2.9.9 to 2.9.9.3
[externalapi/nbi.git] / pom.xml
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>
13
14   <groupId>org.onap.externalapi-nbi</groupId>
15   <artifactId>nbi-rest-services</artifactId>
16   <version>5.0.0-SNAPSHOT</version>
17   <packaging>jar</packaging>
18
19   <name>externalapi-nbi</name>
20
21   <parent>
22     <groupId>org.onap.oparent</groupId>
23     <artifactId>oparent</artifactId>
24     <version>2.0.0</version>
25   </parent>
26
27   <properties>
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     <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
34     <nexusproxy>https://nexus.onap.org</nexusproxy>
35     <snapshotNexusPath>content/repositories/snapshots/</snapshotNexusPath>
36     <releaseNexusPath>content/repositories/releases/</releaseNexusPath>
37     <stagingNexusPath>content/repositories/staging/</stagingNexusPath>
38     <java.version>1.8</java.version>
39     <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
40     <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
41     <timestamp>${maven.build.timestamp}</timestamp>
42     <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
43     <!--docker -->
44     <docker.tag>${project.version}-${timestamp}</docker.tag>
45     <docker.latest.tag>${project.version}-latest</docker.latest.tag>
46     <!--sonar -->
47     <sonar.language>java</sonar.language>
48     <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
49     <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
50     </sonar.surefire.reportsPath>
51     <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec
52     </sonar.jacoco.reportPath>
53     <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec
54     </sonar.jacoco.itReportPath>
55     <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
56     <sonar.projectVersion>${project.version}</sonar.projectVersion>
57     <sonar.coverage.exclusions>**/model/**/*</sonar.coverage.exclusions>
58   </properties>
59
60   <!--<repositories>-->
61   <!--<repository>-->
62   <!--<id>maven2-repository.java.net</id>-->
63   <!--<name>Java.net Repository for Maven</name>-->
64   <!--<url>http://download.java.net/maven/2/</url>-->
65   <!--<layout>default</layout>-->
66   <!--</repository>-->
67   <!--<repository>-->
68   <!--<id>ecomp-release</id>-->
69   <!--<name>Snapshot Repository</name>-->
70   <!--<url>https://nexus.onap.org/content/repositories/releases/</url>-->
71   <!--</repository>-->
72   <!--<repository>-->
73   <!--<id>ecomp-staging</id>-->
74   <!--<name>Staging Repository</name>-->
75   <!--<url>https://nexus.onap.org/content/repositories/staging/</url>-->
76   <!--</repository>-->
77   <!--<repository>-->
78   <!--<id>ecomp-snapshots</id>-->
79   <!--<name>Snapshot Repository</name>-->
80   <!--<url>https://nexus.onap.org/content/repositories/snapshots/</url>-->
81   <!--</repository>-->
82   <!--</repositories>-->
83
84   <distributionManagement>
85     <repository>
86       <id>ecomp-releases</id>
87       <name>Release Repository</name>
88       <url>${nexusproxy}/${releaseNexusPath}</url>
89     </repository>
90     <snapshotRepository>
91       <id>ecomp-snapshots</id>
92       <name>Snapshot Repository</name>
93       <url>${nexusproxy}/${snapshotNexusPath}</url>
94     </snapshotRepository>
95   </distributionManagement>
96
97   <licenses>
98     <license>
99       <name>Apache2</name>
100       <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
101     </license>
102   </licenses>
103
104   <dependencyManagement>
105     <dependencies>
106       <dependency>
107         <groupId>org.springframework.boot</groupId>
108         <artifactId>spring-boot-dependencies</artifactId>
109         <version>2.1.7.RELEASE</version>
110         <type>pom</type>
111         <scope>import</scope>
112       </dependency>
113     </dependencies>
114   </dependencyManagement>
115
116   <dependencies>
117
118     <dependency>
119       <groupId>org.springframework.boot</groupId>
120       <artifactId>spring-boot-starter-web</artifactId>
121       <exclusions>
122         <exclusion>
123           <groupId>org.apache.tomcat.embed</groupId>
124           <artifactId>tomcat-embed-core</artifactId>
125         </exclusion>
126       </exclusions>
127     </dependency>
128
129     <dependency>
130       <groupId>org.apache.tomcat.embed</groupId>
131       <artifactId>tomcat-embed-core</artifactId>
132     </dependency>
133
134     <dependency>
135       <groupId>org.springframework.boot</groupId>
136       <artifactId>spring-boot-starter-data-jpa</artifactId>
137     </dependency>
138
139     <dependency>
140       <groupId>org.springframework.boot</groupId>
141       <artifactId>spring-boot-starter-aop</artifactId>
142     </dependency>
143
144     <dependency>
145       <groupId>org.apache.commons</groupId>
146       <artifactId>commons-io</artifactId>
147       <version>1.3.2</version>
148     </dependency>
149
150     <dependency>
151       <groupId>commons-beanutils</groupId>
152       <artifactId>commons-beanutils</artifactId>
153       <version>1.9.3</version>
154     </dependency>
155
156     <dependency>
157       <groupId>javax.validation</groupId>
158       <artifactId>validation-api</artifactId>
159     </dependency>
160
161     <dependency>
162       <groupId>org.apache.commons</groupId>
163       <artifactId>commons-lang3</artifactId>
164     </dependency>
165
166     <!-- mongo -->
167
168     <dependency>
169       <groupId>org.springframework.boot</groupId>
170       <artifactId>spring-boot-starter-data-mongodb</artifactId>
171     </dependency>
172
173     <!-- mysql -->
174
175     <dependency>
176       <groupId>org.mariadb.jdbc</groupId>
177       <artifactId>mariadb-java-client</artifactId>
178     </dependency>
179
180     <!-- swagger -->
181
182     <dependency>
183       <groupId>io.swagger</groupId>
184       <artifactId>swagger-annotations</artifactId>
185       <version>1.5.18</version>
186     </dependency>
187
188     <!-- swagger core -->
189     <dependency>
190       <groupId>io.swagger</groupId>
191       <artifactId>swagger-core</artifactId>
192       <version>1.5.18</version>
193     </dependency>
194
195     <!-- jackson -->
196     
197     <dependency>
198       <groupId>com.fasterxml.jackson.core</groupId>
199       <artifactId>jackson-databind</artifactId>
200       <version>2.9.9.3</version>
201         </dependency>   
202
203     <dependency>
204       <groupId>com.fasterxml.jackson.dataformat</groupId>
205       <artifactId>jackson-dataformat-yaml</artifactId>
206     </dependency>
207
208     <!-- sdc tosca parser -->
209
210     <dependency>
211       <groupId>org.onap.sdc.sdc-tosca</groupId>
212       <artifactId>sdc-tosca</artifactId>
213       <version>1.6.0</version>
214       <exclusions>
215         <exclusion>
216           <groupId>com.google.guava</groupId>
217           <artifactId>guava</artifactId>
218         </exclusion>
219         <exclusion>
220           <groupId>commons-codec</groupId>
221           <artifactId>commons-codec</artifactId>
222         </exclusion>
223       </exclusions>
224     </dependency>
225
226     <dependency>
227       <groupId>commons-codec</groupId>
228       <artifactId>commons-codec</artifactId>
229       <version>1.13</version>
230     </dependency>
231
232     <!-- jolt -->
233
234     <dependency>
235       <groupId>com.bazaarvoice.jolt</groupId>
236       <artifactId>jolt-core</artifactId>
237       <version>0.1.0</version>
238       <exclusions>
239         <exclusion>
240           <groupId>com.fasterxml.jackson.core</groupId>
241           <artifactId>jackson-databind</artifactId>
242         </exclusion>
243       </exclusions>
244     </dependency>
245
246     <dependency>
247       <groupId>com.bazaarvoice.jolt</groupId>
248       <artifactId>json-utils</artifactId>
249       <version>0.1.0</version>
250       <exclusions>
251         <exclusion>
252           <groupId>com.fasterxml.jackson.core</groupId>
253           <artifactId>jackson-databind</artifactId>
254         </exclusion>
255       </exclusions>
256     </dependency>
257
258     <!-- test -->
259
260     <dependency>
261       <groupId>org.springframework.boot</groupId>
262       <artifactId>spring-boot-starter-test</artifactId>
263       <scope>test</scope>
264     </dependency>
265
266     <!-- test h2 -->
267
268     <dependency>
269       <groupId>com.h2database</groupId>
270       <artifactId>h2</artifactId>
271       <scope>test</scope>
272     </dependency>
273
274     <dependency>
275       <groupId>de.flapdoodle.embed</groupId>
276       <artifactId>de.flapdoodle.embed.mongo</artifactId>
277       <scope>test</scope>
278     </dependency>
279
280     <!-- test wiremock -->
281
282     <dependency>
283       <groupId>org.springframework.cloud</groupId>
284       <artifactId>spring-cloud-contract-wiremock</artifactId>
285       <version>1.2.6.RELEASE</version>
286       <scope>test</scope>
287       <exclusions>
288         <exclusion>
289           <groupId>com.fasterxml.jackson.core</groupId>
290           <artifactId>jackson-databind</artifactId>
291         </exclusion>
292         <exclusion>
293           <groupId>commons-codec</groupId>
294           <artifactId>commons-codec</artifactId>
295         </exclusion>
296       </exclusions>
297     </dependency>
298
299     <dependency>
300       <groupId>org.eclipse.jetty</groupId>
301       <artifactId>jetty-servlet</artifactId>
302       <scope>test</scope>
303     </dependency>
304
305     <dependency>
306       <groupId>org.eclipse.jetty</groupId>
307       <artifactId>jetty-servlets</artifactId>
308       <scope>test</scope>
309     </dependency>
310
311     <!-- runtime dev -->
312
313     <dependency>
314       <groupId>org.springframework.boot</groupId>
315       <artifactId>spring-boot-devtools</artifactId>
316       <scope>runtime</scope>
317     </dependency>
318
319     <!-- MSB SDK -->
320     <dependency>
321       <groupId>org.onap.msb.java-sdk</groupId>
322       <artifactId>msb-java-sdk</artifactId>
323       <version>1.1.1</version>
324       <exclusions>
325         <exclusion>
326           <groupId>com.google.guava</groupId>
327           <artifactId>guava</artifactId>
328         </exclusion>
329         <exclusion>
330           <groupId>com.squareup.okhttp3</groupId>
331           <artifactId>okhttp</artifactId>
332         </exclusion>
333       </exclusions>
334     </dependency>
335
336     <dependency>
337       <groupId>com.squareup.okhttp3</groupId>
338       <artifactId>okhttp</artifactId>
339       <version>3.14.1</version>
340     </dependency>
341
342     <dependency>
343       <groupId>com.google.guava</groupId>
344       <artifactId>guava</artifactId>
345     </dependency>
346
347     <!-- karate -->
348
349     <dependency>
350       <groupId>com.intuit.karate</groupId>
351       <artifactId>karate-junit4</artifactId>
352       <version>0.9.0</version>
353       <scope>test</scope>
354     </dependency>
355
356     <dependency>
357       <groupId>com.intuit.karate</groupId>
358       <artifactId>karate-apache</artifactId>
359       <version>0.9.0</version>
360       <scope>test</scope>
361     </dependency>
362
363   </dependencies>
364
365   <build>
366     <testResources>
367       <testResource>
368         <directory>src/test/java</directory>
369         <excludes>
370           <exclude>**/*.java</exclude>
371         </excludes>
372       </testResource>
373       <testResource>
374         <directory>src/test/resources</directory>
375       </testResource>
376     </testResources>
377     <plugins>
378       <plugin>
379         <groupId>org.springframework.boot</groupId>
380         <artifactId>spring-boot-maven-plugin</artifactId>
381         <executions>
382           <execution>
383             <goals>
384               <goal>repackage</goal>
385             </goals>
386             <configuration>
387               <mainClass>org.onap.nbi.Application</mainClass>
388             </configuration>
389           </execution>
390         </executions>
391       </plugin>
392       <plugin>
393         <groupId>org.apache.maven.plugins</groupId>
394         <artifactId>maven-surefire-plugin</artifactId>
395         <version>2.22.0</version>
396         <configuration>
397 <!--          <argLine>-->
398 <!--            &#45;&#45;illegal-access=permit-->
399 <!--          </argLine>-->
400           <includes>
401             <include>org/onap/nbi/test/KarateApiTest.java</include>
402             <include>org/onap/nbi/test/ExecutionTaskTest.java</include>
403             <include>org/onap/nbi/test/ServiceOrderRepositoryTest.java</include>
404             <include>org/onap/nbi/apis/servicecatalog/ToscaInfosProcessorTest.java</include>
405           </includes>
406         </configuration>
407       </plugin>
408       <plugin>
409         <groupId>org.apache.maven.plugins</groupId>
410         <artifactId>maven-site-plugin</artifactId>
411         <dependencies>
412           <dependency>
413             <groupId>org.apache.maven.wagon</groupId>
414             <artifactId>wagon-webdav-jackrabbit</artifactId>
415             <version>2.10</version>
416           </dependency>
417         </dependencies>
418       </plugin>
419       <plugin>
420         <groupId>com.mycila</groupId>
421         <artifactId>license-maven-plugin</artifactId>
422         <version>3.0</version>
423         <configuration>
424           <header>LICENSE.TXT</header>
425           <includes>
426             <include>restclient/**</include>
427             <include>src/**</include>
428             <include>./**/*.xml</include>
429             <include>./**/*.xml</include>
430             <include>./**/*.yml</include>
431             <include>./**/*.yaml</include>
432           </includes>
433           <excludes>
434             <!-- karate-config.js doesn't support comment, and is mandatory by
435               karate -->
436             <exclude>src/test/java/karate-config.js</exclude>
437           </excludes>
438           <skipExistingHeaders>true</skipExistingHeaders>
439           <skip>false</skip>
440           <mapping>
441             <http>SCRIPT_STYLE</http>
442           </mapping>
443         </configuration>
444         <executions>
445           <execution>
446             <goals>
447               <!-- Set goal to "format" to auto update license headers -->
448               <goal>check</goal>
449             </goals>
450             <phase>process-sources</phase>
451           </execution>
452         </executions>
453       </plugin>
454       <plugin>
455         <groupId>org.codehaus.mojo</groupId>
456         <artifactId>sonar-maven-plugin</artifactId>
457         <version>3.2</version>
458       </plugin>
459       <plugin>
460         <groupId>org.jacoco</groupId>
461         <artifactId>jacoco-maven-plugin</artifactId>
462         <version>0.8.1</version>
463         <configuration>
464           <dumpOnExit>true</dumpOnExit>
465           <includes>
466             <include>org.onap.nbi.*</include>
467           </includes>
468           <excludes>
469             <exclude>**/model/**/*</exclude>
470           </excludes>
471         </configuration>
472         <executions>
473           <execution>
474             <id>pre-unit-test</id>
475             <goals>
476               <goal>prepare-agent</goal>
477             </goals>
478             <configuration>
479               <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
480             </configuration>
481           </execution>
482           <execution>
483             <id>pre-integration-test</id>
484             <phase>pre-integration-test</phase>
485             <goals>
486               <goal>prepare-agent</goal>
487             </goals>
488             <configuration>
489               <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
490             </configuration>
491           </execution>
492           <execution>
493             <goals>
494               <goal>merge</goal>
495             </goals>
496             <phase>post-integration-test</phase>
497             <configuration>
498               <fileSets>
499                 <fileSet
500                   implementation="org.apache.maven.shared.model.fileset.FileSet">
501                   <directory>${project.build.directory}/coverage-reports</directory>
502                   <includes>
503                     <include>*.exec</include>
504                   </includes>
505                 </fileSet>
506               </fileSets>
507               <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
508             </configuration>
509           </execution>
510         </executions>
511       </plugin>
512       <plugin>
513         <artifactId>maven-source-plugin</artifactId>
514         <executions>
515           <execution>
516             <id>attach-sources</id>
517             <phase>deploy</phase>
518             <goals>
519               <goal>jar-no-fork</goal>
520             </goals>
521           </execution>
522         </executions>
523       </plugin>
524     </plugins>
525   </build>
526
527   <profiles>
528     <profile>
529       <id>docker</id>
530       <build>
531         <plugins>
532           <plugin>
533             <groupId>io.fabric8</groupId>
534             <artifactId>docker-maven-plugin</artifactId>
535             <version>0.28.0</version>
536             <configuration>
537               <verbose>true</verbose>
538               <apiVersion>1.23</apiVersion>
539               <pullRegistry>${docker.pull.registry}</pullRegistry>
540               <pushRegistry>${docker.push.registry}</pushRegistry>
541               <images>
542                 <image>
543                   <name>onap/externalapi/nbi:${docker.tag}</name>
544                   <build>
545                     <cleanup>true</cleanup>
546                     <tags>
547                       <tag>latest</tag>
548                       <tag>${docker.latest.tag}</tag>
549                     </tags>
550                     <dockerFileDir>${project.basedir}</dockerFileDir>
551                     <args>
552                       <PKG_FILENAME>${project.build.finalName}.${project.packaging}</PKG_FILENAME>
553                     </args>
554                   </build>
555                 </image>
556               </images>
557             </configuration>
558             <executions>
559               <execution>
560                 <id>clean-images</id>
561                 <phase>pre-clean</phase>
562                 <goals>
563                   <goal>remove</goal>
564                 </goals>
565                 <configuration>
566                   <removeMode>all</removeMode>
567                 </configuration>
568               </execution>
569               <execution>
570                 <id>generate-images</id>
571                 <phase>package</phase>
572                 <goals>
573                   <goal>build</goal>
574                 </goals>
575               </execution>
576               <execution>
577                 <id>push-images</id>
578                 <phase>deploy</phase>
579                 <goals>
580                   <goal>push</goal>
581                 </goals>
582               </execution>
583             </executions>
584           </plugin>
585         </plugins>
586       </build>
587     </profile>
588     <profile>
589       <id>onap-settings</id>
590       <properties>
591         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
592         <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw
593         </onap.nexus.rawrepo.baseurl.upload>
594         <onap.nexus.rawrepo.baseurl.download>
595           https://nexus.onap.org/service/local/repositories/raw/content
596         </onap.nexus.rawrepo.baseurl.download>
597         <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid>
598
599         <!-- properties for Nexus Docker registry -->
600         <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily>
601         <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release>
602         <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
603         <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
604       </properties>
605     </profile>
606     <profile>
607       <id>onap-snapshots</id>
608       <repositories>
609         <repository>
610           <id>onap-snapshots</id>
611           <name>onap-snapshots</name>
612           <url>https://nexus.onap.org/content/repositories/snapshots/</url>
613           <releases>
614             <enabled>false</enabled>
615           </releases>
616           <snapshots>
617             <enabled>true</enabled>
618           </snapshots>
619         </repository>
620       </repositories>
621       <pluginRepositories>
622         <pluginRepository>
623           <id>onap-snapshots</id>
624           <name>onap-snapshots</name>
625           <url>https://nexus.onap.org/content/repositories/snapshots/</url>
626           <releases>
627             <enabled>false</enabled>
628           </releases>
629           <snapshots>
630             <enabled>true</enabled>
631           </snapshots>
632         </pluginRepository>
633       </pluginRepositories>
634     </profile>
635     <profile>
636       <id>onap-releases</id>
637       <repositories>
638         <repository>
639           <id>onap-releases</id>
640           <name>onap-releases</name>
641           <url>https://nexus.onap.org/content/repositories/releases/</url>
642           <releases>
643             <enabled>true</enabled>
644           </releases>
645           <snapshots>
646             <enabled>false</enabled>
647           </snapshots>
648         </repository>
649       </repositories>
650       <pluginRepositories>
651         <pluginRepository>
652           <id>onap-releases</id>
653           <name>onap-releases</name>
654           <url>https://nexus.onap.org/content/repositories/releases/</url>
655           <releases>
656             <enabled>true</enabled>
657           </releases>
658           <snapshots>
659             <enabled>false</enabled>
660           </snapshots>
661         </pluginRepository>
662       </pluginRepositories>
663     </profile>
664     <profile>
665       <id>onap-public</id>
666       <repositories>
667         <repository>
668           <id>central</id>
669           <url>http://repo1.maven.org/maven2/</url>
670         </repository>
671         <repository>
672           <id>onap-public</id>
673           <name>onap-public</name>
674           <url>https://nexus.onap.org/content/repositories/public/</url>
675           <releases>
676             <enabled>true</enabled>
677           </releases>
678           <snapshots>
679             <enabled>false</enabled>
680           </snapshots>
681         </repository>
682       </repositories>
683       <pluginRepositories>
684         <pluginRepository>
685           <id>central</id>
686           <url>http://repo1.maven.org/maven2/</url>
687         </pluginRepository>
688         <pluginRepository>
689           <id>onap-public</id>
690           <name>onap-public</name>
691           <url>https://nexus.onap.org/content/repositories/public/</url>
692           <releases>
693             <enabled>true</enabled>
694           </releases>
695           <snapshots>
696             <enabled>false</enabled>
697           </snapshots>
698         </pluginRepository>
699       </pluginRepositories>
700     </profile>
701   </profiles>
702
703 </project>