Class AetherDependencyManagement
java.lang.Object
io.github.ascopes.protobufmavenplugin.dependencies.aether.AetherDependencyManagement
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 Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionAetherDependencyManagement
(org.apache.maven.execution.MavenSession mavenSession, AetherArtifactMapper artifactMapper) -
Method Summary
Modifier and TypeMethodDescriptionstatic Collector
<org.eclipse.aether.artifact.Artifact, ?, Map<String, org.eclipse.aether.artifact.Artifact>> (package private) org.eclipse.aether.graph.Dependency
fillManagedAttributes
(org.eclipse.aether.graph.Dependency dependency) private static String
getDependencyManagementKey
(org.eclipse.aether.artifact.Artifact artifact) private static boolean
isSpecified
(@Nullable String value) private static org.eclipse.aether.artifact.Artifact
newestArtifact
(org.eclipse.aether.artifact.Artifact a, org.eclipse.aether.artifact.Artifact b) private static org.apache.maven.artifact.versioning.ComparableVersion
parseVersion
(@Nullable String version)
-
Field Details
-
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
-
getDependencyManagementKey
-
newestArtifact
private static org.eclipse.aether.artifact.Artifact newestArtifact(org.eclipse.aether.artifact.Artifact a, org.eclipse.aether.artifact.Artifact b) -
isSpecified
-
parseVersion
private static org.apache.maven.artifact.versioning.ComparableVersion parseVersion(@Nullable String version)
-