| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| http://www.apache.org/licenses/LICENSE-2.0 |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| <parent> |
| <artifactId>nifi-registry-ranger</artifactId> |
| <groupId>org.apache.nifi.registry</groupId> |
| <version>0.6.0-SNAPSHOT</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>nifi-registry-ranger-plugin</artifactId> |
| <packaging>jar</packaging> |
| |
| <properties> |
| <ranger.version>1.1.0</ranger.version> |
| <ranger.hadoop.version>3.0.0</ranger.hadoop.version> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.nifi.registry</groupId> |
| <artifactId>nifi-registry-data-model</artifactId> |
| <version>0.6.0-SNAPSHOT</version> |
| <!-- |
| Since using the one in the war causes class loading issue between war and ranger/lib, |
| this needs to be in ranger/lib. |
| --> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi.registry</groupId> |
| <artifactId>nifi-registry-security-api</artifactId> |
| <version>0.6.0-SNAPSHOT</version> |
| <!-- The one in registry/lib can be used --> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi.registry</groupId> |
| <artifactId>nifi-registry-properties</artifactId> |
| <version>0.6.0-SNAPSHOT</version> |
| <!-- The one in registry/lib can be used --> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.nifi.registry</groupId> |
| <artifactId>nifi-registry-ranger-jersey-bundle</artifactId> |
| <version>0.6.0-SNAPSHOT</version> |
| <exclusions> |
| <exclusion> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-bundle</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- Ranger dependencies --> |
| <dependency> |
| <groupId>org.apache.ranger</groupId> |
| <artifactId>ranger-plugins-common</artifactId> |
| <version>${ranger.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.google.code.findbugs</groupId> |
| <artifactId>jsr305</artifactId> |
| </exclusion> |
| <exclusion> |
| <!-- Use nifi-registry-ranger-jersey-bundle instead to avoid |
| javax.ws.rs version conflict. --> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-bundle</artifactId> |
| </exclusion> |
| <exclusion> |
| <!-- The one in hadoop-common conflicts with jersey-bundle. --> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-json</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.ranger</groupId> |
| <artifactId>ranger-plugins-audit</artifactId> |
| <version>${ranger.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.ranger</groupId> |
| <artifactId>credentialbuilder</artifactId> |
| <version>${ranger.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- hadoop-client is needed for auditing to HDFS --> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-client</artifactId> |
| <version>${ranger.hadoop.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-yarn-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-yarn-client</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-mapreduce-client</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-mapreduce-client-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-mapreduce-client-jobclient</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!-- hadoop-common and hadoop-auth are transitive dependencies of ranger client, but we need to make sure they |
| are the same version as hadoop-client above --> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| <version>${ranger.hadoop.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>com.google.code.findbugs</groupId> |
| <artifactId>jsr305</artifactId> |
| </exclusion> |
| <exclusion> |
| <!-- Avoid using old jsr311 which does not have |
| javax.ws.rs.core.Application.getProperties method |
| that is used by newer Jetty. --> |
| <groupId>javax.ws.rs</groupId> |
| <artifactId>jsr311-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <!-- Avoid using old jersey-core which does not have |
| javax.ws.rs.core.Application.getProperties method |
| that is used by newer Jetty. --> |
| <groupId>com.sun.jersey</groupId> |
| <artifactId>jersey-core</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-auth</artifactId> |
| <version>${ranger.hadoop.version}</version> |
| </dependency> |
| |
| <!-- Followings are required by com.sun.jersey.core.spi.factory.MessageBodyFactory --> |
| <dependency> |
| <groupId>javax.mail</groupId> |
| <artifactId>mail</artifactId> |
| <version>1.4.7</version> |
| </dependency> |
| <dependency> |
| <groupId>net.java.dev.rome</groupId> |
| <artifactId>rome</artifactId> |
| <version>1.0.0</version> |
| </dependency> |
| <dependency> |
| <groupId>org.codehaus.jettison</groupId> |
| <artifactId>jettison</artifactId> |
| <version>1.3.8</version> |
| </dependency> |
| |
| <!-- Test dependencies --> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-simple</artifactId> |
| <version>1.7.12</version> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| </project> |