use of org.apache.maven.plugins.assembly.model.Repository in project maven-plugins by apache.
the class DefaultDependencyResolver method updateRepositoryResolutionRequirements.
void updateRepositoryResolutionRequirements(final Assembly assembly, final ResolutionManagementInfo requirements) {
final List<Repository> repositories = assembly.getRepositories();
Set<String> rootScopes = new HashSet<String>();
if (repositories != null && !repositories.isEmpty()) {
requirements.setResolutionRequired(true);
for (final Repository repo : repositories) {
rootScopes.add(repo.getScope());
}
}
requirements.setScopeFilter(FilterUtils.newScopeFilter(rootScopes));
}
Aggregations