• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Install Apache Maven on Ubuntu 18.04

{{postValue.id}}

To Install Apache Maven on Ubuntu 18.04

Apache Maven is a free and open source Project Management tool which can be used for Java projects. It provides a framework to automate the project’s build infrastructure. This tutorial explains the installation of Apache Maven on Linux mint-18.03.

Prerequisites

Install Java.

Java installation with required following modules
add-apt-repository ppa:webupd8team/java
apt update
apt install oracle-java8-installer
Installation

Apache JMeter requires java to be pre-installed on the machine so, before you install apache jmeter make sure you have java installed on your machine and you can verify that by using the following command.

root@linuxhelp1:~# java -version
java version "1.8.0\_181"
Java(TM) SE Runtime Environment (build 1.8.0\_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

Let's first start with updating the system repositories

root@linuxhelp1:~# apt-get update 
Hit:1 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
Hit:2 http://archive.canonical.com/ubuntu bionic InRelease                                     
Hit:3 http://in.archive.ubuntu.com/ubuntu bionic InRelease                                     
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease        
Hit:5 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease       
Hit:6 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done

Install the apache maven application run the following command.

root@linuxhelp1:~# apt-get install maven
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libaopalliance-java libapache-pom-java libatinject-jsr330-api-java libcdi-api-java
  libcommons-cli-java libcommons-io-java libcommons-lang3-java libcommons-parent-java
  libgeronimo-annotation-1.3-spec-java libgeronimo-interceptor-3.0-spec-java libguava-java
.
.
.
Setting up libsisu-inject-java (0.3.2-2) ...
Setting up libsisu-plexus-java (0.3.3-3) ...
Setting up libmaven3-core-java (3.5.2-2) ...
Setting up maven (3.5.2-2) ...
update-alternatives: using /usr/share/maven/bin/mvn to provide /usr/bin/mvn (mvn) in auto mode

verify the apache maven version.

root@linuxhelp1:~# mvn -V Apache Maven 3.5.2
Maven home: /usr/share/maven
Java version: 1.8.0\_181, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en\_IN, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-23-generic", arch: "amd64", family: "unix"

With this, the method to install Apache Maven on Ubuntu-18.04 comes to an end.

Tags:
benjamin
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is the essential purpose of using this Apache maven?

A

Maven is a build automation tool used primarily for Java projects

Q

What is Apache Maven?

A

Apache Maven is free and open source Project Management tool which can be used for Java projects.

Q

What for you have created /etc/profile.d/mavenenv.sh?

A

To setup Environment Variables for Apache Maven.

Q

Which language is used to build apache maven?

A

The JAVA language has been used to build the Apache Maven.

Q

What are the alternative tools available for the Apache Maven?

A

The following alternative tools are available for the Apache Maven as given below,

" Cmake, Gradle, Ant, Scons, GNU Make, Rake"

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luk Van De Looverbosch ?
How to create a root ?

Hello,
How to create root@linuxhelp in Linux Mint 20.1 64-bit ?
Thanks in advance for your reply.
Best regards.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.