Class DependencyConverter

java.lang.Object
org.jdrupes.builder.mvnrepo.DependencyConverter

public final class DependencyConverter extends Object
Converts between maven models and aether dependencies.
  • Method Details

    • convert

      public static Dependency convert(org.eclipse.aether.graph.Dependency aetherDep)
      Convert an aether dependency to a maven model dependency.
      Parameters:
      aetherDep - the aether dependency
      Returns:
      the maven model dependency
    • convert

      public static org.eclipse.aether.graph.Dependency convert(Dependency modelDep)
      Convert a maven model dependency to an aether dependency.
      Parameters:
      modelDep - the maven model dependency
      Returns:
      the aether dependency
    • convert

      public static Dependency convert(MvnRepoDependency mvnResource, String scope)
      Convert a maven model dependency to an aether dependency.
      Parameters:
      mvnResource - the maven resource
      scope - the scope of aether dependency
      Returns:
      the aether dependency