try {
// collect all the dependency graph for the module, and print it until we reach a dependency to a local module
DependencyNode rootNode = repoSystem.collectDependencies( session, collectRequest ).getRoot();
DependencyRequest request = new DependencyRequest(rootNode,null);
DependencyResult result = repoSystem.resolveDependencies(session,request);
// add entry to module dependencies
moduleLibraries.put(moduleNode.getDependency().getArtifact(), new HashSet<Artifact>());
moduleDependencies.put(moduleNode.getDependency().getArtifact(), new HashSet<Artifact>());
getLog().info("processing module "+moduleNode.getDependency().getArtifact().getArtifactId()+":");
for(DependencyNode child : result.getRoot().getChildren()) {
collectModuleDependencies(child,moduleNode.getDependency().getArtifact());
}
for(DependencyNode child : result.getRoot().getChildren()) {
collectLibraryDependencies(child, moduleNode.getDependency().getArtifact());
}
// information output
/*