added parent search

This commit is contained in:
2021-06-02 08:30:23 -04:00
parent ceef88aa8d
commit b0baa443ca

View File

@@ -46,8 +46,18 @@ public class AmpDependencyFilter implements DependencyFilter {
String moduleId = artifact.getGroupId() + "." + artifact.getArtifactId();
if (this.moduleIds.contains(moduleId)) {
if (this.log.isDebugEnabled())
this.log.debug("Not packaging library; detected as dependency to other Alfresco Module: " + node.getArtifact().getArtifactId());
this.log.debug("Not packaging library; detected as Alfresco Module: " + node.getArtifact().getArtifactId());
return false;
} else if (parents != null) {
for (DependencyNode parent : parents) {
String parentModuleId = parent.getArtifact().getGroupId() + "." + parent.getArtifact().getArtifactId();
if (this.moduleIds.contains(parentModuleId)) {
this.moduleIds.add(moduleId);
if (this.log.isDebugEnabled())
this.log.debug("Not packaging library; detected as dependency to other Alfresco Module: " + node.getArtifact().getArtifactId());
return false;
}
}
}
File file = artifact.getFile();