| <?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> |
| <artifactId>ranger-plugin-service</artifactId> |
| <packaging>war</packaging> |
| <name>HAWQ Ranger Service</name> |
| <description>HAWQ Ranger Service</description> |
| <parent> |
| <groupId>org.apache.hawq</groupId> |
| <artifactId>ranger-plugin</artifactId> |
| <version>2.4.0.0</version> |
| <relativePath>..</relativePath> |
| </parent> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>3.0.2</version> |
| <executions> |
| <execution> |
| <id>copy-resources</id> |
| <phase>validate</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <escapeString>\</escapeString> |
| <outputDirectory>${basedir}/target/conf</outputDirectory> |
| <resources> |
| <resource> |
| <directory>${basedir}/../conf</directory> |
| <excludes> |
| <exclude>ranger-servicedef-hawq.json</exclude> |
| <exclude>server.xml</exclude> |
| </excludes> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.19.1</version> |
| <configuration> |
| <!-- run test classes in separate JVMs, as RangerHawqAuthorizerServiceNameTest requires it --> |
| <reuseForks>false</reuseForks> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>3.0.0</version> |
| <configuration> |
| <!-- Due to Hadoop library using system-level JVM hook, all dependent classes must be loaded by |
| Tomcat's server classloader, so they are shipped in RPM and not with the webapp --> |
| <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <!-- use mvn tomcat6:run-war to run the appserver with the app deployed --> |
| <groupId>org.apache.tomcat.maven</groupId> |
| <artifactId>tomcat6-maven-plugin</artifactId> |
| <version>2.2</version> |
| <configuration> |
| <path>/rps</path> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.codehaus.jackson</groupId> |
| <artifactId>jackson-xc</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.ranger</groupId> |
| <artifactId>ranger-plugins-common</artifactId> |
| </dependency> |
| <!-- explicitly package hadoop-hdfs.jar required for auditing to HDFS --> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-hdfs</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.powermock</groupId> |
| <artifactId>powermock-module-junit4</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.powermock</groupId> |
| <artifactId>powermock-api-mockito</artifactId> |
| </dependency> |
| </dependencies> |
| |
| |
| </project> |