find maven version

Java
mvn --version
Source

Also in Java: