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