Package io.micronaut.maven.services
Class DependencyResolutionService
java.lang.Object
io.micronaut.maven.services.DependencyResolutionService
Utility methods for performing dependency resolution.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDependencyResolutionService(org.apache.maven.execution.MavenSession mavenSession, org.apache.maven.project.MavenProject mavenProject, org.eclipse.aether.RepositorySystem repositorySystem) 
- 
Method SummaryModifier and TypeMethodDescriptionList<org.eclipse.aether.resolution.ArtifactResult>artifactResultsFor(Stream<org.eclipse.aether.artifact.Artifact> artifacts, boolean applyManagedDependencies) Performs a dependency request to compute the transitive dependencies of the given artifacts.static org.eclipse.aether.artifact.ArtifactmavenDependencyToAetherArtifact(org.apache.maven.model.Dependency d) static org.eclipse.aether.graph.DependencymavenDependencyToAetherDependency(org.apache.maven.model.Dependency d) static io.micronaut.testresources.buildtools.MavenDependencymavenDependencyToTestResourcesDependency(org.apache.maven.model.Dependency d) static org.eclipse.aether.artifact.ArtifacttestResourcesDependencyToAetherArtifact(io.micronaut.testresources.buildtools.MavenDependency d) toClasspath(List<org.eclipse.aether.resolution.ArtifactResult> resolutionResult) toClasspathFiles(List<org.eclipse.aether.resolution.ArtifactResult> resolutionResult) 
- 
Field Details- 
TEST_RESOURCES_GROUP- See Also:
 
- 
TEST_RESOURCES_ARTIFACT_ID_PREFIX- See Also:
 
 
- 
- 
Constructor Details- 
DependencyResolutionService@Inject public DependencyResolutionService(org.apache.maven.execution.MavenSession mavenSession, org.apache.maven.project.MavenProject mavenProject, org.eclipse.aether.RepositorySystem repositorySystem) 
 
- 
- 
Method Details- 
toClasspathpublic static List<String> toClasspath(List<org.eclipse.aether.resolution.ArtifactResult> resolutionResult) 
- 
toClasspathFilespublic static List<File> toClasspathFiles(List<org.eclipse.aether.resolution.ArtifactResult> resolutionResult) 
- 
mavenDependencyToAetherDependencypublic static org.eclipse.aether.graph.Dependency mavenDependencyToAetherDependency(org.apache.maven.model.Dependency d) 
- 
mavenDependencyToAetherArtifactpublic static org.eclipse.aether.artifact.Artifact mavenDependencyToAetherArtifact(org.apache.maven.model.Dependency d) 
- 
mavenDependencyToTestResourcesDependencypublic static io.micronaut.testresources.buildtools.MavenDependency mavenDependencyToTestResourcesDependency(org.apache.maven.model.Dependency d) 
- 
testResourcesDependencyToAetherArtifactpublic static org.eclipse.aether.artifact.Artifact testResourcesDependencyToAetherArtifact(io.micronaut.testresources.buildtools.MavenDependency d) 
- 
artifactResultsForpublic List<org.eclipse.aether.resolution.ArtifactResult> artifactResultsFor(Stream<org.eclipse.aether.artifact.Artifact> artifacts, boolean applyManagedDependencies) throws org.eclipse.aether.resolution.DependencyResolutionException Performs a dependency request to compute the transitive dependencies of the given artifacts.- Parameters:
- artifacts- The artifacts to resolve
- applyManagedDependencies- Whether to apply the managed dependencies of the project
- Returns:
- The resolution result
- Throws:
- org.eclipse.aether.resolution.DependencyResolutionException
 
 
-