Set maven path window command line

Set maven path window command line

If you are trying to run maven from command line and didn’t set maven through system path or your current window command prompt then you will get below exception:

‘mvn’ is not recognized as an internal or external command,operable program or batch file.
Set maven path window command line

Note: Before set maven path you should download maven from Apache site here

  • Solution: To set maven to your current window command prompt please set path to maven bin directory as below:2015-01-12 11_24_02-C__WINNT_system32_cmd.exe
  • Now if path set up correctly you could check maven version using below command:

2015-01-12 11_25_11-C__WINNT_system32_cmd.exe

  • If you want to set maven path permanently in window system properties please follow this tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *