How do I install maven on ubuntu?

0 votes
How do I install maven on ubuntu?
Feb 19 in Other DevOps Questions by Kiran
79 views

1 answer to this question.

0 votes

Hey @Kiran, Installing Maven on Ubuntu is very simple. You just have to execute one command:

$ sudo apt 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-
  
//...

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

To verify its installation execute the following command:

mvn -version

Apache Maven 3.5.2
Maven home: /usr/share/maven
Java version: 11.0.1, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-11-oracle
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-38-generic", arch: "amd64", family: "unix"
answered Feb 19 by Jobin

Related Questions In Other DevOps Questions

0 votes
1 answer

How do I install Maven on CentOS?

Hey @Nagraj, Follow these steps to install Maven ...READ MORE

answered Feb 19 in Other DevOps Questions by Nishant
123 views
0 votes
1 answer

how do i make apache2 site point outside the folder in ubuntu?

in apche2 configuration file u have to ...READ MORE

answered Jul 6, 2018 in Other DevOps Questions by Kalgi
• 41,760 points
37 views
0 votes
1 answer

How do I share Build Definitions across Projects in Visual Studio Online?

VSTS does not support sharing build definitions ...READ MORE

answered Jul 5, 2018 in Other DevOps Questions by DareDev
• 6,810 points
33 views
0 votes
1 answer

SaltStack: how do I repeat other states with context?

In your case it’ll look something like ...READ MORE

answered Jul 10, 2018 in Other DevOps Questions by Kalgi
• 2,620 points
63 views
0 votes
1 answer

How do I enable Slack for Bluemix DevOps services beta

Here is where you can take help ...READ MORE

answered Jul 11, 2018 in Other DevOps Questions by Atul
• 10,240 points
45 views
0 votes
2 answers
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
181 views
0 votes
1 answer

How do I install Maven on Windows?

Hey @Laksha, to install Apache Maven all ...READ MORE

answered Feb 19 in Other DevOps Questions by Kashish
43 views