how to run maven java project from command line code example
Example: execute maven project in cmd
#execute the project
mvn exec:java -Dexec.mainClass=com.mycompany.App
#execute the project
mvn exec:java -Dexec.mainClass=com.mycompany.App