We have custom maven plugin which consist of multiple goals like
@Mojo(name = "BUILD", defaultPhase=LifecyclePhase.COMPILE)
@Mojo(name = "BUILDXML", defaultPhase=LifecyclePhase.COMPILE)
now I have created another goal which BUILDVAL below is the code
@Mojo(name = "BUILDVAL)
public class Validation extends AbstractMojo {
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
// From here I need to call BUILD and BUILDXML goals.
System.out.println("Test");
}
}
so from above execute() method i need to call BUILD and BUILDXML goals. I am quite to new Maven plugin development so it might sounds easy.
Thanks in advance.