Published on June 20, 2018 by ProgrammingKnowledge

In this video I am going to show How to install Maven on Windows.
Maven is build tool primary for Java projects.

All commands are listed in this post – www.codebind.com/linux-tutorials/install-latest-nodejs-npm-ubuntu-18-04-linux/

Install Java Commands
——————
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt install oracle-java8-installer
sudo apt install oracle-java8-set-default

Install Maven Commands
——————
cd /opt/
sudo wget www-eu.apache.org/dist/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz

sudo tar -xf apache-maven-3.5.3-bin.tar.gz
sudo mv apache-maven-3.5.3/ apache-maven/

sudo update-alternatives –install /usr/bin/mvn maven /opt/apache-maven/bin/mvn 1001

Configuring Apache Maven Environment
——————

$ cd /etc/profile.d/
$ sudo gedit maven.sh
###################################################
# Apache Maven Environment Variables
# MAVEN_HOME for Maven 1 – M2_HOME for Maven 2
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export M2_HOME=/opt/apache-maven
export MAVEN_HOME=/opt/apache-maven
export PATH=${M2_HOME}/bin:${PATH}

sudo chmod +x maven.sh
sudo source maven.sh

In this video series we will learn Maven tutorial for beginners – Learn Apache Maven in simple and easy steps starting from Environment Setup, Build Life Cycle, Build profiles, Repositories, POM, Plug-ins, Eclispe IDE, Creating Project, Build & Test Project, External Dependencies, Project Documents, Project Templates, Build Automation, Dependency Management, Deployment Automation, Web Application NetBeans, IntelliJ IDEA, Maven.

———————-Follow———————————————
My Website – www.codebind.com
My Blog – goo.gl/Nd2pFn
My Facebook Page – goo.gl/eLp2cQ
Google+ – goo.gl/lvC5FX
Twitter – twitter.com/ProgrammingKnow
Pinterest – goo.gl/kCInUp
Text Case Converter – goo.gl/pVpcwL
————————-Stuff I use to make videos ——————-
Stuff I use to make videos
Windows notebook – amzn.to/2zcXPyF
Apple MacBook Pro – amzn.to/2BTJBZ7
Ubuntu notebook – amzn.to/2GE4giY
Desktop – amzn.to/2zct252
Microphone – amzn.to/2zcYbW1
notebook mouse – amzn.to/2BVs4Q3
——————Facebook Links —————————————-
fb.me/ProgrammingKnowledgeLearning/
fb.me/AndroidTutorialsForBeginners
fb.me/Programmingknowledge
fb.me/CppProgrammingLanguage
fb.me/JavaTutorialsAndCode
fb.me/SQLiteTutorial
fb.me/UbuntuLinuxTutorials
fb.me/EasyOnlineConverter
——————-Online Courses to learn—————————-
Java – bit.ly/2H6wqXk
C++ – bit.ly/2q8VWl1
AngularJS – bit.ly/2qebsLu
Python – bit.ly/2Eq0VSt
C- bit.ly/2HfZ6L8
Android – bit.ly/2qaRSAS
Linux – bit.ly/2IwOuqz
AWS Certified Solutions Architect – bit.ly/2JrGoAF
Modern React with Redux – bit.ly/2H6wDtA
MySQL – bit.ly/2qcF63Z

Leave a Reply

1 Comment on "How to install Maven on Ubuntu 18.04 LTS (Linux)"

Notify of
avatar

neeladri shekhar mondal
Guest
neeladri shekhar mondal
2 months 10 hours ago

Kindly make video how to install DSpace on Ubuntu Desktop.I will be greatful.

wpDiscuz