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,280 points
51 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
• 9,870 points

Related Questions In DevOps Tools

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 16, 2018 in DevOps Tools by shubham
• 6,890 points
68 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
60 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,810 points
4,877 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
• 42,410 points
58 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
1,505 views
0 votes
1 answer

How do I find OpsWorks deploy user in a recipe ?

Here is a concept which you can ...READ MORE

answered Jul 25, 2018 in DevOps Tools by Atul
• 10,240 points
33 views
+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
214 views
0 votes
1 answer