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,180 points
494 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,140 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,280 points
644 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
336 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
1,786 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 29, 2018 in DevOps & Agile by Tyrion anex
• 8,660 points
271 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,044 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 4,664 views
0 votes
2 answers

How to configure Prometheus server in linux?

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

answered Jul 8, 2020 in DevOps & Agile by Suhana
• 320 points
205 views