Maven M2_HOME set to an invalid directory (Windows 7)

后端 未结 16 2351
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-06 00:59

I\'ve tried installing Maven to Windows 7 with poor results. Some basic info:

Maven installation directory: C:\\Program Files\\Apache Software Foundation\\ap

16条回答
  •  孤城傲影
    2020-12-06 01:21

    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.

提交回复
热议问题