--Environment - CentOS Linux release 7.6.1810 (Core) - Apache Maven 3.2.5
You can check the version of Maven, but you can also check the version of Java used by Maven. When developing, I'm using different versions of Java, and I want to check which Java Maven is using.
# 「mvn --version "is OK $ mvn -v ...abridgement... Java version: 1.6.0_41, vendor: Sun Microsystems Inc. ...abridgement...
Reference: Set Java version with Maven