So I have a group of modules that are loosely coupled together in various ways to generate a plugin-architecture which changes from one pom to another in order to generate different artifacts.
Some artifacts will share the same dependencies though, so really I only want to run mvn install, and only if the project is out of date then it will rebuild. I'd like the same to be true for tests too. In other words, if the project is not out of date, then there is no reason to run tests because nothing was built. By virtue of it being in the remote repository (or locally in my .m2 because another project caused it to be built), then it would have already been built and had JUnit tests run so there is no reason to run them again.
Is there a way to make JUnits not run when a compilation does not occur?