This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Commit c07a40d 1 parent 76154d6 commit c07a40d Copy full SHA for c07a40d
File tree 2 files changed +8
-1
lines changed
spring-aot-maven-plugin/src/main/java/org/springframework/aot/maven
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ public class GenerateMojo extends AbstractBootstrapMojo {
75
75
76
76
@ Override
77
77
public void execute () throws MojoExecutionException , MojoFailureException {
78
+ if (this .project .getPackaging ().equals ("pom" )) {
79
+ getLog ().debug ("generate goal could not be applied to pom project." );
80
+ return ;
81
+ }
78
82
Set <Path > resourceFolders = new HashSet <>();
79
83
for (Resource r : project .getResources ()) {
80
84
// TODO respect includes/excludes
Original file line number Diff line number Diff line change @@ -69,7 +69,10 @@ public class TestGenerateMojo extends AbstractBootstrapMojo {
69
69
70
70
@ Override
71
71
public void execute () throws MojoExecutionException , MojoFailureException {
72
-
72
+ if (this .project .getPackaging ().equals ("pom" )) {
73
+ getLog ().debug ("test-generate goal could not be applied to pom project." );
74
+ return ;
75
+ }
73
76
Path testOutputDirectory = Paths .get (project .getBuild ().getTestOutputDirectory ());
74
77
if (Files .notExists (testOutputDirectory )) {
75
78
getLog ().info ("Skip Spring AOT test generation since no test have been detected" );
You can’t perform that action at this time.
0 commit comments