Class AetherDependencyManagement

java.lang.Object
io.github.ascopes.protobufmavenplugin.dependencies.aether.AetherDependencyManagement

final class AetherDependencyManagement extends Object
Helper that determines the Maven dependency management in a way that Aether can understand, and enables filling in "inferred" information on dependencies from any project dependency management.
Since:
2.13.0
Author:
Ashley Scopes
  • Field Details

    • effectiveDependencyManagement

      private final Map<String, org.eclipse.aether.artifact.Artifact> effectiveDependencyManagement
  • Constructor Details

    • AetherDependencyManagement

      AetherDependencyManagement(org.apache.maven.execution.MavenSession mavenSession, AetherArtifactMapper artifactMapper)
  • Method Details

    • fillManagedAttributes

      org.eclipse.aether.graph.Dependency fillManagedAttributes(org.eclipse.aether.graph.Dependency dependency)
    • deduplicateArtifacts

      public static Collector<org.eclipse.aether.artifact.Artifact, ?, Map<String, org.eclipse.aether.artifact.Artifact>> deduplicateArtifacts()
    • getDependencyManagementKey

      private static String getDependencyManagementKey(org.eclipse.aether.artifact.Artifact artifact)
    • newestArtifact

      private static org.eclipse.aether.artifact.Artifact newestArtifact(org.eclipse.aether.artifact.Artifact a, org.eclipse.aether.artifact.Artifact b)
    • isSpecified

      private static boolean isSpecified(@Nullable String value)
    • parseVersion

      private static org.apache.maven.artifact.versioning.ComparableVersion parseVersion(@Nullable String version)