summaryrefslogtreecommitdiffstats
path: root/dist/vespa.spec
diff options
context:
space:
mode:
Diffstat (limited to 'dist/vespa.spec')
-rw-r--r--dist/vespa.spec5
1 files changed, 3 insertions, 2 deletions
diff --git a/dist/vespa.spec b/dist/vespa.spec
index b2d9499085f..e7da84afdfa 100644
--- a/dist/vespa.spec
+++ b/dist/vespa.spec
@@ -155,9 +155,10 @@ source %{_devtoolset_enable} || true
%if 0%{?_rhmaven35_enable:1}
source %{_rhmaven35_enable} || true
%endif
-alternatives --set java java-11-openjdk.x86_64
-alternatives --set javac java-11-openjdk.x86_64
+
+export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
export FACTORY_VESPA_VERSION=%{version}
+
sh bootstrap.sh java
mvn --batch-mode -nsu -T 1 install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
cmake3 -DCMAKE_INSTALL_PREFIX=%{_prefix} \