Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.
The "Hbase/MavenPrimer" page has been changed by stack. http://wiki.apache.org/hadoop/Hbase/MavenPrimer?action=diff&rev1=2&rev2=3 -------------------------------------------------- + == Table of Contents == + + 1. [[#whatdoineed|What do I need?]] + 1. [[#ide|What about IDE support?]] + 1. [[#jar|How do I just build the jars without going through a full unit test cycle?]] + 1. [[#full|How do I do a full Distribution style build, including running all the tests?]] + 1. [[#core|I don't want to build all the other modules, I'm just interested in the base Hbase 'core' stuff, is there something simpler?]] + 1. [[#javadoc|How do I build javadoc only?]] + 1. [[#oneunittest|How do I run one unit test only?]] + + <<Anchor(whatdoineed)>> + == What do I need? == You need Maven 2.0.9 or greater, I would recommend Maven 2.2 though. Downloads here: @@ -14, +26 @@ as there are a few things within the build that require more than the standard JVM memory allows. + <<Anchor(ide)>> + == What about IDE support? == IntelliJ: Built-in awesomeness Eclipse: Definitely recommend the M2Eclipse plugin here: http://m2eclipse.sonatype.org/ + <<Anchor(jar)>> == How do I just build the jars without going through a full unit test cycle? == From the top-level directory: @@ -27, +42 @@ you'll find the jars under the 'target' sub-directory of each sub-module, so 'hbase/core/target/hbase-core-0.20.1.jar' is effectively the original 'hbase.jar' produced previously. + <<Anchor(full)>> == How do I do a full Distribution style build, including running all the tests? == From the top-level directory: @@ -35, +51 @@ In the top-level 'hbase/target' directory you will find a set of tar balls and zip files. the '-bin' contains something akin to the original HBase release tar ball. The -'project' and -'src' are there to provide an archive of the entire Maven project as it stood during release, and a slimmer, source-only bundle respectively. + <<Anchor(core)>> == I don't want to build all the other modules, I'm just interested in the base Hbase 'core' stuff, is there something simpler? == sure, just: @@ -44, +61 @@ look in the target sub-directory. - Enjoy! + <<Anchor(javadoc)>> + == How do I build javadoc only? == + + {{{mvn javadoc:javadoc}}} + + <<Anchor(oneunittest)>> + + == How do I run one unit test only? == + + {{{mvn mvn test -Dtest=<CLASSNAME>}}} +