Class LifecycleDependencyResolver
java.lang.Object
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver
Resolves dependencies for the artifacts in context of the lifecycle build
NOTE: This class is not part of any public api and can be changed or deleted without prior notice.- Since:
- 3.0
-
Constructor Summary
ConstructorDescriptionLifecycleDependencyResolver
(ProjectDependenciesResolver dependenciesResolver, ProjectArtifactFactory artifactFactory, EventSpyDispatcher eventSpyDispatcher, ProjectArtifactsCache projectArtifactsCache, MessageBuilderFactory messageBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetProjectDependencyResolutionResult
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, boolean aggregating, Set<Artifact> projectArtifacts) static List
<MavenProject> getProjects
(MavenProject project, MavenSession session, boolean aggregator) resolveProjectArtifacts
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, boolean aggregating, Set<Artifact> projectArtifacts) void
resolveProjectDependencies
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, boolean aggregating, Set<Artifact> projectArtifacts)
-
Constructor Details
-
LifecycleDependencyResolver
@Inject public LifecycleDependencyResolver(ProjectDependenciesResolver dependenciesResolver, ProjectArtifactFactory artifactFactory, EventSpyDispatcher eventSpyDispatcher, ProjectArtifactsCache projectArtifactsCache, MessageBuilderFactory messageBuilderFactory)
-
-
Method Details
-
getProjects
public static List<MavenProject> getProjects(MavenProject project, MavenSession session, boolean aggregator) -
resolveProjectDependencies
public void resolveProjectDependencies(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, boolean aggregating, Set<Artifact> projectArtifacts) throws LifecycleExecutionException - Throws:
LifecycleExecutionException
-
getProjectDependencyResolutionResult
public DependencyResolutionResult getProjectDependencyResolutionResult(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, boolean aggregating, Set<Artifact> projectArtifacts) throws LifecycleExecutionException - Throws:
LifecycleExecutionException
-
resolveProjectArtifacts
public Set<Artifact> resolveProjectArtifacts(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, boolean aggregating, Set<Artifact> projectArtifacts) throws LifecycleExecutionException - Throws:
LifecycleExecutionException
-