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
To solve it:
bin
mvn.cmd
and mvnDebug.cmd
and rename those copies to have the extension .bat
source
Maven 3.3+ has no more mvn.bat you should use version 2.5.2+ of the maven-release-plugin : https://issues.apache.org/jira/browse/MRELEASE-902
Install Netbeans 8.1 or later to correct this issue.
As @mkleint noted, this is a problem with Maven 3.3.3+ where maven changed the mvn executable extension.You can download the latest version on the Netbeans website.