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
30 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,050 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,500 points
46 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
33 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,560 points
1,521 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
• 35,800 points
35 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,200 points
779 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,200 points
22 views
+13 votes
2 answers
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.