I m facing problems while setting up Maven How do I solve this

+1 vote

I’m installing Maven 3 on Windows 7 and when I execute the command mvn –version. I get the following error:

mvn is not recognized as an internal or external command 

I have installed all the environments and followed all the instructions as per the official Maven website.

Is there a way to solve this?

Jul 25, 2018 in DevOps Tools by Tyrion anex
• 8,700 points
1,137 views

1 answer to this question.

0 votes

First of all check if you don't have an M2_HOME environment variable and then just follow the steps:

1) Start by downloading maven 3. Install it in a known directory like c:\tools

2) Next, set your PATH to point to the bin directory. If Maven is in c:\tools\maven-3.0.3 then add c:\tools\maven-3.0.3\bin to PATH:

set PATH=%PATH%;c:\tools\maven-3.0.3

set MVN_HOME=c:\tools\maven-3.0.3

3) Maven should work now; if not, then you've skipped something or it’s a problem with your configuration.

answered Jul 25, 2018 by Sophie may
• 10,620 points

Related Questions In DevOps Tools

+2 votes
0 answers

How do I install Maven on CentOS?

I went through below menetioned tutorial https://www.edureka.co/community/38761/how-do-i-install-maven-on-centos but somehow ...READ MORE

Dec 27, 2019 in DevOps Tools by Manoj
• 140 points
686 views
0 votes
1 answer

For Gradle & Spring Boot, how do I choose dependency with implementation?

Below is the answer to your question: Both ...READ MORE

answered Jun 17, 2018 in DevOps Tools by shubham
• 7,340 points
741 views
0 votes
1 answer

How do I kill Wagtail server?

Here is the explanation regarding the above ...READ MORE

answered Jun 25, 2018 in DevOps Tools by anonymous
817 views
+1 vote
3 answers

How do I check and export sonarqube analysis reports in embedded db?

Browse to sonarqube web instance to access ...READ MORE

answered Jul 2, 2018 in DevOps Tools by DareDev
• 6,890 points
28,174 views
0 votes
1 answer

How do I deploy to multiple servers using the same context root?

  If you're deploying to multiple servers ...READ MORE

answered Jul 2, 2018 in DevOps Tools by Kalgi
• 52,360 points
756 views
0 votes
1 answer

How do I run “ant update” in Hybris with only “Update Running System”?

Here is what you can try. You can ...READ MORE

answered Jul 10, 2018 in DevOps Tools by Atul
• 10,240 points
7,109 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
3,954 views
+2 votes
1 answer
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