Don't run process-aot or process-test-aot on reactor projects

See gh-35377
This commit is contained in:
Urs Keller 2023-05-10 10:21:24 +02:00 committed by Andy Wilkinson
parent 6a2a3e2b26
commit 0308de1672
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,10 @@ public abstract class AbstractAotMojo extends AbstractDependencyFilterMojo {
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
if (this.project.getPackaging().equals("pom")) {
getLog().debug("process-*aot goals could not be applied to pom project.");
return;
}
if (this.skip) {
getLog().debug("Skipping AOT execution as per configuration");
return;