in src/main/java/org/apache/maven/plugins/dependency/PurgeLocalRepositoryMojo.java [294:317]
public void execute() throws MojoExecutionException, MojoFailureException {
if (isSkip()) {
getLog().info("Skipping plugin execution");
return;
}
if (!(manualInclude == null || manualInclude.isEmpty())) {
manualIncludes = this.parseIncludes(manualInclude);
}
// If it's a manual purge, the only step is to delete from the local repo
if (manualIncludes != null && manualIncludes.size() > 0) {
manualPurge(manualIncludes);
return;
}
Set<Artifact> purgedArtifacts = new HashSet<>();
if (shouldPurgeAllProjectsInReactor()) {
for (MavenProject reactorProject : reactorProjects) {
purgeLocalRepository(reactorProject, purgedArtifacts);
}
} else {
purgeLocalRepository(project, purgedArtifacts);
}
}