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,222 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
823 views
0 votes
1 answer

What’s your approach to setting up agent nodes in Jenkins for distributed builds? How do you configure agent nodes for specific environments, such as Linux, Windows, or Docker containers?

In order to prepare the agent nodes for distributed builds in Jenkins, I make sure to look into compatibility, ...READ MORE

answered Nov 25 in DevOps Tools by Gagana
67 views
0 votes
1 answer

In a pipeline that requires dynamic parameters, how do you set this up in Jenkins? Can you provide examples of parameterized builds in a Jenkinsfile?

Dynamically configurable Jenkins can be obtained through Parameterized Builds, which can request inputs such as branches and environment variables before the pipeline is triggered. Here's ...READ MORE

answered Nov 26 in DevOps Tools by Gagana
• 6,530 points
59 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
792 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
869 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,390 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,064 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