Skip to content

Commit

Permalink
Merge branch '3.0.x' into 3.1.x
Browse files Browse the repository at this point in the history
Closes gh-36494
  • Loading branch information
wilkinsona committed Jul 21, 2023
2 parents c38bca0 + 7ac89a1 commit 519966e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ public class ProcessAotMojo extends AbstractAotMojo {

@Override
protected void executeAot() throws Exception {
if (this.project.getPackaging().equals("pom")) {
getLog().debug("process-aot goal could not be applied to pom project.");
return;
}
String applicationClass = (this.mainClass != null) ? this.mainClass
: SpringBootApplicationClassFinder.findSingleClass(this.classesDirectory);
URL[] classPath = getClassPath();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ public class ProcessTestAotMojo extends AbstractAotMojo {

@Override
protected void executeAot() throws Exception {
if (this.project.getPackaging().equals("pom")) {
getLog().debug("process-test-aot goal could not be applied to pom project.");
return;
}
if (Boolean.getBoolean("skipTests") || Boolean.getBoolean("maven.test.skip")) {
getLog().info("Skipping AOT test processing since tests are skipped");
return;
Expand Down

0 comments on commit 519966e

Please sign in to comment.