Change versions of Zookeeper and C3P0
[policy/apex-pdp.git] / plugins / plugins-context / plugins-context-locking / plugins-context-locking-curator / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2018 Ericsson. All rights reserved.
4    Modifications Copyright (C) 2019 Nordix Foundation.
5   ================================================================================
6   Licensed under the Apache License, Version 2.0 (the "License");
7   you may not use this file except in compliance with the License.
8   You may obtain a copy of the License at
9
10        http://www.apache.org/licenses/LICENSE-2.0
11
12   Unless required by applicable law or agreed to in writing, software
13   distributed under the License is distributed on an "AS IS" BASIS,
14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   See the License for the specific language governing permissions and
16   limitations under the License.
17
18   SPDX-License-Identifier: Apache-2.0
19   ============LICENSE_END=========================================================
20 -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22     <modelVersion>4.0.0</modelVersion>
23     <parent>
24         <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-locking</groupId>
25         <artifactId>plugins-context-locking</artifactId>
26         <version>2.1.0-SNAPSHOT</version>
27     </parent>
28
29     <artifactId>plugins-context-locking-curator</artifactId>
30     <name>${project.artifactId}</name>
31     <description>[${project.parent.artifactId}] Plugin for locking using Curator</description>
32
33     <dependencies>
34         <dependency>
35             <groupId>org.apache.curator</groupId>
36             <artifactId>curator-framework</artifactId>
37             <version>4.0.1</version>
38             <exclusions>
39                 <!-- The default Zookeeper version in Curator has vulnerabilities -->
40                 <exclusion>
41                     <groupId>org.apache.zookeeper</groupId>
42                     <artifactId>zookeeper</artifactId>
43                 </exclusion>
44             </exclusions>
45         </dependency>
46         <dependency>
47             <groupId>org.apache.curator</groupId>
48             <artifactId>curator-recipes</artifactId>
49             <version>4.0.1</version>
50         </dependency>
51         <!-- This Zookeeper version fixes the vulnerabilities -->
52         <dependency>
53             <groupId>org.apache.zookeeper</groupId>
54             <artifactId>zookeeper</artifactId>
55             <version>3.4.13</version>
56             <exclusions>
57             <!-- Zookeeper uses an ancient version of log4j -->
58                 <exclusion>
59                     <groupId>log4j</groupId>
60                     <artifactId>log4j</artifactId>
61                 </exclusion>
62                 <exclusion>
63                     <groupId>org.slf4j</groupId>
64                     <artifactId>slf4j-log4j12</artifactId>
65                 </exclusion>
66             </exclusions>
67         </dependency>
68     </dependencies>
69
70     <profiles>
71         <profile>
72             <id>apexSite</id>
73             <activation>
74                 <property>
75                     <name>apexSite</name>
76                 </property>
77             </activation>
78             <distributionManagement>
79                 <site>
80                     <id>${project.artifactId}-site</id>
81                     <url>${apex.adsite.prefix}/modules/plugins/plugins-context/${project.parent.artifactId}/${project.artifactId}/</url>
82                 </site>
83             </distributionManagement>
84         </profile>
85     </profiles>
86 </project>