d00a0d4e4eb7361794c7b68725465fd8843bede8
[policy/parent.git] / integration / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2018 Ericsson. All rights reserved.
4    Modifications Copyright (C) 2018-2020 AT&T. All rights reserved.
5    Modifications Copyright (C) 2019 Nordix Foundation.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18
19   SPDX-License-Identifier: Apache-2.0
20   ============LICENSE_END=========================================================
21 -->
22
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <groupId>org.onap.policy.parent</groupId>
28         <artifactId>policy-parent</artifactId>
29         <version>3.1.2-SNAPSHOT</version>
30     </parent>
31     <artifactId>integration</artifactId>
32     <packaging>pom</packaging>
33     <name>Policy Integration POM</name>
34     <description>Policy Integration POM</description>
35
36     <properties>
37         <java.version>11</java.version>
38         <version.logback>1.2.3</version.logback>
39         <version.dmaap>1.1.9</version.dmaap>
40         <version.powermock>2.0.4</version.powermock>
41         <version.eclipselink>2.7.5</version.eclipselink>
42         <version.jackson>2.10.0.pr3</version.jackson>
43         <version.drools>7.33.0.Final</version.drools>
44         <version.jersey>2.30.1</version.jersey>
45         <version.ccsdk>0.4.4</version.ccsdk>
46         <version.swagger>1.6.0</version.swagger>
47         <version.javax.bind>2.3.1</version.javax.bind>
48         <version.javax.json>1.1.4</version.javax.json>
49         <version.json>20190722</version.json>
50         <jacoco.dataFile>${project.basedir}/../target/code-coverage/jacoco-ut.exec</jacoco.dataFile>
51     </properties>
52
53     <distributionManagement>
54         <site>
55             <id>ecomp-site</id>
56             <url>dav:${onap.nexus.url}${sitePath}</url>
57         </site>
58     </distributionManagement>
59
60     <dependencyManagement>
61         <dependencies>
62             <!-- Jackson -->
63             <dependency>
64                 <groupId>com.fasterxml.jackson.core</groupId>
65                 <artifactId>jackson-annotations</artifactId>
66                 <version>${version.jackson}</version>
67             </dependency>
68             <dependency>
69                 <groupId>com.fasterxml.jackson.core</groupId>
70                 <artifactId>jackson-core</artifactId>
71                 <version>${version.jackson}</version>
72             </dependency>
73             <dependency>
74                 <groupId>com.fasterxml.jackson.core</groupId>
75                 <artifactId>jackson-databind</artifactId>
76                 <version>${version.jackson}</version>
77             </dependency>
78             <dependency>
79                 <groupId>com.fasterxml.jackson.dataformat</groupId>
80                 <artifactId>jackson-dataformat-yaml</artifactId>
81                 <version>${version.jackson}</version>
82             </dependency>
83             <dependency>
84                 <groupId>com.fasterxml.jackson.jaxrs</groupId>
85                 <artifactId>jackson-jaxrs-base</artifactId>
86                 <version>${version.jackson}</version>
87             </dependency>
88             <dependency>
89                 <groupId>com.fasterxml.jackson.jaxrs</groupId>
90                 <artifactId>jackson-jaxrs-json-provider</artifactId>
91                 <version>${version.jackson}</version>
92             </dependency>
93
94             <!-- Jersey -->
95             <dependency>
96                 <groupId>org.glassfish.jersey.core</groupId>
97                 <artifactId>jersey-server</artifactId>
98                 <version>${version.jersey}</version>
99             </dependency>
100
101             <dependency>
102                 <groupId>org.glassfish.jersey.containers</groupId>
103                 <artifactId>jersey-container-servlet-core</artifactId>
104                 <version>${version.jersey}</version>
105             </dependency>
106
107             <dependency>
108                 <groupId>org.glassfish.jersey.containers</groupId>
109                 <artifactId>jersey-container-jetty-http</artifactId>
110                 <version>${version.jersey}</version>
111                 <exclusions>
112                     <exclusion>
113                         <groupId>org.eclipse.jetty</groupId>
114                         <artifactId>jetty-util</artifactId>
115                     </exclusion>
116                 </exclusions>
117             </dependency>
118
119             <dependency>
120                 <groupId>org.glassfish.jersey.core</groupId>
121                 <artifactId>jersey-client</artifactId>
122                 <version>${version.jersey}</version>
123             </dependency>
124
125             <dependency>
126                 <groupId>org.glassfish.jersey.core</groupId>
127                 <artifactId>jersey-common</artifactId>
128                 <version>${version.jersey}</version>
129             </dependency>
130
131             <dependency>
132                 <groupId>org.glassfish.jersey.inject</groupId>
133                 <artifactId>jersey-hk2</artifactId>
134                 <version>${version.jersey}</version>
135             </dependency>
136
137             <dependency>
138                 <groupId>org.glassfish.jersey.containers</groupId>
139                 <artifactId>jersey-container-grizzly2-http</artifactId>
140                 <version>${version.jersey}</version>
141             </dependency>
142
143             <dependency>
144                 <groupId>org.glassfish.jersey.media</groupId>
145                 <artifactId>jersey-media-moxy</artifactId>
146                 <version>${version.jersey}</version>
147             </dependency>
148
149             <dependency>
150                 <groupId>org.glassfish.jersey.media</groupId>
151                 <artifactId>jersey-media-json-jackson</artifactId>
152                 <version>${version.jersey}</version>
153             </dependency>
154
155             <dependency>
156                 <groupId>org.glassfish.jersey.test-framework</groupId>
157                 <artifactId>jersey-test-framework-core</artifactId>
158                 <version>${version.jersey}</version>
159             </dependency>
160
161             <dependency>
162                 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
163                 <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
164                 <version>${version.jersey}</version>
165             </dependency>
166
167             <dependency>
168                 <groupId>org.glassfish.jersey.media</groupId>
169                 <artifactId>jersey-media-multipart</artifactId>
170                 <version>${version.jersey}</version>
171             </dependency>
172
173             <!-- MariaDB -->
174             <dependency>
175                 <groupId>org.mariadb.jdbc</groupId>
176                 <artifactId>mariadb-java-client</artifactId>
177                 <version>2.2.6</version>
178             </dependency>
179
180             <!-- Swagger Jersey2 JAXRS -->
181             <dependency>
182                 <groupId>io.swagger</groupId>
183                 <artifactId>swagger-jersey2-jaxrs</artifactId>
184                 <version>${version.swagger}</version>
185                 <exclusions>
186                     <exclusion>
187                         <groupId>org.glassfish.jersey.containers</groupId>
188                         <artifactId>jersey-container-servlet-core</artifactId>
189                     </exclusion>
190                 </exclusions>
191             </dependency>
192
193             <!-- Encoder and decoders for various formats -->
194             <dependency>
195                 <groupId>commons-codec</groupId>
196                 <artifactId>commons-codec</artifactId>
197                 <version>1.14</version>
198             </dependency>
199
200             <dependency>
201                 <groupId>com.thoughtworks.xstream</groupId>
202                 <artifactId>xstream</artifactId>
203                 <version>1.4.11.1</version>
204             </dependency>
205
206             <!-- Eclipse Persistence API -->
207             <!-- NOTE: use this instead of persistence-api -->
208             <dependency>
209                 <groupId>org.eclipse.persistence</groupId>
210                 <artifactId>javax.persistence</artifactId>
211                 <version>2.1.0</version>
212             </dependency>
213
214             <!-- Eclipse JPA API -->
215             <dependency>
216                 <groupId>org.eclipse.persistence</groupId>
217                 <artifactId>org.eclipse.persistence.jpa</artifactId>
218                 <version>${version.eclipselink}</version>
219             </dependency>
220
221             <!-- EclipseLink API -->
222             <dependency>
223                 <groupId>org.eclipse.persistence</groupId>
224                 <artifactId>eclipselink</artifactId>
225                 <version>${version.eclipselink}</version>
226             </dependency>
227
228             <!-- Java Servlet API -->
229             <dependency>
230                 <groupId>javax.servlet</groupId>
231                 <artifactId>javax.servlet-api</artifactId>
232                 <version>4.0.1</version>
233             </dependency>
234
235             <!-- HttpComponents Client -->
236             <dependency>
237                 <groupId>org.apache.httpcomponents</groupId>
238                 <artifactId>httpclient</artifactId>
239                 <version>4.5.11</version>
240             </dependency>
241
242             <!-- HttpComponents Core (blocking I/O) -->
243             <dependency>
244                 <groupId>org.apache.httpcomponents</groupId>
245                 <artifactId>httpcore</artifactId>
246                 <version>4.4.13</version>
247             </dependency>
248
249             <!-- JSON marshalling and unmarshalling -->
250             <dependency>
251                 <groupId>com.google.code.gson</groupId>
252                 <artifactId>gson</artifactId>
253                 <version>2.8.6</version>
254             </dependency>
255
256             <!-- Lombok -->
257             <dependency>
258                 <groupId>org.projectlombok</groupId>
259                 <artifactId>lombok</artifactId>
260                 <version>1.18.4</version>
261             </dependency>
262
263             <!-- Logging -->
264             <dependency>
265                 <groupId>org.slf4j</groupId>
266                 <artifactId>slf4j-api</artifactId>
267                 <version>1.7.25</version>
268             </dependency>
269             <dependency>
270                 <groupId>log4j</groupId>
271                 <artifactId>log4j</artifactId>
272                 <version>1.2.17</version>
273             </dependency>
274             <dependency>
275                 <groupId>ch.qos.logback</groupId>
276                 <artifactId>logback-core</artifactId>
277                 <version>${version.logback}</version>
278             </dependency>
279             <dependency>
280                 <groupId>ch.qos.logback</groupId>
281                 <artifactId>logback-classic</artifactId>
282                 <version>${version.logback}</version>
283             </dependency>
284
285             <!-- Dmaap Client -->
286             <dependency>
287                 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
288                 <artifactId>dmaapClient</artifactId>
289                 <version>${version.dmaap}</version>
290             </dependency>
291
292             <!-- Common Controller SDK -->
293             <dependency>
294                 <groupId>org.onap.ccsdk.cds.components</groupId>
295                 <artifactId>proto-definition</artifactId>
296                 <version>${version.ccsdk}</version>
297             </dependency>
298
299             <!-- AAF Client -->
300             <dependency>
301                 <groupId>org.onap.aaf.authz</groupId>
302                 <artifactId>aaf-cadi-aaf</artifactId>
303                 <version>2.1.2</version>
304             </dependency>
305
306             <!-- Client library for Cambria event routing API -->
307             <dependency>
308                 <groupId>com.att.nsa</groupId>
309                 <artifactId>cambriaClient</artifactId>
310                 <version>1.2.1-oss</version>
311             </dependency>
312             <dependency>
313                 <groupId>com.att.nsa</groupId>
314                 <artifactId>saClientLibrary</artifactId>
315                 <version>1.3.0-oss</version>
316             </dependency>
317
318             <!-- Commons CLI for command line parsing -->
319             <dependency>
320                 <groupId>commons-cli</groupId>
321                 <artifactId>commons-cli</artifactId>
322                 <version>1.4</version>
323             </dependency>
324
325             <!-- Web Sockets -->
326             <dependency>
327                 <groupId>org.java-websocket</groupId>
328                 <artifactId>Java-WebSocket</artifactId>
329                 <version>1.3.8</version>
330             </dependency>
331
332             <!-- SnakeYAML -->
333             <dependency>
334                 <groupId>org.yaml</groupId>
335                 <artifactId>snakeyaml</artifactId>
336                 <version>1.26</version>
337             </dependency>
338
339             <!-- Drools -->
340
341             <!--
342             Security Issues: 1 of 2
343             This dependency is trying to upgrade security fixes
344             identified. If it is removed or manipulated then please
345             fix the 2nd change as noted below.
346             -->
347
348             <dependency>
349                 <groupId>org.codehaus.plexus</groupId>
350                 <artifactId>plexus-utils</artifactId>
351                 <version>3.0.24</version>
352             </dependency>
353
354             <dependency>
355                 <groupId>org.kie</groupId>
356                 <artifactId>kie-api</artifactId>
357                 <version>${version.drools}</version>
358             </dependency>
359
360             <dependency>
361                 <groupId>org.kie</groupId>
362                 <artifactId>kie-ci</artifactId>
363                 <version>${version.drools}</version>
364
365                 <!--
366                 Issue: 2 of 2
367                 Excluding these 2 dependencies in order to force upgrade security fixes
368                 identified. As declared above. Any changes here should be reflected above
369                 and vice versa.
370                 -->
371
372                 <exclusions>
373                     <exclusion>
374                         <groupId>org.codehaus.plexus</groupId>
375                         <artifactId>plexus-utils</artifactId>
376                     </exclusion>
377                 </exclusions>
378             </dependency>
379
380             <dependency>
381                 <groupId>org.drools</groupId>
382                 <artifactId>drools-core</artifactId>
383                 <version>${version.drools}</version>
384             </dependency>
385
386             <dependency>
387                 <groupId>org.drools</groupId>
388                 <artifactId>drools-persistence-jpa</artifactId>
389                 <version>${version.drools}</version>
390             </dependency>
391
392             <dependency>
393                 <groupId>org.drools</groupId>
394                 <artifactId>drools-compiler</artifactId>
395                 <version>${version.drools}</version>
396             </dependency>
397
398             <dependency>
399                 <groupId>org.drools</groupId>
400                 <artifactId>drools-verifier-drl</artifactId>
401                 <version>${version.drools}</version>
402             </dependency>
403
404             <dependency>
405                 <groupId>org.drools</groupId>
406                 <artifactId>drools-verifier-api</artifactId>
407                 <version>${version.drools}</version>
408             </dependency>
409
410             <dependency>
411                 <groupId>org.drools</groupId>
412                 <artifactId>drools-verifier-core</artifactId>
413                 <version>${version.drools}</version>
414             </dependency>
415
416             <!-- Test dependencies -->
417
418             <!-- In memory Database Engine -->
419             <dependency>
420                 <groupId>com.h2database</groupId>
421                 <artifactId>h2</artifactId>
422                 <version>1.4.197</version>
423                 <scope>test</scope>
424             </dependency>
425
426             <!-- JUNIT -->
427             <dependency>
428                 <groupId>junit</groupId>
429                 <artifactId>junit</artifactId>
430                 <version>4.13</version>
431                 <scope>test</scope>
432             </dependency>
433
434             <!-- Cucumber Tests -->
435             <dependency>
436                 <groupId>io.cucumber</groupId>
437                 <artifactId>cucumber-java</artifactId>
438                 <version>5.4.0</version>
439                 <scope>test</scope>
440             </dependency>
441             <dependency>
442                 <groupId>io.cucumber</groupId>
443                 <artifactId>cucumber-junit</artifactId>
444                 <version>5.4.0</version>
445                 <scope>test</scope>
446             </dependency>
447
448             <!-- Exception testing -->
449             <dependency>
450                 <groupId>org.assertj</groupId>
451                 <artifactId>assertj-core</artifactId>
452                 <version>3.11.1</version>
453                 <scope>test</scope>
454             </dependency>
455
456             <!-- Mock libraries -->
457             <dependency>
458                 <groupId>com.openpojo</groupId>
459                 <artifactId>openpojo</artifactId>
460                 <version>0.8.10</version>
461                 <scope>test</scope>
462             </dependency>
463             <dependency>
464                 <groupId>org.mockito</groupId>
465                 <artifactId>mockito-all</artifactId>
466                 <version>1.10.19</version>
467                 <scope>test</scope>
468             </dependency>
469             <dependency>
470                 <groupId>org.powermock</groupId>
471                 <artifactId>powermock-core</artifactId>
472                 <version>${version.powermock}</version>
473                 <scope>test</scope>
474             </dependency>
475             <dependency>
476                 <groupId>org.powermock</groupId>
477                 <artifactId>powermock-api-mockito2</artifactId>
478                 <version>${version.powermock}</version>
479                 <scope>test</scope>
480             </dependency>
481             <dependency>
482                 <groupId>org.powermock</groupId>
483                 <artifactId>powermock-module-junit4</artifactId>
484                 <version>${version.powermock}</version>
485                 <scope>test</scope>
486             </dependency>
487             <dependency>
488                 <groupId>org.mockito</groupId>
489                 <artifactId>mockito-core</artifactId>
490                 <version>3.2.4</version>
491                 <scope>test</scope>
492             </dependency>
493
494             <!-- Awaitility -->
495             <dependency>
496                 <groupId>org.awaitility</groupId>
497                 <artifactId>awaitility</artifactId>
498                 <version>4.0.2</version>
499                 <scope>test</scope>
500             </dependency>
501
502         </dependencies>
503
504     </dependencyManagement>
505
506
507     <scm>
508         <connection>scm:git:ssh://git.onap.org:29418/${project.groupId}</connection>
509         <developerConnection>scm:git:ssh://git.onap.org:29418/${project.groupId}</developerConnection>
510         <tag>HEAD</tag>
511         <url>https://wiki.onap.org/display/DW/Integration+Project</url>
512     </scm>
513
514     <build>
515         <pluginManagement>
516             <plugins>
517                 <plugin>
518                     <groupId>org.codehaus.mojo</groupId>
519                     <artifactId>versions-maven-plugin</artifactId>
520                     <version>2.7</version>
521                 </plugin>
522                 <plugin>
523                     <groupId>org.apache.maven.plugins</groupId>
524                     <artifactId>maven-dependency-plugin</artifactId>
525                     <version>3.1.1</version>
526                 </plugin>
527                 <plugin>
528                     <!-- THIS PLUGIN IS RETIRED -->
529                     <groupId>org.apache.maven.plugins</groupId>
530                     <artifactId>maven-reactor-plugin</artifactId>
531                     <version>1.1</version>
532                 </plugin>
533                 <plugin>
534                     <!-- THIS PLUGIN IS RETIRED -->
535                     <!-- Advise to use m2e -->
536                     <groupId>org.apache.maven.plugins</groupId>
537                     <artifactId>maven-eclipse-plugin</artifactId>
538                     <version>2.10</version>
539                 </plugin>
540                 <plugin>
541                     <groupId>org.apache.maven.plugins</groupId>
542                     <artifactId>maven-install-plugin</artifactId>
543                     <version>3.0.0-M1</version>
544                 </plugin>
545                 <plugin>
546                     <groupId>org.apache.maven.plugins</groupId>
547                     <artifactId>maven-resources-plugin</artifactId>
548                     <version>3.1.0</version>
549                 </plugin>
550                 <plugin>
551                     <groupId>org.apache.maven.plugins</groupId>
552                     <artifactId>maven-source-plugin</artifactId>
553                     <version>3.2.0</version>
554                 </plugin>
555                 <plugin>
556                     <groupId>org.apache.maven.plugins</groupId>
557                     <artifactId>maven-release-plugin</artifactId>
558                     <version>2.5.3</version>
559                 </plugin>
560                 <plugin>
561                     <groupId>org.apache.maven.plugins</groupId>
562                     <artifactId>maven-assembly-plugin</artifactId>
563                     <version>3.2.0</version>
564                 </plugin>
565                 <plugin>
566                     <groupId>org.apache.maven.plugins</groupId>
567                     <artifactId>maven-jar-plugin</artifactId>
568                     <version>3.2.0</version>
569                 </plugin>
570                 <plugin>
571                     <groupId>org.apache.maven.plugins</groupId>
572                     <artifactId>maven-javadoc-plugin</artifactId>
573                     <version>3.1.1</version>
574                 </plugin>
575                 <plugin>
576                     <groupId>org.apache.maven.plugins</groupId>
577                     <artifactId>maven-shade-plugin</artifactId>
578                     <version>3.2.1</version>
579                 </plugin>
580                 <plugin>
581                     <groupId>org.apache.maven.plugins</groupId>
582                     <artifactId>maven-archetype-plugin</artifactId>
583                     <version>3.1.2</version>
584                 </plugin>
585                 <plugin>
586                     <groupId>org.apache.maven.archetype</groupId>
587                     <artifactId>archetype-packaging</artifactId>
588                     <version>3.1.2</version>
589                 </plugin>
590                 <plugin>
591                     <groupId>com.coderplus.maven.plugins</groupId>
592                     <artifactId>copy-rename-maven-plugin</artifactId>
593                     <version>1.0.1</version>
594                 </plugin>
595                 <plugin>
596                     <groupId>org.apache.maven.plugins</groupId>
597                     <artifactId>maven-compiler-plugin</artifactId>
598                     <version>3.8.1</version>
599                     <configuration>
600                         <encoding>${project.build.sourceEncoding}</encoding>
601                         <release>${java.version}</release>
602                     </configuration>
603                 </plugin>
604                 <plugin>
605                     <groupId>org.codehaus.mojo</groupId>
606                     <artifactId>exec-maven-plugin</artifactId>
607                     <version>1.6.0</version>
608                 </plugin>
609                 <plugin>
610                     <groupId>org.apache.maven.plugins</groupId>
611                     <artifactId>maven-war-plugin</artifactId>
612                     <version>3.2.3</version>
613                 </plugin>
614                 <plugin>
615                     <groupId>io.fabric8</groupId>
616                     <artifactId>docker-maven-plugin</artifactId>
617                     <version>0.31.0</version>
618                 </plugin>
619                 <plugin>
620                     <groupId>org.kie</groupId>
621                     <artifactId>kie-maven-plugin</artifactId>
622                     <version>${version.drools}</version>
623                     <extensions>true</extensions>
624                 </plugin>
625             </plugins>
626         </pluginManagement>
627
628         <plugins>
629             <plugin>
630                 <groupId>org.apache.maven.plugins</groupId>
631                 <artifactId>maven-compiler-plugin</artifactId>
632                 <configuration>
633                     <encoding>${project.build.sourceEncoding}</encoding>
634                     <source>${java.version}</source>
635                     <target>${java.version}</target>
636                 </configuration>
637             </plugin>
638             <plugin>
639                 <groupId>org.jacoco</groupId>
640                 <artifactId>jacoco-maven-plugin</artifactId>
641                 <executions>
642                     <execution>
643                         <id>pre-unit-test</id>
644                         <goals>
645                             <goal>prepare-agent</goal>
646                         </goals>
647                         <configuration>
648                             <destFile>${jacoco.dataFile}</destFile>
649                             <append>true</append>
650                         </configuration>
651                     </execution>
652                     <execution>
653                         <id>post-unit-test</id>
654                         <phase>test</phase>
655                         <goals>
656                             <goal>report</goal>
657                         </goals>
658                         <configuration>
659                             <dataFile>${jacoco.dataFile}</dataFile>
660                         </configuration>
661                     </execution>
662                     <execution>
663                       <id>pre-integration-test</id>
664                       <phase>pre-integration-test</phase>
665                       <goals>
666                         <goal>prepare-agent</goal>
667                       </goals>
668                       <configuration>
669                         <skip>true</skip>
670                       </configuration>
671                     </execution>
672                     <execution>
673                       <id>post-integration-test</id>
674                       <phase>post-integration-test</phase>
675                       <goals>
676                         <goal>report</goal>
677                       </goals>
678                       <configuration>
679                         <skip>true</skip>
680                       </configuration>
681                     </execution>
682                     <execution>
683                       <id>report-aggregate</id>
684                       <phase>prepare-package</phase>
685                       <goals>
686                         <goal>report-aggregate</goal>
687                       </goals>
688                     </execution>
689                 </executions>
690             </plugin>
691         </plugins>
692     </build>
693
694 </project>