Q: Is it possible to fail a maven build if sources are not up to date? Quite simply I want to be able to run mvn install to compile and test my source code and then run a deploy at some point after running manual tests. What I want to be able to do is fail the deply if the source has been updated, i.e. if the compile artifacts are stale then fail the deploy rather than recompile.
Is this possible?
