how to run a project from mvn code example
Example 1: execute maven project in cmd
#execute the project
mvn exec:java -Dexec.mainClass=com.mycompany.App
Example 2: maven create project from archetype command line
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false