| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed 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. See accompanying LICENSE file. |
| --> |
| <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> |
| <artifactId>ratis</artifactId> |
| <groupId>org.apache.ratis</groupId> |
| <version>2.1.0</version> |
| </parent> |
| |
| <artifactId>ratis-hadoop</artifactId> |
| <name>Apache Ratis Hadoop Support</name> |
| |
| <dependencies> |
| <dependency> |
| <artifactId>ratis-proto</artifactId> |
| <groupId>org.apache.ratis</groupId> |
| </dependency> |
| |
| <dependency> |
| <artifactId>ratis-common</artifactId> |
| <groupId>org.apache.ratis</groupId> |
| </dependency> |
| <dependency> |
| <artifactId>ratis-common</artifactId> |
| <groupId>org.apache.ratis</groupId> |
| <scope>test</scope> |
| <type>test-jar</type> |
| </dependency> |
| |
| <dependency> |
| <artifactId>ratis-client</artifactId> |
| <groupId>org.apache.ratis</groupId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <artifactId>ratis-client</artifactId> |
| <groupId>org.apache.ratis</groupId> |
| <scope>test</scope> |
| <type>test-jar</type> |
| </dependency> |
| |
| <dependency> |
| <artifactId>ratis-server</artifactId> |
| <groupId>org.apache.ratis</groupId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <artifactId>ratis-server</artifactId> |
| <groupId>org.apache.ratis</groupId> |
| <scope>test</scope> |
| <type>test-jar</type> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| <version>${hadoop.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.zookeeper</groupId> |
| <artifactId>zookeeper</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>11.0.2</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.github.spotbugs</groupId> |
| <artifactId>spotbugs-annotations</artifactId> |
| <optional>true</optional> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.xolstice.maven.plugins</groupId> |
| <artifactId>protobuf-maven-plugin</artifactId> |
| <configuration> |
| <protocArtifact> |
| com.google.protobuf:protoc:${hadoop.protobuf.version}:exe:${os.detected.classifier} |
| </protocArtifact> |
| <!-- Place these in a location that compiler-plugin is already looking --> |
| <outputDirectory>${project.build.directory}/generated-sources</outputDirectory> |
| <!-- With multiple executions, this must be `false` otherwise we wipe out the previous execution --> |
| <clearOutputDirectory>false</clearOutputDirectory> |
| </configuration> |
| <executions> |
| <execution> |
| <id>compile-protobuf</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <skipTests>true</skipTests> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>com.github.spotbugs</groupId> |
| <artifactId>spotbugs-maven-plugin</artifactId> |
| <configuration> |
| <excludeFilterFile>${project.basedir}/dev-support/findbugsExcludeFile.xml</excludeFilterFile> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |