Check out example codes for "execute maven project in cmd". It will help you in understanding the concepts better.

Code Example 1

#execute the project
mvn exec:java -Dexec.mainClass=com.mycompany.App

Learn ReactJs, React Native from akashmittal.com