1.5. Maven Build Commands

All commands executed from the local HBase project directory.

Note: use Maven 3 (Maven 2 may work but we suggest you use Maven 3).

1.5.1. Compile

mvn compile
          

1.5.2. Running all or individual Unit Tests

See the Section 1.4.1.1, “Running tests” section above in Section 1.4.1, “Unit Tests”

1.5.3. Running all or individual Integration Tests

See Section 1.4.2, “Integration Tests”

1.5.4. To build against hadoop 0.22.x or 0.23.x

mvn -Dhadoop.profile=22 ...
          

That is, designate build with hadoop.profile 22. Pass 23 for hadoop.profile to build against hadoop 0.23. Tests do not all pass as of this writing so you may need ot pass -DskipTests unless you are inclined to fix the failing tests.