13.4. 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).

13.4.1. Compile

mvn compile
          

13.4.2. Run all Unit Tests

mvn test
          

13.4.3. Run a Single Unit Test

mvn test -Dtest=TestXYZ
          

13.4.4. Run a Few Unit Tests

mvn test -Dtest=TestXYZ,TestABC
          

13.4.5. Run all Unit Tests for a Package

mvn test -Dtest=org.apache.hadoop.hbase.client.*
          

13.4.6. Integration Tests

HBase 0.92 added a verify maven target. Invoking it with run all the phases up to and including the verify phase via the maven failsafe plugin, running all the unit tests as well as the long running unit and integration tests.

mvn verify