Added mockito dependencies
[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.1-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.30.0.Final</version.drools>
44         <version.jersey>2.29.1</version.jersey>
45         <version.ccsdk>0.4.4</version.ccsdk>
46         <version.swagger>1.6.0</version.swagger>
47         <version.javax.json>1.1.4</version.javax.json>
48         <version.json>20190722</version.json>
49     </properties>
50
51     <distributionManagement>
52         <site>
53             <id>ecomp-site</id>
54             <url>dav:${onap.nexus.url}${sitePath}</url>
55         </site>
56     </distributionManagement>
57
58     <dependencyManagement>
59         <dependencies>
60             <!-- Jackson -->
61             <dependency>
62                 <groupId>com.fasterxml.jackson.core</groupId>
63                 <artifactId>jackson-annotations</artifactId>
64                 <version>${version.jackson}</version>
65             </dependency>
66             <dependency>
67                 <groupId>com.fasterxml.jackson.core</groupId>
68                 <artifactId>jackson-core</artifactId>
69                 <version>${version.jackson}</version>
70             </dependency>
71             <dependency>
72                 <groupId>com.fasterxml.jackson.core</groupId>
73                 <artifactId>jackson-databind</artifactId>
74                 <version>${version.jackson}</version>
75             </dependency>
76             <dependency>
77                 <groupId>com.fasterxml.jackson.dataformat</groupId>
78                 <artifactId>jackson-dataformat-yaml</artifactId>
79                 <version>${version.jackson}</version>
80             </dependency>
81             <dependency>
82                 <groupId>com.fasterxml.jackson.jaxrs</groupId>
83                 <artifactId>jackson-jaxrs-base</artifactId>
84                 <version>${version.jackson}</version>
85             </dependency>
86             <dependency>
87                 <groupId>com.fasterxml.jackson.jaxrs</groupId>
88                 <artifactId>jackson-jaxrs-json-provider</artifactId>
89                 <version>${version.jackson}</version>
90             </dependency>
91
92             <!-- Jersey -->
93             <dependency>
94                 <groupId>org.glassfish.jersey.core</groupId>
95                 <artifactId>jersey-server</artifactId>
96                 <version>${version.jersey}</version>
97             </dependency>
98
99             <dependency>
100                 <groupId>org.glassfish.jersey.containers</groupId>
101                 <artifactId>jersey-container-servlet-core</artifactId>
102                 <version>${version.jersey}</version>
103             </dependency>
104
105             <dependency>
106                 <groupId>org.glassfish.jersey.containers</groupId>
107                 <artifactId>jersey-container-jetty-http</artifactId>
108                 <version>${version.jersey}</version>
109                 <exclusions>
110                     <exclusion>
111                         <groupId>org.eclipse.jetty</groupId>
112                         <artifactId>jetty-util</artifactId>
113                     </exclusion>
114                 </exclusions>
115             </dependency>
116
117             <dependency>
118                 <groupId>org.glassfish.jersey.core</groupId>
119                 <artifactId>jersey-client</artifactId>
120                 <version>${version.jersey}</version>
121             </dependency>
122
123             <dependency>
124                 <groupId>org.glassfish.jersey.core</groupId>
125                 <artifactId>jersey-common</artifactId>
126                 <version>${version.jersey}</version>
127             </dependency>
128
129             <dependency>
130                 <groupId>org.glassfish.jersey.inject</groupId>
131                 <artifactId>jersey-hk2</artifactId>
132                 <version>${version.jersey}</version>
133             </dependency>
134
135             <dependency>
136                 <groupId>org.glassfish.jersey.containers</groupId>
137                 <artifactId>jersey-container-grizzly2-http</artifactId>
138                 <version>${version.jersey}</version>
139             </dependency>
140
141             <dependency>
142                 <groupId>org.glassfish.jersey.media</groupId>
143                 <artifactId>jersey-media-moxy</artifactId>
144                 <version>${version.jersey}</version>
145             </dependency>
146
147             <dependency>
148                 <groupId>org.glassfish.jersey.media</groupId>
149                 <artifactId>jersey-media-json-jackson</artifactId>
150                 <version>${version.jersey}</version>
151             </dependency>
152
153             <dependency>
154                 <groupId>org.glassfish.jersey.test-framework</groupId>
155                 <artifactId>jersey-test-framework-core</artifactId>
156                 <version>${version.jersey}</version>
157             </dependency>
158
159             <dependency>
160                 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
161                 <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
162                 <version>${version.jersey}</version>
163             </dependency>
164
165             <dependency>
166                 <groupId>org.glassfish.jersey.media</groupId>
167                 <artifactId>jersey-media-multipart</artifactId>
168                 <version>${version.jersey}</version>
169             </dependency>
170
171             <!-- MariaDB -->
172             <dependency>
173                 <groupId>org.mariadb.jdbc</groupId>
174                 <artifactId>mariadb-java-client</artifactId>
175                 <version>2.2.6</version>
176             </dependency>
177
178             <!-- Swagger Jersey2 JAXRS -->
179             <dependency>
180                 <groupId>io.swagger</groupId>
181                 <artifactId>swagger-jersey2-jaxrs</artifactId>
182                 <version>${version.swagger}</version>
183                 <exclusions>
184                     <exclusion>
185                         <groupId>org.glassfish.jersey.containers</groupId>
186                         <artifactId>jersey-container-servlet-core</artifactId>
187                     </exclusion>
188                 </exclusions>
189             </dependency>
190
191             <!-- Encoder and decoders for various formats -->
192             <dependency>
193                 <groupId>commons-codec</groupId>
194                 <artifactId>commons-codec</artifactId>
195                 <version>1.11</version>
196             </dependency>
197
198             <dependency>
199                 <groupId>com.thoughtworks.xstream</groupId>
200                 <artifactId>xstream</artifactId>
201                 <version>1.4.11.1</version>
202             </dependency>
203
204             <!-- Eclipse Persistence API -->
205             <!-- NOTE: use this instead of persistence-api -->
206             <dependency>
207                 <groupId>org.eclipse.persistence</groupId>
208                 <artifactId>javax.persistence</artifactId>
209                 <version>2.1.0</version>
210             </dependency>
211
212             <!-- Eclipse JPA API -->
213             <dependency>
214                 <groupId>org.eclipse.persistence</groupId>
215                 <artifactId>org.eclipse.persistence.jpa</artifactId>
216                 <version>${version.eclipselink}</version>
217             </dependency>
218
219             <!-- EclipseLink API -->
220             <dependency>
221                 <groupId>org.eclipse.persistence</groupId>
222                 <artifactId>eclipselink</artifactId>
223                 <version>${version.eclipselink}</version>
224             </dependency>
225
226             <!-- Java Servlet API -->
227             <dependency>
228                 <groupId>javax.servlet</groupId>
229                 <artifactId>javax.servlet-api</artifactId>
230                 <version>4.0.1</version>
231             </dependency>
232
233             <!-- HttpComponents Client -->
234             <dependency>
235                 <groupId>org.apache.httpcomponents</groupId>
236                 <artifactId>httpclient</artifactId>
237                 <version>4.5.9</version>
238             </dependency>
239
240             <!-- HttpComponents Core (blocking I/O) -->
241             <dependency>
242                 <groupId>org.apache.httpcomponents</groupId>
243                 <artifactId>httpcore</artifactId>
244                 <version>4.4.9</version>
245             </dependency>
246
247             <!-- JSON marshalling and unmarshalling -->
248             <dependency>
249                 <groupId>com.google.code.gson</groupId>
250                 <artifactId>gson</artifactId>
251                 <version>2.8.4</version>
252             </dependency>
253
254             <!-- Lombok -->
255             <dependency>
256                 <groupId>org.projectlombok</groupId>
257                 <artifactId>lombok</artifactId>
258                 <version>1.18.4</version>
259             </dependency>
260
261             <!-- Logging -->
262             <dependency>
263                 <groupId>org.slf4j</groupId>
264                 <artifactId>slf4j-api</artifactId>
265                 <version>1.7.25</version>
266             </dependency>
267             <dependency>
268                 <groupId>log4j</groupId>
269                 <artifactId>log4j</artifactId>
270                 <version>1.2.17</version>
271             </dependency>
272             <dependency>
273                 <groupId>ch.qos.logback</groupId>
274                 <artifactId>logback-core</artifactId>
275                 <version>${version.logback}</version>
276             </dependency>
277             <dependency>
278                 <groupId>ch.qos.logback</groupId>
279                 <artifactId>logback-classic</artifactId>
280                 <version>${version.logback}</version>
281             </dependency>
282
283             <!-- Dmaap Client -->
284             <dependency>
285                 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
286                 <artifactId>dmaapClient</artifactId>
287                 <version>${version.dmaap}</version>
288             </dependency>
289
290             <!-- Common Controller SDK -->
291             <dependency>
292                 <groupId>org.onap.ccsdk.cds.components</groupId>
293                 <artifactId>proto-definition</artifactId>
294                 <version>${version.ccsdk}</version>
295             </dependency>
296
297             <!-- AAF Client -->
298             <dependency>
299                 <groupId>org.onap.aaf.authz</groupId>
300                 <artifactId>aaf-cadi-aaf</artifactId>
301                 <version>2.1.2</version>
302             </dependency>
303
304             <!-- Client library for Cambria event routing API -->
305             <dependency>
306                 <groupId>com.att.nsa</groupId>
307                 <artifactId>cambriaClient</artifactId>
308                 <version>1.2.1-oss</version>
309             </dependency>
310             <dependency>
311                 <groupId>com.att.nsa</groupId>
312                 <artifactId>saClientLibrary</artifactId>
313                 <version>1.3.0-oss</version>
314             </dependency>
315
316             <!-- Commons CLI for command line parsing -->
317             <dependency>
318                 <groupId>commons-cli</groupId>
319                 <artifactId>commons-cli</artifactId>
320                 <version>1.4</version>
321             </dependency>
322
323             <!-- Web Sockets -->
324             <dependency>
325                 <groupId>org.java-websocket</groupId>
326                 <artifactId>Java-WebSocket</artifactId>
327                 <version>1.3.8</version>
328             </dependency>
329
330             <!-- SnakeYAML -->
331             <dependency>
332                 <groupId>org.yaml</groupId>
333                 <artifactId>snakeyaml</artifactId>
334                 <version>1.24</version>
335             </dependency>
336
337             <!-- Drools -->
338
339             <!--
340             Security Issues: 1 of 2
341             This dependency is trying to upgrade security fixes
342             identified. If it is removed or manipulated then please
343             fix the 2nd change as noted below.
344             -->
345
346             <dependency>
347                 <groupId>org.codehaus.plexus</groupId>
348                 <artifactId>plexus-utils</artifactId>
349                 <version>3.0.24</version>
350             </dependency>
351
352             <dependency>
353                 <groupId>org.kie</groupId>
354                 <artifactId>kie-api</artifactId>
355                 <version>${version.drools}</version>
356             </dependency>
357
358             <dependency>
359                 <groupId>org.kie</groupId>
360                 <artifactId>kie-ci</artifactId>
361                 <version>${version.drools}</version>
362
363                 <!--
364                 Issue: 2 of 2
365                 Excluding these 2 dependencies in order to force upgrade security fixes
366                 identified. As declared above. Any changes here should be reflected above
367                 and vice versa.
368                 -->
369
370                 <exclusions>
371                     <exclusion>
372                         <groupId>org.codehaus.plexus</groupId>
373                         <artifactId>plexus-utils</artifactId>
374                     </exclusion>
375                 </exclusions>
376             </dependency>
377
378             <dependency>
379                 <groupId>org.drools</groupId>
380                 <artifactId>drools-core</artifactId>
381                 <version>${version.drools}</version>
382             </dependency>
383
384             <dependency>
385                 <groupId>org.drools</groupId>
386                 <artifactId>drools-persistence-jpa</artifactId>
387                 <version>${version.drools}</version>
388             </dependency>
389
390             <dependency>
391                 <groupId>org.drools</groupId>
392                 <artifactId>drools-compiler</artifactId>
393                 <version>${version.drools}</version>
394             </dependency>
395
396             <dependency>
397                 <groupId>org.drools</groupId>
398                 <artifactId>drools-verifier-drl</artifactId>
399                 <version>${version.drools}</version>
400             </dependency>
401
402             <dependency>
403                 <groupId>org.drools</groupId>
404                 <artifactId>drools-verifier-api</artifactId>
405                 <version>${version.drools}</version>
406             </dependency>
407
408             <dependency>
409                 <groupId>org.drools</groupId>
410                 <artifactId>drools-verifier-core</artifactId>
411                 <version>${version.drools}</version>
412             </dependency>
413
414             <!-- Test dependencies -->
415
416             <!-- In memory Database Engine -->
417             <dependency>
418                 <groupId>com.h2database</groupId>
419                 <artifactId>h2</artifactId>
420                 <version>1.4.197</version>
421                 <scope>test</scope>
422             </dependency>
423
424             <!-- JUNIT -->
425             <dependency>
426                 <groupId>junit</groupId>
427                 <artifactId>junit</artifactId>
428                 <version>4.12</version>
429                 <scope>test</scope>
430             </dependency>
431
432             <!-- Cucumber Tests -->
433             <dependency>
434                 <groupId>io.cucumber</groupId>
435                 <artifactId>cucumber-java</artifactId>
436                 <version>4.2.0</version>
437                 <scope>test</scope>
438             </dependency>
439             <dependency>
440                 <groupId>io.cucumber</groupId>
441                 <artifactId>cucumber-junit</artifactId>
442                 <version>4.2.0</version>
443                 <scope>test</scope>
444             </dependency>
445
446             <!-- Exception testing -->
447             <dependency>
448                 <groupId>org.assertj</groupId>
449                 <artifactId>assertj-core</artifactId>
450                 <version>3.11.1</version>
451                 <scope>test</scope>
452             </dependency>
453
454             <!-- Mock libraries -->
455             <dependency>
456                 <groupId>com.openpojo</groupId>
457                 <artifactId>openpojo</artifactId>
458                 <version>0.8.10</version>
459                 <scope>test</scope>
460             </dependency>
461             <dependency>
462                 <groupId>org.mockito</groupId>
463                 <artifactId>mockito-all</artifactId>
464                 <version>1.10.19</version>
465                 <scope>test</scope>
466             </dependency>
467             <dependency>
468                 <groupId>org.powermock</groupId>
469                 <artifactId>powermock-core</artifactId>
470                 <version>${version.powermock}</version>
471                 <scope>test</scope>
472             </dependency>
473             <dependency>
474                 <groupId>org.powermock</groupId>
475                 <artifactId>powermock-api-mockito2</artifactId>
476                 <version>${version.powermock}</version>
477                 <scope>test</scope>
478             </dependency>
479             <dependency>
480                 <groupId>org.powermock</groupId>
481                 <artifactId>powermock-module-junit4</artifactId>
482                 <version>${version.powermock}</version>
483                 <scope>test</scope>
484             </dependency>
485             <dependency>
486                 <groupId>org.mockito</groupId>
487                 <artifactId>mockito-core</artifactId>
488                 <version>3.2.4</version>
489                 <scope>test</scope>
490             </dependency>
491         </dependencies>
492
493     </dependencyManagement>
494
495
496     <scm>
497         <connection>scm:git:ssh://git.onap.org:29418/${project.groupId}</connection>
498         <developerConnection>scm:git:ssh://git.onap.org:29418/${project.groupId}</developerConnection>
499         <tag>HEAD</tag>
500         <url>https://wiki.onap.org/display/DW/Integration+Project</url>
501     </scm>
502
503     <build>
504         <pluginManagement>
505             <plugins>
506                 <plugin>
507                     <groupId>org.codehaus.mojo</groupId>
508                     <artifactId>versions-maven-plugin</artifactId>
509                     <version>2.7</version>
510                 </plugin>
511                 <plugin>
512                     <groupId>org.apache.maven.plugins</groupId>
513                     <artifactId>maven-dependency-plugin</artifactId>
514                     <version>3.1.1</version>
515                 </plugin>
516                 <plugin>
517                     <!-- THIS PLUGIN IS RETIRED -->
518                     <groupId>org.apache.maven.plugins</groupId>
519                     <artifactId>maven-reactor-plugin</artifactId>
520                     <version>1.1</version>
521                 </plugin>
522                 <plugin>
523                     <!-- THIS PLUGIN IS RETIRED -->
524                     <!-- Advise to use m2e -->
525                     <groupId>org.apache.maven.plugins</groupId>
526                     <artifactId>maven-eclipse-plugin</artifactId>
527                     <version>2.10</version>
528                 </plugin>
529                 <plugin>
530                     <groupId>org.apache.maven.plugins</groupId>
531                     <artifactId>maven-install-plugin</artifactId>
532                     <version>3.0.0-M1</version>
533                 </plugin>
534                 <plugin>
535                     <groupId>org.apache.maven.plugins</groupId>
536                     <artifactId>maven-resources-plugin</artifactId>
537                     <version>3.1.0</version>
538                 </plugin>
539                 <plugin>
540                     <groupId>org.apache.maven.plugins</groupId>
541                     <artifactId>maven-source-plugin</artifactId>
542                     <version>3.2.0</version>
543                 </plugin>
544                 <plugin>
545                     <groupId>org.apache.maven.plugins</groupId>
546                     <artifactId>maven-release-plugin</artifactId>
547                     <version>2.5.3</version>
548                 </plugin>
549                 <plugin>
550                     <groupId>org.apache.maven.plugins</groupId>
551                     <artifactId>maven-assembly-plugin</artifactId>
552                     <version>3.2.0</version>
553                 </plugin>
554                 <plugin>
555                     <groupId>org.apache.maven.plugins</groupId>
556                     <artifactId>maven-jar-plugin</artifactId>
557                     <version>3.2.0</version>
558                 </plugin>
559                 <plugin>
560                     <groupId>org.apache.maven.plugins</groupId>
561                     <artifactId>maven-javadoc-plugin</artifactId>
562                     <version>3.1.1</version>
563                 </plugin>
564                 <plugin>
565                     <groupId>org.apache.maven.plugins</groupId>
566                     <artifactId>maven-shade-plugin</artifactId>
567                     <version>3.2.1</version>
568                 </plugin>
569                 <plugin>
570                     <groupId>org.apache.maven.plugins</groupId>
571                     <artifactId>maven-archetype-plugin</artifactId>
572                     <version>3.1.2</version>
573                 </plugin>
574                 <plugin>
575                     <groupId>org.apache.maven.archetype</groupId>
576                     <artifactId>archetype-packaging</artifactId>
577                     <version>3.1.2</version>
578                 </plugin>
579                 <plugin>
580                     <groupId>com.coderplus.maven.plugins</groupId>
581                     <artifactId>copy-rename-maven-plugin</artifactId>
582                     <version>1.0.1</version>
583                 </plugin>
584                 <plugin>
585                     <groupId>org.apache.maven.plugins</groupId>
586                     <artifactId>maven-compiler-plugin</artifactId>
587                     <version>3.8.1</version>
588                     <configuration>
589                         <encoding>${project.build.sourceEncoding}</encoding>
590                         <release>${java.version}</release>
591                     </configuration>
592                 </plugin>
593                 <plugin>
594                     <groupId>org.codehaus.mojo</groupId>
595                     <artifactId>exec-maven-plugin</artifactId>
596                     <version>1.6.0</version>
597                 </plugin>
598                 <plugin>
599                     <groupId>org.apache.maven.plugins</groupId>
600                     <artifactId>maven-war-plugin</artifactId>
601                     <version>3.2.3</version>
602                 </plugin>
603                 <plugin>
604                     <groupId>io.fabric8</groupId>
605                     <artifactId>docker-maven-plugin</artifactId>
606                     <version>0.31.0</version>
607                 </plugin>
608                 <plugin>
609                     <groupId>org.kie</groupId>
610                     <artifactId>kie-maven-plugin</artifactId>
611                     <version>${version.drools}</version>
612                     <extensions>true</extensions>
613                 </plugin>
614             </plugins>
615         </pluginManagement>
616
617         <plugins>
618             <plugin>
619                 <groupId>org.apache.maven.plugins</groupId>
620                 <artifactId>maven-compiler-plugin</artifactId>
621                 <configuration>
622                     <encoding>${project.build.sourceEncoding}</encoding>
623                     <source>${java.version}</source>
624                     <target>${java.version}</target>
625                 </configuration>
626             </plugin>
627         </plugins>
628     </build>
629
630 </project>