Package org.apache.maven
Class DefaultProjectDependenciesResolver
java.lang.Object
org.apache.maven.DefaultProjectDependenciesResolver
- All Implemented Interfaces:
ProjectDependenciesResolver
@Deprecated
@Component(role=ProjectDependenciesResolver.class)
public class DefaultProjectDependenciesResolver
extends Object
implements ProjectDependenciesResolver
Deprecated.
As of 3.2.2, and there is no direct replacement. This is an internal class which was not marked as such,
but should have been.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate RepositorySystem
Deprecated.private ResolutionErrorHandler
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIgnorableArtifacts
(Iterable<Artifact> artifactIterable) Deprecated.getIgnorableArtifacts
(Collection<? extends MavenProject> projects) Deprecated.resolve
(Collection<? extends MavenProject> projects, Collection<String> scopesToResolve, MavenSession session) Deprecated.Resolves the transitive dependencies of the specified projects.resolve
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session) Deprecated.Resolves the transitive dependencies of the specified project.resolve
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, Set<Artifact> ignoreableArtifacts) Deprecated.Resolves the transitive dependencies of the specified project.resolve
(MavenProject project, Collection<String> scopesToResolve, MavenSession session) Deprecated.Resolves the transitive dependencies of the specified project.resolveImpl
(Collection<? extends MavenProject> projects, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, Set<String> projectIds) Deprecated.
-
Field Details
-
repositorySystem
Deprecated. -
resolutionErrorHandler
Deprecated.
-
-
Constructor Details
-
DefaultProjectDependenciesResolver
public DefaultProjectDependenciesResolver()Deprecated.
-
-
Method Details
-
resolve
public Set<Artifact> resolve(MavenProject project, Collection<String> scopesToResolve, MavenSession session) throws ArtifactResolutionException, ArtifactNotFoundException Deprecated.Description copied from interface:ProjectDependenciesResolver
Resolves the transitive dependencies of the specified project.- Specified by:
resolve
in interfaceProjectDependenciesResolver
- Parameters:
project
- The project whose dependencies should be resolved, must not benull
.scopesToResolve
- The dependency scopes that should be resolved, may benull
.session
- The current build session, must not benull
.- Returns:
- The transitive dependencies of the specified project that match the requested scopes, never
null
. - Throws:
ArtifactResolutionException
ArtifactNotFoundException
-
resolve
public Set<Artifact> resolve(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session) throws ArtifactResolutionException, ArtifactNotFoundException Deprecated.Description copied from interface:ProjectDependenciesResolver
Resolves the transitive dependencies of the specified project.- Specified by:
resolve
in interfaceProjectDependenciesResolver
- Parameters:
project
- The project whose dependencies should be resolved, must not benull
.scopesToCollect
- The dependency scopes that should be collected, may benull
.scopesToResolve
- The dependency scopes that should be collected and also resolved, may benull
.session
- The current build session, must not benull
.- Returns:
- The transitive dependencies of the specified project that match the requested scopes, never
null
. - Throws:
ArtifactResolutionException
ArtifactNotFoundException
-
resolve
public Set<Artifact> resolve(Collection<? extends MavenProject> projects, Collection<String> scopesToResolve, MavenSession session) throws ArtifactResolutionException, ArtifactNotFoundException Deprecated.Description copied from interface:ProjectDependenciesResolver
Resolves the transitive dependencies of the specified projects. Note that dependencies which can't be resolved from any repository but are present among the set of specified projects will not cause an exception. Instead, those unresolved artifacts will be returned in the result set, allowing the caller to take special care of artifacts that haven't been build yet.- Specified by:
resolve
in interfaceProjectDependenciesResolver
- Parameters:
projects
- The projects whose dependencies should be resolved, may benull
.scopesToResolve
- The dependency scopes that should be resolved, may benull
.session
- The current build session, must not benull
.- Returns:
- The transitive dependencies of the specified projects that match the requested scopes, never
null
. - Throws:
ArtifactResolutionException
ArtifactNotFoundException
-
resolve
public Set<Artifact> resolve(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, Set<Artifact> ignoreableArtifacts) throws ArtifactResolutionException, ArtifactNotFoundException Deprecated.Description copied from interface:ProjectDependenciesResolver
Resolves the transitive dependencies of the specified project.- Specified by:
resolve
in interfaceProjectDependenciesResolver
- Parameters:
project
- The project whose dependencies should be resolved, must not benull
.scopesToCollect
- The dependency scopes that should be collected, may benull
.scopesToResolve
- The dependency scopes that should be collected and also resolved, may benull
.session
- The current build session, must not benull
.ignoreableArtifacts
- Artifacts that need not be resolved- Returns:
- The transitive dependencies of the specified project that match the requested scopes, never
null
. - Throws:
ArtifactResolutionException
ArtifactNotFoundException
-
resolveImpl
private Set<Artifact> resolveImpl(Collection<? extends MavenProject> projects, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, Set<String> projectIds) throws ArtifactResolutionException, ArtifactNotFoundException Deprecated. -
getIgnorableArtifacts
Deprecated. -
getIgnorableArtifacts
Deprecated.
-