Class DefaultGraphConflictResolver
java.lang.Object
org.apache.maven.repository.metadata.DefaultGraphConflictResolver
- All Implemented Interfaces:
GraphConflictResolver
@Named
@Singleton
@Deprecated
public class DefaultGraphConflictResolver
extends Object
implements GraphConflictResolver
Deprecated.
Default conflict resolver.Implements closer newer first policy by default, but could be configured via plexus
-
Field Summary
Modifier and TypeFieldDescriptionprotected GraphConflictResolutionPolicy
Deprecated.artifact, closer to the entry point, is selectedFields inherited from interface org.apache.maven.repository.metadata.GraphConflictResolver
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolveConflicts
(MetadataGraph graph, ArtifactScopeEnum scope) Deprecated.Cleanses the supplied graph by leaving only one directed versioned edge\ between any two nodes, if multiple exists.
-
Field Details
-
policy
Deprecated.artifact, closer to the entry point, is selected
-
-
Constructor Details
-
DefaultGraphConflictResolver
public DefaultGraphConflictResolver()Deprecated.
-
-
Method Details
-
resolveConflicts
public MetadataGraph resolveConflicts(MetadataGraph graph, ArtifactScopeEnum scope) throws GraphConflictResolutionException Deprecated.Description copied from interface:GraphConflictResolver
Cleanses the supplied graph by leaving only one directed versioned edge\ between any two nodes, if multiple exists. Uses scope relationships, defined inArtifactScopeEnum
- Specified by:
resolveConflicts
in interfaceGraphConflictResolver
- Parameters:
graph
- the "dirty" graph to be simplified via conflict resolutionscope
- scope for which the graph should be resolved- Returns:
- resulting "clean" graph for the specified scope
- Throws:
GraphConflictResolutionException
-