I\'ve tried installing Maven to Windows 7 with poor results. Some basic info:
Maven installation directory: C:\\Program Files\\Apache Software Foundation\\ap
In 3.3.1 *.bat files disappeared and just *.cmd files remained. .CMDs are the same as .BAT and some software expects them. I have renamed .CMDs to .BATs in order make it running under Netbeans. It caused "Maven M2_HOME set to an invalid directory". Copying .BATs to .CMDs (i.e. both were in the folder) solved the problem.