I'm writing a plugin for Maven. However, it only makes sense to run my plugin after running mvn compile
and mvn test-compile
. How can I ensure that these goals are run before my plugin's goals?
Below are the current annotation parameters I'm using, but they don't seem to have the intended effect.
@Mojo(name = "testplugin",
defaultPhase = LifecyclePhase.TEST,
requiresDependencyResolution = ResolutionScope.TEST)