mirror of
https://github.com/badvision/jace.git
synced 2024-11-30 23:49:52 +00:00
Merge pull request #36 from Michaelangel007/master
Fix spelling, and detect if maven isn't installed.
This commit is contained in:
commit
553d439ff8
18
build.sh
18
build.sh
@ -21,7 +21,7 @@
|
|||||||
# 0. Here is some information to clear up the confusion about Java:
|
# 0. Here is some information to clear up the confusion about Java:
|
||||||
#
|
#
|
||||||
# The JRE (runtime) is needed to RUN Java programs.
|
# The JRE (runtime) is needed to RUN Java programs.
|
||||||
# The JDK (compiler) is needed to COMPILTE Java programs.
|
# The JDK (compiler) is needed to COMPILE Java programs.
|
||||||
#
|
#
|
||||||
# Solution:
|
# Solution:
|
||||||
#
|
#
|
||||||
@ -29,6 +29,15 @@
|
|||||||
#
|
#
|
||||||
# mvn -version
|
# mvn -version
|
||||||
#
|
#
|
||||||
|
# NOTE: If this command returns:
|
||||||
|
#
|
||||||
|
# -bash: mvn: command not found
|
||||||
|
#
|
||||||
|
# You either didn't install maven or it isn't in your path
|
||||||
|
# i.e.
|
||||||
|
# which mvn
|
||||||
|
# /usr/local/bin/mvn
|
||||||
|
#
|
||||||
# 2. Check which version of the Java JRE is installed:
|
# 2. Check which version of the Java JRE is installed:
|
||||||
#
|
#
|
||||||
# java -version
|
# java -version
|
||||||
@ -88,6 +97,13 @@
|
|||||||
#
|
#
|
||||||
# As the source code is using Java 1.8 langauge features.
|
# As the source code is using Java 1.8 langauge features.
|
||||||
|
|
||||||
|
if [[ -z "$(which mvn)" ]]; then
|
||||||
|
echo "ERROR: Maven isn't installed"
|
||||||
|
echo "Install via:"
|
||||||
|
echo " brew install maven"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -z "$JAVA_HOME" ]]; then
|
if [[ -z "$JAVA_HOME" ]]; then
|
||||||
echo "WARNING: JAVA_HOME was not set"
|
echo "WARNING: JAVA_HOME was not set"
|
||||||
echo "... Defaulting to Java 1.8..."
|
echo "... Defaulting to Java 1.8..."
|
||||||
|
Loading…
Reference in New Issue
Block a user