in src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java [2048:2071]
private List<String> calculateExcludes() throws IOException {
List<String> excludes;
if (invokerTest != null) {
String[] testRegexes = StringUtils.split(invokerTest, ",");
excludes = Arrays.stream(testRegexes)
.map(String::trim)
.filter(s -> !s.isEmpty())
.filter(s -> s.startsWith("!"))
.map(s -> s.substring(1))
.collect(Collectors.toList());
} else {
excludes = pomExcludes != null ? new ArrayList<>(pomExcludes) : new ArrayList<>();
}
if (this.settingsFile != null) {
String exclude = relativizePath(this.settingsFile, projectsDirectory.getCanonicalPath());
if (exclude != null) {
excludes.add(exclude.replace('\\', '/'));
getLog().debug("Automatically excluded " + exclude + " from project scanning");
}
}
return excludes;
}