This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch maven-3.8.x
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/maven-3.8.x by this push:
new f32eb09 [MNG-7010] Omit "NB: JAVA_HOME should point to a JDK not a
JRE"
f32eb09 is described below
commit f32eb09892686cba083f9f175b3c8eac0ac42ae7
Author: Michael Osipov <[email protected]>
AuthorDate: Fri Jul 23 22:45:34 2021 +0200
[MNG-7010] Omit "NB: JAVA_HOME should point to a JDK not a JRE"
This closes #512
---
apache-maven/src/bin/mvn | 5 ++---
apache-maven/src/bin/mvn.cmd | 5 ++---
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn
index cc2cdac..29e0eab 100755
--- a/apache-maven/src/bin/mvn
+++ b/apache-maven/src/bin/mvn
@@ -100,9 +100,8 @@ else
fi
if [ ! -x "$JAVACMD" ] ; then
- echo "The JAVA_HOME environment variable is not defined correctly" >&2
- echo "This environment variable is needed to run this program" >&2
- echo "NB: JAVA_HOME should point to a JDK not a JRE" >&2
+ echo "The JAVA_HOME environment variable is not defined correctly," >&2
+ echo "this environment variable is needed to run this program." >&2
exit 1
fi
diff --git a/apache-maven/src/bin/mvn.cmd b/apache-maven/src/bin/mvn.cmd
index 0faa39f..fcb0f45 100644
--- a/apache-maven/src/bin/mvn.cmd
+++ b/apache-maven/src/bin/mvn.cmd
@@ -54,9 +54,8 @@ set "JAVACMD=%JAVA_HOME%\bin\java.exe"
:checkJCmd
if exist "%JAVACMD%" goto chkMHome
-echo The JAVA_HOME environment variable is not defined correctly >&2
-echo This environment variable is needed to run this program >&2
-echo NB: JAVA_HOME should point to a JDK not a JRE >&2
+echo The JAVA_HOME environment variable is not defined correctly, >&2
+echo this environment variable is needed to run this program. >&2
goto error
:chkMHome