how to run maven from command line code example
Example 1: run java program maven
mvn exec:java -Dexec.mainClass="com.vineetmanohar.module.Main" -Dexec.args="arg0 arg1 arg2"
Example 2: execute maven project in cmd
#execute the project
mvn exec:java -Dexec.mainClass=com.mycompany.App