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:
- $ mvn package -DskipTests
To build against hadoop2, you can do:
- $ 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:
- <repositories>
- ...
- <id>apache release</id>
- <url>https://repository.apache.org/content/repositories/releases/</url>
- </repository>
- ...
- </repositories>
- ...
- <dependency>
- <groupId>org.apache.phoenix</groupId>
- <artifactId>phoenix-core</artifactId>
- <version>[version]</version>
- </dependency>
- </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: