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 SummaryFieldsModifier and TypeFieldDescriptionprotected GraphConflictResolutionPolicyDeprecated.artifact, closer to the entry point, is selectedFields inherited from interface org.apache.maven.repository.metadata.GraphConflictResolverROLE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
policyDeprecated.artifact, closer to the entry point, is selected
 
- 
- 
Constructor Details- 
DefaultGraphConflictResolverpublic DefaultGraphConflictResolver()Deprecated.
 
- 
- 
Method Details- 
resolveConflictspublic MetadataGraph resolveConflicts(MetadataGraph graph, ArtifactScopeEnum scope) throws GraphConflictResolutionException Deprecated.Description copied from interface:GraphConflictResolverCleanses the supplied graph by leaving only one directed versioned edge\ between any two nodes, if multiple exists. Uses scope relationships, defined inArtifactScopeEnum- Specified by:
- resolveConflictsin interface- GraphConflictResolver
- Parameters:
- graph- the "dirty" graph to be simplified via conflict resolution
- scope- scope for which the graph should be resolved
- Returns:
- resulting "clean" graph for the specified scope
- Throws:
- GraphConflictResolutionException
 
 
-