mirror of https://github.com/apache/maven.git
o just leaving the logic there for the transitive global exclude
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@784300 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3eb4ffb445
commit
7cede8d841
|
@ -31,6 +31,37 @@ public class DefaultProjectDependenciesResolver
|
|||
public Set<Artifact> resolve( MavenProject project, String scope, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories )
|
||||
throws ArtifactResolutionException, ArtifactNotFoundException
|
||||
{
|
||||
/*
|
||||
|
||||
Logic for transitve global exclusions
|
||||
|
||||
List<String> exclusions = new ArrayList<String>();
|
||||
|
||||
for ( Dependency d : project.getDependencies() )
|
||||
{
|
||||
if ( d.getExclusions() != null )
|
||||
{
|
||||
for ( Exclusion e : d.getExclusions() )
|
||||
{
|
||||
exclusions.add( e.getGroupId() + ":" + e.getArtifactId() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ArtifactFilter scopeFilter = new ScopeArtifactFilter( scope );
|
||||
|
||||
ArtifactFilter filter;
|
||||
|
||||
if ( ! exclusions.isEmpty() )
|
||||
{
|
||||
filter = new AndArtifactFilter( Arrays.asList( new ArtifactFilter[]{ new ExcludesArtifactFilter( exclusions ), scopeFilter } ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
filter = scopeFilter;
|
||||
}
|
||||
*/
|
||||
|
||||
ArtifactFilter scopeFilter = new ScopeArtifactFilter( scope );
|
||||
|
||||
ArtifactFilter filter = scopeFilter;
|
||||
|
|
Loading…
Reference in New Issue