@@ -160,8 +160,12 @@ public void execute() throws MojoExecutionException {
160
160
161
161
if (!mono ) {
162
162
// if module skips install and/or deploy
163
- if (isSkip (project )) {
164
- getLog ().info ("Skipping goal because module skips install and/or deploy" );
163
+ if (detectSkip && PluginUtil .isSkip (project )) {
164
+ getLog ().info ("Auto-skipping goal because module skips install and/or deploy" );
165
+ return ;
166
+ }
167
+ if (isSkipModule (project )) {
168
+ getLog ().info ("Skipping goal for module" );
165
169
return ;
166
170
}
167
171
// if multi-module build, generate (aggregate) buildinfo only in last module
@@ -384,20 +388,21 @@ private MavenProject getLastProject() {
384
388
}
385
389
386
390
protected boolean isSkip (MavenProject project ) {
387
- // manual/configured module skip
388
- boolean skipModule = false ;
389
- if (skipModules != null && !skipModules .isEmpty ()) {
390
- if (skipModulesMatcher == null ) {
391
- FileSystem fs = FileSystems .getDefault ();
392
- skipModulesMatcher = skipModules .stream ()
393
- .map (i -> fs .getPathMatcher ("glob:" + i ))
394
- .collect (Collectors .toList ());
395
- }
396
- Path path = Paths .get (project .getGroupId () + '/' + project .getArtifactId ());
397
- skipModule = skipModulesMatcher .stream ().anyMatch (m -> m .matches (path ));
391
+ return isSkipModule (project ) || (detectSkip && PluginUtil .isSkip (project ));
392
+ }
393
+
394
+ protected boolean isSkipModule (MavenProject project ) {
395
+ if (skipModules == null || skipModules .isEmpty ()) {
396
+ return false ;
397
+ }
398
+ if (skipModulesMatcher == null ) {
399
+ FileSystem fs = FileSystems .getDefault ();
400
+ skipModulesMatcher = skipModules .stream ()
401
+ .map (i -> fs .getPathMatcher ("glob:" + i ))
402
+ .collect (Collectors .toList ());
398
403
}
399
- // detected skip
400
- return skipModule || ( detectSkip && PluginUtil . isSkip ( project ));
404
+ Path path = Paths . get ( project . getGroupId () + '/' + project . getArtifactId ());
405
+ return skipModulesMatcher . stream (). anyMatch ( m -> m . matches ( path ));
401
406
}
402
407
403
408
private Toolchain getToolchain () {
0 commit comments