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
  • Loading branch information
michael-o committed Jan 8, 2022
1 parent 4476026 commit d72d54d
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 @@ -42,7 +42,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 @@ -58,7 +57,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;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -177,11 +175,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 d72d54d

Please sign in to comment.