I have started a new maven project and configured exec-maven-plugin to set a default mainClass, and I can execute using
exec-maven-plugin
mainClass
mvn exec:jav