javapackages-bootstrap/0001-Bind-to-OpenJDK-17-for-runtime.patch

40 lines
1.0 KiB
Diff
Raw Normal View History

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