In Maven, is there some way to specify that JUnit tests only run when there are some source code changes?
For instance, I see this message
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ my_project --- [INFO] Nothing to compile - all classes are up to date Now -since no code was compiled (since there were no changes from the last compile), I'd prefer that no tests run. Is this possible?