Check out example codes for "know the version of maven". It will help you in understanding the concepts better.

Code Example 1

mvn --version

Learn ReactJs, React Native from akashmittal.com