Class MuleVersionSelector

java.lang.Object
org.eclipse.aether.util.graph.transformer.ConflictResolver.VersionSelector
org.mule.maven.client.internal.MuleVersionSelector

public class MuleVersionSelector extends org.eclipse.aether.util.graph.transformer.ConflictResolver.VersionSelector
Implementation of ConflictResolver that determines the winner among conflicting using nearest algorithm for none mule-plugin dependencies and Semantic Version for mule-plugin dependencies. It delegates the resolution to a NearestVersionSelector when conflictItems are not mule-plugin. By design it is not supported to declare mule-plugin dependencies with VersionRange, in that case this resolver will throw an IllegalArgumentException.
Since:
1.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    MuleVersionSelector(org.eclipse.aether.util.graph.transformer.NearestVersionSelector nearestVersionSelector)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    selectVersion(org.eclipse.aether.util.graph.transformer.ConflictResolver.ConflictContext context)
     

    Methods inherited from class org.eclipse.aether.util.graph.transformer.ConflictResolver.VersionSelector

    getInstance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MuleVersionSelector

      public MuleVersionSelector(org.eclipse.aether.util.graph.transformer.NearestVersionSelector nearestVersionSelector)
  • Method Details

    • selectVersion

      public void selectVersion(org.eclipse.aether.util.graph.transformer.ConflictResolver.ConflictContext context) throws org.eclipse.aether.RepositoryException
      Specified by:
      selectVersion in class org.eclipse.aether.util.graph.transformer.ConflictResolver.VersionSelector
      Throws:
      org.eclipse.aether.RepositoryException