I have inherited a codebase :)
Under src/test/java/ there\'s a file that I need to run (I need to run its public static void main(String[] args), not a
public static void main(String[] args)
Include following lines in pom.xml in exec-maven-plugin plugin. test
test
plugin section in POM looks something like this
org.codehaus.mojo exec-maven-plugin my-execution test java com.example.MainClass test
Note : com.example.MainClass is the class containing main method.