$ unzip apache-maven-3.8.1-bin.zip
Command 'unzip' not found, but can be installed with:
sudo apt install unzip
for installing unzip,
do:
sudo apt update
sudo apt install unzip
2 The JAVA_HOME environment variable is not defined correctly
$ mvn -version
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
3 check for java
Install Java as per the instructions in the next section.
Java Installation
$ java -version
Command 'java' not found, but can be installed with:
sudo apt install openjdk-11-jre-headless # version 11.0.11+9-0ubuntu2~20.04, or
sudo apt install default-jre # version 2:1.11-72
sudo apt install openjdk-8-jre-headless # version 8u292-b10-0ubuntu1~20.04
sudo apt install openjdk-13-jre-headless # version 13.0.4+8-1~20.04
sudo apt install openjdk-14-jre-headless # version 14.0.2+12-1~20.04