Maven 2 & 3

mvn.bat returns an incorrect error code