| <?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/maven-v4_0_0.xsd">
|
| <modelVersion>4.0.0</modelVersion>
|
| <groupId>${groupId}</groupId>
|
| <artifactId>${artifactId}</artifactId>
|
| <packaging>jar</packaging>
|
| <version>${version}</version>
|
| <name>Instamo Example</name>
|
| <url>http://accumulo.apache.org</url>
|
| <properties>
|
| <accumulo.version>1.5.0-SNAPSHOT</accumulo.version>
|
| <hadoop-one.version>1.0.4</hadoop-one.version>
|
| <hadoop-two.version>2.0.2-alpha</hadoop-two.version>
|
| <maclass>${package}.MapReduceExample</maclass>
|
| </properties>
|
| <profiles>
|
| <!-- profile for building against Hadoop 1.0.x |
| Activate by not specifying hadoop.profile -->
|
| <profile>
|
| <id>hadoop-1.0</id>
|
| <activation>
|
| <property>
|
| <name>!hadoop.profile</name>
|
| </property>
|
| </activation>
|
| <properties>
|
| <hadoop.version>${hadoop-one.version}</hadoop.version>
|
| </properties>
|
| <dependencies>
|
| <dependency>
|
| <groupId>org.apache.hadoop</groupId>
|
| <artifactId>hadoop-core</artifactId>
|
| <version>${hadoop.version}</version>
|
| </dependency>
|
| </dependencies>
|
| </profile>
|
| <!-- profile for building against Hadoop 2.0.x |
| Activate using: mvn -Dhadoop.profile=2.0 -->
|
| <profile>
|
| <id>hadoop-2.0</id>
|
| <activation>
|
| <property>
|
| <name>hadoop.profile</name>
|
| <value>2.0</value>
|
| </property>
|
| </activation>
|
| <properties>
|
| <hadoop.version>${hadoop-two.version}</hadoop.version>
|
| </properties>
|
| <dependencies>
|
| <dependency>
|
| <groupId>org.apache.hadoop</groupId>
|
| <artifactId>hadoop-client</artifactId>
|
| <version>${hadoop.version}</version>
|
| </dependency>
|
| </dependencies>
|
| </profile>
|
| </profiles>
|
| <dependencies>
|
| <dependency>
|
| <groupId>junit</groupId>
|
| <artifactId>junit</artifactId>
|
| <version>4.11</version>
|
| <scope>test</scope>
|
| </dependency>
|
| <dependency>
|
| <groupId>org.apache.accumulo</groupId>
|
| <artifactId>accumulo-core</artifactId>
|
| <version>${accumulo.version}</version>
|
| </dependency>
|
| <dependency>
|
| <groupId>org.apache.accumulo</groupId>
|
| <artifactId>accumulo-server</artifactId>
|
| <version>${accumulo.version}</version>
|
| </dependency>
|
| <dependency>
|
| <groupId>org.apache.zookeeper</groupId>
|
| <artifactId>zookeeper</artifactId>
|
| <version>3.3.4</version>
|
| </dependency>
|
| <dependency>
|
| <groupId>commons-io</groupId>
|
| <artifactId>commons-io</artifactId>
|
| <version>2.4</version>
|
| </dependency>
|
| <dependency>
|
| <groupId>org.apache.accumulo</groupId>
|
| <artifactId>accumulo-test</artifactId>
|
| <version>${accumulo.version}</version>
|
| </dependency>
|
| </dependencies>
|
| <build>
|
| <plugins>
|
| <plugin>
|
| <artifactId>maven-compiler-plugin</artifactId>
|
| <version>2.0.2</version>
|
| <configuration>
|
| <source>1.6</source>
|
| <target>1.6</target>
|
| </configuration>
|
| </plugin>
|
| <plugin>
|
| <groupId>org.codehaus.mojo</groupId>
|
| <artifactId>exec-maven-plugin</artifactId>
|
| <version>1.2.1</version>
|
| <configuration>
|
| <executable>java</executable>
|
| <arguments>
|
| <argument>-classpath</argument>
|
| <classpath />
|
| <argument>${maclass}</argument>
|
| </arguments>
|
| </configuration>
|
| </plugin>
|
| </plugins>
|
| </build>
|
| </project>
|