Phoenix is a fully mavenized project. Download source and build simply by doing:

$ mvn package

builds, runs fast unit tests and package Phoenix and put the resulting jars (phoenix-[version].jar and phoenix-[version]-client.jar) in the generated phoenix-core/target/ and phoenix-assembly/target/ directories respectively.

To build, but skip running the fast unit tests, you can do:

 $ mvn package -DskipTests

To build against hadoop2, you can do:

 $ mvn package -DskipTests -Dhadoop.profile=2

To run all tests including long running integration tests

 $ mvn install

To only build the generated parser (i.e. PhoenixSQLLexer and PhoenixSQLParser), you can do:

 $ mvn install -DskipTests
 $ mvn process-sources

To build an Eclipse project, install the m2e plugin and do an File->Import…->Import Existing Maven Projects selecting the root directory of Phoenix.


Phoenix is also hosted at Apache Maven Repository. You can add it to your mavenized project by adding the following to your pom:

      <id>apache release</id>

Note: [version] can be replaced by 3.1.0, 4.1.0, 3.0.0-incubating, 4.0.0-incubating, etc.


Phoenix 3.0 is running against hbase0.94+, Phoenix 4.0 is running against hbase0.98.1+ and Phoenix master branch is running against hbase trunk branch.

See also:

Building Project Web Site

How to do a release

Back to top