...
You might have to set the following Maven options on certain systems to get build working. Check out the suggested value for MAVEN_OPTS under the testing section (How do I run all of the unit tests?): Set MAVEN_OPTS to "-Xmx2g -XX:MaxPermSize=256M".
How to build all source?
...
Code Block |
---|
$ mkdir workspace
$ cd workspace
$ git clone https://github.com/apache/hive.git
$ cd hive
$ export MAVEN_OPTS="-Xmx512m"
$ mvn clean install -DskipTests -Phadoop-2
$ mvn eclipse:clean
$ mvn eclipse:eclipse -DdownloadSources -DdownloadJavadocs -Phadoop-2
$ cd itests
$ mvn clean install -DskipTests -Phadoop-2
$ mvn eclipse:clean
$ mvn eclipse:eclipse -DdownloadSources -DdownloadJavadocs -Phadoop-2
|
...
Info | ||||
---|---|---|---|---|
| ||||
Make sure that your JAVA_HOME is appropriately set (some tests need this), and set ANT_OPTS to increase the size allocated to the Permanent Generation as per the following:
Then, for a clean build, run
Note that running |
...