'Can we skip execution of certain maven plugins via new maven plugin
I have a main-project which has multiple plugins in its pom.xml that perform different tasks like compile , running test , validation .
I want to create a new maven-plugin , which will (based on a condition , if true) skip the execution of rest of the plugins.
In short if that condition is true , I don't want to compile , install dependencies or run tests for my project , I want to directly show build as successful. Is that possible .
I am trying to keep this new plugin execution at the time of Initialize as it needs to be run initially before anything else is executed ->
@Mojo(name = "buildCache",defaultPhase = LifecyclePhase.INITIALIZE)
public class BuildCacheMojo extends AbstractMojo {
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
