You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
javapackages-bootstrap/0001-Bind-to-OpenJDK-17-for...

40 lines
1.0 KiB

From ad65f62443f23076dfc520d3f0589282da9530fa Mon Sep 17 00:00:00 2001
From: Mikolaj Izdebski <mizdebsk@redhat.com>
Date: Wed, 8 Jul 2020 09:04:57 +0200
Subject: [PATCH 2/2] Bind to OpenJDK 17 for runtime
---
apache-maven/src/bin/mvn | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn
index dfa384b8e..2e9f10da0 100755
--- a/downstream/maven/apache-maven/src/bin/mvn
+++ b/downstream/maven/apache-maven/src/bin/mvn
@@ -27,21 +27,7 @@
# MAVEN_SKIP_RC (Optional) Flag to disable loading of mavenrc files.
# -----------------------------------------------------------------------------
-if [ -z "$MAVEN_SKIP_RC" ] ; then
-
- if [ -f /usr/local/etc/mavenrc ] ; then
- . /usr/local/etc/mavenrc
- fi
-
- if [ -f /etc/mavenrc ] ; then
- . /etc/mavenrc
- fi
-
- if [ -f "$HOME/.mavenrc" ] ; then
- . "$HOME/.mavenrc"
- fi
-
-fi
+export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
--
2.31.1