This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new 5fa834f [MNG-7010] Omit "NB: JAVA_HOME should point to a JDK not a
JRE"
5fa834f is described below
commit 5fa834f78be178b4f40b5ffda6d3c0dc873b497e
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/assembly/shared/init | 5 ++---
apache-maven/src/assembly/shared/validate.cmd | 5 ++---
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/apache-maven/src/assembly/shared/init
b/apache-maven/src/assembly/shared/init
index 3ccae85..9a4fadb 100755
--- a/apache-maven/src/assembly/shared/init
+++ b/apache-maven/src/assembly/shared/init
@@ -50,9 +50,8 @@ if [ -z "$JAVACMD" ] ; then
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/assembly/shared/validate.cmd
b/apache-maven/src/assembly/shared/validate.cmd
index e2a6e4e..d7e8dfa 100644
--- a/apache-maven/src/assembly/shared/validate.cmd
+++ b/apache-maven/src/assembly/shared/validate.cmd
@@ -55,9 +55,8 @@ set "JAVACMD=%JAVA_HOME%\bin\java.exe"
:checkJCmd
if not exist "%JAVACMD%" (
- 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
)