in nbm-maven-plugin/src/main/java/org/apache/netbeans/nbm/AbstractNbmMojo.java [142:160]
static List<Artifact> getLibraryArtifacts(DependencyNode treeRoot, NetBeansModule module,
List<Artifact> runtimeArtifacts,
Map<Artifact, ExamineManifest> examinerCache, Log log,
boolean useOsgiDependencies)
throws MojoExecutionException {
List<Artifact> include = new ArrayList<>();
if (module != null) {
List<String> librList = new ArrayList<>();
if (module.getLibraries() != null) {
librList.addAll(module.getLibraries());
}
CollectLibrariesNodeVisitor visitor = new CollectLibrariesNodeVisitor(librList,
runtimeArtifacts, examinerCache, log,
treeRoot, useOsgiDependencies);
treeRoot.accept(visitor);
include.addAll(visitor.getArtifacts());
}
return include;
}