A script to find java files inside your maven project containing a main function without touching pom.xml
Download and symlink to your path
$ git clone git@github.com:albfan/mvnexec.git
$ cd mvnexec
$ ln -s $PWD/mvnexec ~/bin/
mvnexec honors JDK_HOME, JAVA_HOME system vars and java executable existing in PATH (in that order).
launch it from a maven project
$ cd <maven-project>
$ mvnexec
<Enter>
if none is required or launch with -P
)-B
to avoid compiling again)Try using mvnexec --help
pom.xml
to test classes with main methods