summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Loberg <pallo-github@loberg.no>2017-11-02 15:14:34 +0100
committerPaul Loberg <pallo-github@loberg.no>2017-11-02 15:14:34 +0100
commit7c79ee67443088fb21301e3d05b607d83612d482 (patch)
treeae1229e60647ea45be339731baabb422c90852aa
parentcdf5989d58c8afd836ccdc4a16c093046182c569 (diff)
Enable the installed Maven 3.3 before Java build.
-rw-r--r--README.md1
-rwxr-xr-xbootstrap.sh2
2 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9855a35260f..97c4bf69bc3 100644
--- a/README.md
+++ b/README.md
@@ -28,6 +28,7 @@ You can also setup CentOS 7 natively and install the following build dependencie
### Build Java modules
export MAVEN_OPTS="-Xms128m -Xmx512m"
+ source /opt/rh/rh-maven33/enable
bash bootstrap.sh java
mvn -T <num-threads> install
diff --git a/bootstrap.sh b/bootstrap.sh
index 075da74b7c7..d0593eb1dee 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -5,6 +5,8 @@ usage() {
echo "Usage: $0 [full | java | default]" >&2
}
+source /opt/rh/rh-maven33/enable
+
if [ $# -eq 0 ]; then
# Build minimal set of java modules required to run cmake
MODE=default