Class AetherArtifactMapper

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

final class AetherArtifactMapper extends Object
Adapter mapper for conversion between dependency and artifact types in various library formats.
Since:
2.4.4
Author:
Ashley Scopes
  • Field Details

    • DEFAULT_EXTENSION

      private static final String DEFAULT_EXTENSION
      See Also:
    • DEFAULT_SCOPE

      private static final String DEFAULT_SCOPE
      See Also:
    • log

      private static final org.slf4j.Logger log
    • artifactTypeRegistry

      private final org.eclipse.aether.artifact.ArtifactTypeRegistry artifactTypeRegistry
  • Constructor Details

    • AetherArtifactMapper

      AetherArtifactMapper(org.eclipse.aether.artifact.ArtifactTypeRegistry artifactTypeRegistry)
  • Method Details

    • getArtifactTypeRegistry

      org.eclipse.aether.artifact.ArtifactTypeRegistry getArtifactTypeRegistry()
    • mapEclipseArtifactToPath

      Path mapEclipseArtifactToPath(org.eclipse.aether.artifact.Artifact eclipseArtifact)
    • mapPmpArtifactToEclipseArtifact

      org.eclipse.aether.artifact.Artifact mapPmpArtifactToEclipseArtifact(MavenArtifact mavenArtifact)
    • mapPmpArtifactToEclipseDependency

      org.eclipse.aether.graph.Dependency mapPmpArtifactToEclipseDependency(MavenArtifact mavenArtifact, DependencyResolutionDepth defaultDepth)
    • mapMavenArtifactToEclipseArtifact

      org.eclipse.aether.artifact.Artifact mapMavenArtifactToEclipseArtifact(org.apache.maven.artifact.Artifact mavenArtifact)
    • mapMavenDependencyToEclipseArtifact

      org.eclipse.aether.artifact.Artifact mapMavenDependencyToEclipseArtifact(org.apache.maven.model.Dependency mavenDependency)
    • mapPmpExclusionsToEclipseExclusions

      private Set<org.eclipse.aether.graph.Exclusion> mapPmpExclusionsToEclipseExclusions(Collection<? extends MavenExclusion> exclusions)