Created
October 30, 2013 02:06
-
-
Save gwenshap/7226124 to your computer and use it in GitHub Desktop.
POM for hadoop project with multiple components
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> | |
| <groupId>com.hadooprecipes.recipes</groupId> | |
| <artifactId>hadoop-recipes</artifactId> | |
| <version>1.0</version> | |
| <packaging>jar</packaging> | |
| <name>Samples</name> | |
| <url>http://maven.apache.org</url> | |
| <properties> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
| <hadoop.version>${cdh.mr1.version}</hadoop.version> | |
| <geotools.version>9.5</geotools.version> | |
| <maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile> | |
| <test.build.dir>${project.build.directory}/test-dir</test.build.dir> | |
| <test.build.data>${test.build.dir}</test.build.data> | |
| <flume.version>1.3</flume.version> | |
| <avro.version>1.7.4</avro.version> | |
| <mahout.version>0.7-cdh4.3.0</mahout.version> | |
| <solr.version>4.3.0-cdh4.3.0_search0.9.1-SNAPSHOT</solr.version> | |
| <cdh.mr1.version>2.0.0-mr1-cdh4.3.0</cdh.mr1.version> | |
| <zookeeper.version>3.4.5-cdh4.3.0</zookeeper.version> | |
| <hbase.version>0.94.6-cdh4.3.0</hbase.version> | |
| <hive.version>0.10.0-cdh4.3.0</hive.version> | |
| <guava.version>11.0.2</guava.version> | |
| <tika.version>1.3</tika.version> | |
| <jackson.version>2.2.1</jackson.version> | |
| <httpclient.version>4.2.3</httpclient.version> | |
| <slf4j.version>1.6.1</slf4j.version> | |
| <typesafe.config.version>1.0.0</typesafe.config.version> | |
| <argparse4j.version>0.4.0</argparse4j.version> | |
| <junit.version>4.11</junit.version> | |
| <codahale.metrics.version>3.0.0-BETA3</codahale.metrics.version> | |
| <surefire.version>2.12.4</surefire.version> | |
| <maven.antrun.plugin.version>1.7</maven.antrun.plugin.version> | |
| <build.helper.maven.plugin.version>1.7</build.helper.maven.plugin.version> | |
| <url.cloudera>http://www.cloudera.com</url.cloudera> | |
| </properties> | |
| <repositories> | |
| <repository> | |
| <id>cloudera-releases</id> | |
| <url>https://repository.cloudera.com/content/repositories/releases/</url> | |
| <releases> | |
| <enabled>true</enabled> | |
| </releases> | |
| <snapshots> | |
| <enabled>false</enabled> | |
| </snapshots> | |
| </repository> | |
| <repository> | |
| <id>cloudera-third-party</id> | |
| <url>https://repository.cloudera.com/content/repositories/third-party/</url> | |
| <releases> | |
| <enabled>true</enabled> | |
| </releases> | |
| <snapshots> | |
| <enabled>false</enabled> | |
| </snapshots> | |
| </repository> | |
| <repository> | |
| <id>osgeo</id> | |
| <name>Open Source Geospatial Foundation Repository</name> | |
| <url>http://download.osgeo.org/webdav/geotools/</url> | |
| <releases> | |
| <enabled>true</enabled> | |
| </releases> | |
| <snapshots> | |
| <enabled>false</enabled> | |
| </snapshots> | |
| </repository> | |
| </repositories> | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <artifactId>maven-assembly-plugin</artifactId> | |
| <version>2.3</version> | |
| <configuration> | |
| <descriptorRefs> | |
| <descriptorRef>jar-with-dependencies</descriptorRef> | |
| </descriptorRefs> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <id>make-assembly</id> <!-- this is used for inheritance merges --> | |
| <phase>package</phase> <!-- bind to the packaging phase --> | |
| <goals> | |
| <goal>single</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> <!-- this fixes a generics not supported error when running mvn package--> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <configuration> | |
| <source>1.6</source> | |
| <target>1.6</target> | |
| </configuration> | |
| </plugin> <!-- end of fix --> | |
| <plugin> | |
| <groupId>org.apache.avro</groupId> | |
| <artifactId>avro-maven-plugin</artifactId> | |
| <version>${avro.version}</version> | |
| <executions> | |
| <execution> | |
| <phase>generate-sources</phase> | |
| <goals> | |
| <goal>schema</goal> | |
| </goals> | |
| <configuration> | |
| <sourceDirectory>${project.basedir}/src/main/avro/</sourceDirectory> | |
| <outputDirectory>${project.basedir}/src/main/java/</outputDirectory> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <configuration> | |
| <source>1.6</source> | |
| <target>1.6</target> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| <dependencies> | |
| <!-- Hive --> | |
| <dependency> | |
| <groupId>org.apache.hive</groupId> | |
| <artifactId>hive-exec</artifactId> | |
| <version>${hive.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.hive</groupId> | |
| <artifactId>hive-metastore</artifactId> | |
| <version>${hive.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.hive</groupId> | |
| <artifactId>hive-pdk</artifactId> | |
| <version>${hive.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.hadoop</groupId> | |
| <artifactId>hadoop-client</artifactId> | |
| <version>${hadoop.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.google.guava</groupId> | |
| <artifactId>guava</artifactId> | |
| <version>${guava.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.zookeeper</groupId> | |
| <artifactId>zookeeper</artifactId> | |
| <version>${zookeeper.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>log4j</groupId> | |
| <artifactId>log4j</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>jline</groupId> | |
| <artifactId>jline</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.googlecode.json-simple</groupId> | |
| <artifactId>json-simple</artifactId> | |
| <version>1.1</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.avro</groupId> | |
| <artifactId>avro</artifactId> | |
| <version>${avro.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.avro</groupId> | |
| <artifactId>avro-mapred</artifactId> | |
| <version>${avro.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.hbase</groupId> | |
| <artifactId>hbase</artifactId> | |
| <version>${hbase.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.apache.avro</groupId> | |
| <artifactId>avro</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>commons-lang</groupId> | |
| <artifactId>commons-lang</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>com.google.guava</groupId> | |
| <artifactId>guava</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>commons-logging</groupId> | |
| <artifactId>commons-logging</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>log4j</groupId> | |
| <artifactId>log4j</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>org.apache.hadoop</groupId> | |
| <artifactId>avro</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>org.apache.zookeeper</groupId> | |
| <artifactId>zookeeper</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>org.apache.thrift</groupId> | |
| <artifactId>thrift</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>org.jruby</groupId> | |
| <artifactId>jruby-complete</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-api</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-log4j12</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>com.google.protobuf</groupId> | |
| <artifactId>protobuf-java</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>com.sun.jersey</groupId> | |
| <artifactId>jersey-core</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>com.sun.jersey</groupId> | |
| <artifactId>jersey-json</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>com.sun.jersey</groupId> | |
| <artifactId>jersey-server</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>javax.ws.rs</groupId> | |
| <artifactId>jsr311-api</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>javax.xml.bind</groupId> | |
| <artifactId>jaxb-api</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>stax</groupId> | |
| <artifactId>stax-api</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>commons-cli</groupId> | |
| <artifactId>commons-cli</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>commons-codec</groupId> | |
| <artifactId>commons-codec</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>commons-httpclient</groupId> | |
| <artifactId>commons-httpclient</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>org.mortbay.jetty</groupId> | |
| <artifactId>jetty</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>org.mortbay.jetty</groupId> | |
| <artifactId>jetty-util</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>org.mortbay.jetty</groupId> | |
| <artifactId>jsp-2.1</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>org.mortbay.jetty</groupId> | |
| <artifactId>jsp-api-2.1</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>org.mortbay.jetty</groupId> | |
| <artifactId>servlet-api-2.5</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>tomcat</groupId> | |
| <artifactId>jasper-compiler</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>tomcat</groupId> | |
| <artifactId>jasper-runtime</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>com.github.stephenc.high-scale-lib</groupId> | |
| <artifactId>high-scale-lib</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>org.apache.thrift</groupId> | |
| <artifactId>libthrift</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>org.jamon</groupId> | |
| <artifactId>jamon-runtime</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.mahout</groupId> | |
| <artifactId>mahout-core</artifactId> | |
| <version>${mahout.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>jfree</groupId> | |
| <artifactId>jfreechart</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>log4j</groupId> | |
| <artifactId>log4j</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-log4j12</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.mahout</groupId> | |
| <artifactId>mahout-examples</artifactId> | |
| <version>${mahout.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>jfree</groupId> | |
| <artifactId>jfreechart</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.mahout</groupId> | |
| <artifactId>mahout-integration</artifactId> | |
| <version>${mahout.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>jfree</groupId> | |
| <artifactId>jfreechart</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.mahout</groupId> | |
| <artifactId>mahout-buildtools</artifactId> | |
| <version>${mahout.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>jfree</groupId> | |
| <artifactId>jfreechart</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.mahout</groupId> | |
| <artifactId>mahout-math</artifactId> | |
| <version>${mahout.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>jfree</groupId> | |
| <artifactId>jfreechart</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.googlecode.concurrentlinkedhashmap</groupId> | |
| <artifactId>concurrentlinkedhashmap-lru</artifactId> | |
| <version>1.2</version> | |
| </dependency> | |
| <dependency> <!-- see http://tika.apache.org --> | |
| <groupId>org.apache.tika</groupId> | |
| <artifactId>tika-xmp</artifactId> | |
| <version>${tika.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.apache.geronimo.specs</groupId> | |
| <artifactId>geronimo-stax-api_1.0_spec</artifactId> <!-- needed by tika-parsers but already provided by JDK --> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>xerces</groupId> | |
| <artifactId>xercesImpl</artifactId> <!-- used by com.drewnoakes:metadata-extractor:jar but replacing built-in XML parser with legacy xerces is scary and probably don't need it --> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> <!-- see http://argparse4j.sourceforge.net --> | |
| <groupId>net.sourceforge.argparse4j</groupId> | |
| <artifactId>argparse4j</artifactId> | |
| <version>${argparse4j.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-api</artifactId> | |
| <version>${slf4j.version}</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-log4j12</artifactId> | |
| <version>${slf4j.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.mrunit</groupId> | |
| <artifactId>mrunit</artifactId> | |
| <version>1.0.0</version> | |
| <classifier>hadoop2</classifier> | |
| <scope>test</scope> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>log4j</groupId> | |
| <artifactId>log4j</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.mockito</groupId> | |
| <artifactId>mockito-core</artifactId> | |
| <version>1.9.5</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| <version>${junit.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.hadoop</groupId> | |
| <artifactId>hadoop-minicluster</artifactId> | |
| <version>${hadoop.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.geotools</groupId> | |
| <artifactId>gt-api</artifactId> | |
| <version>${geotools.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.geotools</groupId> | |
| <artifactId>gt-epsg-hsql</artifactId> | |
| <version>${geotools.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.vividsolutions</groupId> | |
| <artifactId>jts</artifactId> | |
| <version>1.11</version> | |
| </dependency> | |
| </dependencies> | |
| </project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment