use of org.apache.maven.shared.artifact.filter.resolve.transform.ArtifactIncludeFilterTransformer in project maven-plugins by apache.
the class DefaultDependencyResolver method resolve.
private void resolve(Assembly assembly, AssemblerConfigurationSource configSource, Map<DependencySet, Set<Artifact>> result, DependencySet dependencySet, ResolutionManagementInfo info) throws DependencyResolutionException {
Set<Artifact> artifacts;
if (info.isResolutionRequired()) {
final List<ArtifactRepository> repos = aggregateRemoteArtifactRepositories(configSource.getRemoteRepositories(), info.getEnabledProjects());
artifacts = info.getArtifacts();
if (info.isResolvedTransitively()) {
getLogger().debug("Resolving project dependencies transitively.");
ArtifactFilter filter = new ArtifactIncludeFilterTransformer().transform(info.getScopeFilter());
artifacts = resolveTransitively(artifacts, repos, filter, configSource);
} else {
getLogger().debug("Resolving project dependencies ONLY. " + "Transitive dependencies WILL NOT be included in the results.");
artifacts = resolveNonTransitively(assembly, artifacts, configSource, repos);
}
} else {
artifacts = new HashSet<Artifact>();
}
result.put(dependencySet, artifacts);
}
Aggregations