I reckon that's because mvn wants a single "-" for it's options. Try typing

mvn -version or mvn -v instead.

The error says "Unrecognised option: -", which I think indicates that it read the...