how to check what version of maven you have code example Example: know the version of maven mvn --version