Maven 2 & 3

mvn.bat in maven 2.0.7 does not return the correct error code.