How to Install and Configure Apache Maven on Ubuntu 18.04

Опубликовано: 07 Октябрь 2024
на канале: Liquid Web
716
5

In this video, we describe how to install and configure Apache Maven on Ubuntu 18.04.

Commands used:
apt update -y
apt install maven -y
mvn -v

wget https://downloads.apache.org/maven/ma... -P /tmp
tar xf /tmp/apache-maven-3.6.3-bin.tar.gz -c /opt
ln -s /opt/apache-maven-3.6.3 /opt/maven
vim /etc/profile.d/maven.sh

export JAVA_HOME=/usr/lib/jvm/default-java
export M2_HOME=/opt/maven
export MAVEN_HOME=/opt/maven
export PATH=${M2_HOME}/bin:${PATH}

source /etc/profile.d/maven.sh
mvn -version

The related article for this article can be found here: https://www.liquidweb.com/kb/how-to-i...

For more information about this and other topics, visit us at https://www.liquidweb.com/kb/ or to learn more about our Private Cloud Powered by VMware and NetApp, visit: https://www.liquidweb.com/products/pr...

Video by: Justin Palmer