Error in Maven build: mvn.bat not recognized

前端 未结 3 912
轮回少年
轮回少年 2021-02-05 11:24

While trying to build a Java project under NetBeans (with an external Maven configured), I got the following error:

\"C:\\Users......\\bin\\mvn.bat\"\" is

3条回答
  •  故里飘歌
    2021-02-05 11:55

    To solve it:

    1. Go to the Maven installation folder
    2. Go to bin
    3. Make sure you can see file extensions
    4. Duplicate mvn.cmd and mvnDebug.cmd and rename those copies to have the extension .bat
    5. Try building the project now

    source

提交回复
热议问题