Basic Maven Commands
maven commands to run program
mvn exec:java -Dexec.mainClass="com.example.Main"
maven commands to run program with args
mvn exec:java -Dexec.mainClass="com.example.Main" -Dexec.args="arg1 arg2"
maven commands to run test
mvn test -Dtest=com.example.MainTest
maven commands to run single test
mvn test -Dtest=com.example.MainTest#testMethod1
Comments