Skip to content

Commit

Permalink
[MNG-7020] Remove Maven 2 WagonExcluder backward compat code
Browse files Browse the repository at this point in the history
This closes #394
  • Loading branch information
michael-o committed Dec 29, 2020
1 parent c79682b commit bfd2bff
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 265 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import org.eclipse.aether.artifact.DefaultArtifact;
import org.eclipse.aether.collection.CollectRequest;
import org.eclipse.aether.collection.DependencyCollectionException;
import org.eclipse.aether.collection.DependencySelector;
import org.eclipse.aether.graph.DependencyFilter;
import org.eclipse.aether.graph.DependencyNode;
import org.eclipse.aether.graph.DependencyVisitor;
Expand All @@ -59,7 +58,6 @@
import org.eclipse.aether.util.filter.AndDependencyFilter;
import org.eclipse.aether.util.filter.ScopeDependencyFilter;
import org.eclipse.aether.util.graph.manager.DependencyManagerUtils;
import org.eclipse.aether.util.graph.selector.AndDependencySelector;
import org.eclipse.aether.util.repository.SimpleArtifactDescriptorPolicy;

/**
Expand Down Expand Up @@ -173,11 +171,8 @@ private DependencyNode resolveInternal( Plugin plugin, Artifact pluginArtifact,

try
{
DependencySelector selector =
AndDependencySelector.newInstance( session.getDependencySelector(), new WagonExcluder() );

DefaultRepositorySystemSession pluginSession = new DefaultRepositorySystemSession( session );
pluginSession.setDependencySelector( selector );
pluginSession.setDependencySelector( session.getDependencySelector() );
pluginSession.setDependencyGraphTransformer( session.getDependencyGraphTransformer() );

CollectRequest request = new CollectRequest();
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit bfd2bff

Please sign in to comment.