How to configure maven in CentOS RHEL system

0 votes

Hi Guys,

I am trying to configure maven in RedHat system. I am not able to configure. Can someone help me how can I configure maven in my system?

Jun 3, 2020 in DevOps & Agile by akhtar
• 38,260 points
3,979 views

1 answer to this question.

0 votes

Hi@akhtar,

You can follow the below given steps to configure maven in your system

  • Download maven software.

https://mirrors.estointernet.in/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz

  • Unpack tar.gz file using the below given command.

$ tar -xzf apache-maven-3.6.3-bin.tar.gz
  • Download java in your system.

  • Finally set maven and java path in .bashrc file.

export JAVA_HOME=/usr/java/jdk1.8.0_221-amd64/
export PATH=/usr/java/jdk1.8.0_221-amd64/bin:$PATH                                                                                                                          export M2_HOME=/maven/
export PATH=/maven/bin:$PATH 
  • Update your .bashrc file using the below command.

$ source .bashrc
answered Jun 3, 2020 by MD
• 95,460 points

Related Questions In DevOps & Agile

0 votes
1 answer

How to simplify or automate task group creation in TFS?

You can easily import or export task ...READ MORE

answered Apr 25, 2018 in DevOps & Agile by ajs3033
• 7,300 points
1,904 views
0 votes
1 answer

How to disable auto-restart task in TeamCity

There is a parameter which can be ...READ MORE

answered Apr 29, 2018 in DevOps & Agile by DareDev
• 6,890 points
1,793 views
+1 vote
3 answers

Kubernetes can't start due to too many open files in system

Seems like a kernel config issue. If ...READ MORE

answered Oct 25, 2018 in DevOps & Agile by Zaid
5,317 views
0 votes
1 answer

How to a run deployed app in Docker for Windows?

To deploy an ASP.NET web application to ...READ MORE

answered Aug 30, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
1,216 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 views
+2 votes
1 answer
0 votes
2 answers

How to configure Maven in Jenkins?

HI... How to configure Maven in Jenkins- I HOPE ...READ MORE

answered Jul 14, 2020 in DevOps & Agile by anonymous

edited Jul 15, 2020 by Sirajul 52,527 views
0 votes
2 answers

How to configure Prometheus server in linux?

Hi there , Setup Prometheus Configuration All the prometheus ...READ MORE

answered Jul 9, 2020 in DevOps & Agile by Suhana
• 340 points
1,185 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP