added parent search
This commit is contained in:
@@ -46,8 +46,18 @@ public class AmpDependencyFilter implements DependencyFilter {
|
|||||||
String moduleId = artifact.getGroupId() + "." + artifact.getArtifactId();
|
String moduleId = artifact.getGroupId() + "." + artifact.getArtifactId();
|
||||||
if (this.moduleIds.contains(moduleId)) {
|
if (this.moduleIds.contains(moduleId)) {
|
||||||
if (this.log.isDebugEnabled())
|
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;
|
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();
|
File file = artifact.getFile();
|
||||||
|
Reference in New Issue
Block a user