how to check which java version maven is using code example Example: know the version of maven mvn --version