CALL NOW 713-568-9753
11 Dec 2013
maven project pom.xml for Hadoop/HBase dependencies
ElephantScale AdminPosted in: Dev Stuff 0

If you are building a Java project that has Hadoop or HBase dependency  (for example a Java mapreduce application), here is a simple POM.xml to get you started

1) project structure:

src/main/java   <--- all the java code goes here

here is the pom.xml on github :

<project xmlns="" xmlns:xsi=""

    <groupId>mygroup</groupId> <!-- change this -->
    <artifactId>project_name</artifactId> <!-- change this -->
    <name>Sample Project Name</name> <!-- change this -->



3) Compiling
To compile
$ mvn compile
to create jar
$ mvn package
This will create a jar file in target/ directory

4) Adding more dependencies
You can search and add dependencies from

Leave a Reply

Your email address will not be published. Required fields are marked *