} catch (IOException e) {
throw new JbiPluginException("Unable to copy directory "
+ serviceUnitLocation, e);
}
ScopeArtifactFilter filter = new ScopeArtifactFilter(
Artifact.SCOPE_RUNTIME);
JbiResolutionListener listener = resolveProject();
// print(listener.getRootNode(), "");
Set includes = new HashSet();
for (Iterator iter = project.getArtifacts().iterator(); iter.hasNext();) {
Artifact artifact = (Artifact) iter.next();
if (!artifact.isOptional() && filter.include(artifact)) {
MavenProject project = null;
getLog().info("Resolving " + artifact);
try {
project = projectBuilder.buildFromRepository(artifact,
remoteRepos, localRepo);