How to Install and Configure Apache Maven on Ubuntu 18.04

Your video will begin in 10
73 Views
Published
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/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -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-install-and-configure-apache-maven-on-ubuntu-18-04/

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/private-cloud/

Video by: Justin Palmer
Category
Liquid Web
Tags
liquidweb, datacenter, web
Be the first to comment