| <?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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>org.apache.ranger</groupId> | |
| <artifactId>ranger</artifactId> | |
| <version>3.0.0-SNAPSHOT</version> | |
| </parent> | |
| <artifactId>ranger-intg</artifactId> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.ranger</groupId> | |
| <artifactId>ranger-plugins-common</artifactId> | |
| <version>${project.version}</version> | |
| <scope>compile</scope> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>io.netty</groupId> | |
| <artifactId>netty-handler</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>io.netty</groupId> | |
| <artifactId>netty-transport-native-epoll</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.ws.rs</groupId> | |
| <artifactId>jakarta.ws.rs-api</artifactId> | |
| <version>${jakarta.ws.rs-api.version}</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.jersey.core</groupId> | |
| <artifactId>jersey-client</artifactId> | |
| <version>${jersey-client.version}</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.jersey.media</groupId> | |
| <artifactId>jersey-media-json-jackson</artifactId> | |
| <version>${jersey-client.version}</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <!-- Test --> | |
| <dependency> | |
| <groupId>org.junit.jupiter</groupId> | |
| <artifactId>junit-jupiter</artifactId> | |
| <version>${junit.jupiter.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.mockito</groupId> | |
| <artifactId>mockito-core</artifactId> | |
| <version>${mockito.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.mockito</groupId> | |
| <artifactId>mockito-junit-jupiter</artifactId> | |
| <version>${mockito.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-pmd-plugin</artifactId> | |
| <version>${maven.pmd.plugin.version}</version> | |
| <configuration> | |
| <rulesets> | |
| <ruleset>${project.parent.basedir}/dev-support/ranger-pmd-ruleset.xml</ruleset> | |
| </rulesets> | |
| <sourceEncoding>UTF-8</sourceEncoding> | |
| <failOnViolation>true</failOnViolation> | |
| <linkXRef>false</linkXRef> | |
| <includeTests>true</includeTests> | |
| <verbose>true</verbose> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <goals> | |
| <goal>check</goal> | |
| </goals> | |
| <phase>verify</phase> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>exec-maven-plugin</artifactId> | |
| <version>${maven.exec.plugin.version}</version> | |
| <executions> | |
| <execution> | |
| <goals> | |
| <goal>exec</goal> | |
| </goals> | |
| <phase>test</phase> | |
| <configuration> | |
| <skip>${skipTests}</skip> | |
| <environmentVariables> | |
| <PYTHONPATH>${project.basedir}/src/main/python</PYTHONPATH> | |
| </environmentVariables> | |
| <executable>python3</executable> | |
| <arguments> | |
| <argument>-B</argument> | |
| <argument>src/test/python/test_ranger_client.py</argument> | |
| </arguments> | |
| </configuration> | |
| </execution> | |
| <execution> | |
| <id>pypi-dist</id> | |
| <goals> | |
| <goal>exec</goal> | |
| </goals> | |
| <phase>prepare-package</phase> | |
| <configuration> | |
| <skip>true</skip> | |
| <executable>python3</executable> | |
| <arguments> | |
| <argument>src/main/python/setup.py</argument> | |
| <argument>sdist</argument> | |
| <argument>bdist_wheel</argument> | |
| </arguments> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-clean-plugin</artifactId> | |
| <version>${maven-clean-plugin.version}</version> | |
| <configuration> | |
| <filesets> | |
| <fileset> | |
| <directory>dist</directory> | |
| </fileset> | |
| </filesets> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </project> |