Building Phoenix Project

    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:

    1. $ mvn package -DskipTests

    To build against hadoop2, you can do:

    1. $ mvn install

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

    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:

    1. <repositories>
    2. ...
    3. <id>apache release</id>
    4. <url>https://repository.apache.org/content/repositories/releases/</url>
    5. </repository>
    6. ...
    7. </repositories>
    8.  
    9. ...
    10. <dependency>
    11. <groupId>org.apache.phoenix</groupId>
    12. <artifactId>phoenix-core</artifactId>
    13. <version>[version]</version>
    14. </dependency>
    15. </dependencies>

    Branches

    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: