Install latest maven on Ubuntu
Maven Installation
Get the latest maven from https://maven.apache.org/download.cgi
Choose a binary zip or tar archive (see Link header) and download with
Unzip and move to
/usr/local/
add to path and reopen terminal
or
mvn version check
[1] https://maven.apache.org/install.html
[2] https://maven.apache.org/download.cgi
Troubleshooting
1 Command 'unzip' not found
for installing unzip
,
do:
2 The JAVA_HOME environment variable is not defined correctly
3 check for java
Install Java as per the instructions in the next section.
Java Installation
for installing java:
use JDK not JRE. i.e., openjdk-8-jdk-headless instead of openjdk-8-jre-headless otherwise you would come across an error like: Unable to find javadoc command:The javadoc executable '/usr/lib/jvm/java-11-openjdk-amd64/bin/javadoc'
Video
Run through of commands
Last updated