Class DefaultProjectDependenciesResolver

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.util.Set<org.apache.maven.artifact.Artifact> resolve​(java.util.Collection<? extends MavenProject> projects, java.util.Collection<java.lang.String> scopesToResolve, MavenSession session)
      Deprecated.
      Resolves the transitive dependencies of the specified projects.
      java.util.Set<org.apache.maven.artifact.Artifact> resolve​(MavenProject project, java.util.Collection<java.lang.String> scopesToCollect, java.util.Collection<java.lang.String> scopesToResolve, MavenSession session)
      Deprecated.
      Resolves the transitive dependencies of the specified project.
      java.util.Set<org.apache.maven.artifact.Artifact> resolve​(MavenProject project, java.util.Collection<java.lang.String> scopesToCollect, java.util.Collection<java.lang.String> scopesToResolve, MavenSession session, java.util.Set<org.apache.maven.artifact.Artifact> ignoreableArtifacts)
      Deprecated.
      Resolves the transitive dependencies of the specified project.
      java.util.Set<org.apache.maven.artifact.Artifact> resolve​(MavenProject project, java.util.Collection<java.lang.String> scopesToResolve, MavenSession session)
      Deprecated.
      Resolves the transitive dependencies of the specified project.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultProjectDependenciesResolver

        public DefaultProjectDependenciesResolver()
        Deprecated.
    • Method Detail

      • resolve

        public java.util.Set<org.apache.maven.artifact.Artifact> resolve​(MavenProject project,
                                                                         java.util.Collection<java.lang.String> scopesToResolve,
                                                                         MavenSession session)
                                                                  throws org.apache.maven.artifact.resolver.ArtifactResolutionException,
                                                                         org.apache.maven.artifact.resolver.ArtifactNotFoundException
        Deprecated.
        Description copied from interface: ProjectDependenciesResolver
        Resolves the transitive dependencies of the specified project.
        Specified by:
        resolve in interface ProjectDependenciesResolver
        Parameters:
        project - The project whose dependencies should be resolved, must not be null.
        scopesToResolve - The dependency scopes that should be resolved, may be null.
        session - The current build session, must not be null.
        Returns:
        The transitive dependencies of the specified project that match the requested scopes, never null.
        Throws:
        org.apache.maven.artifact.resolver.ArtifactResolutionException
        org.apache.maven.artifact.resolver.ArtifactNotFoundException
      • resolve

        public java.util.Set<org.apache.maven.artifact.Artifact> resolve​(MavenProject project,
                                                                         java.util.Collection<java.lang.String> scopesToCollect,
                                                                         java.util.Collection<java.lang.String> scopesToResolve,
                                                                         MavenSession session)
                                                                  throws org.apache.maven.artifact.resolver.ArtifactResolutionException,
                                                                         org.apache.maven.artifact.resolver.ArtifactNotFoundException
        Deprecated.
        Description copied from interface: ProjectDependenciesResolver
        Resolves the transitive dependencies of the specified project.
        Specified by:
        resolve in interface ProjectDependenciesResolver
        Parameters:
        project - The project whose dependencies should be resolved, must not be null.
        scopesToCollect - The dependency scopes that should be collected, may be null.
        scopesToResolve - The dependency scopes that should be collected and also resolved, may be null.
        session - The current build session, must not be null.
        Returns:
        The transitive dependencies of the specified project that match the requested scopes, never null.
        Throws:
        org.apache.maven.artifact.resolver.ArtifactResolutionException
        org.apache.maven.artifact.resolver.ArtifactNotFoundException
      • resolve

        public java.util.Set<org.apache.maven.artifact.Artifact> resolve​(java.util.Collection<? extends MavenProject> projects,
                                                                         java.util.Collection<java.lang.String> scopesToResolve,
                                                                         MavenSession session)
                                                                  throws org.apache.maven.artifact.resolver.ArtifactResolutionException,
                                                                         org.apache.maven.artifact.resolver.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 interface ProjectDependenciesResolver
        Parameters:
        projects - The projects whose dependencies should be resolved, may be null.
        scopesToResolve - The dependency scopes that should be resolved, may be null.
        session - The current build session, must not be null.
        Returns:
        The transitive dependencies of the specified projects that match the requested scopes, never null.
        Throws:
        org.apache.maven.artifact.resolver.ArtifactResolutionException
        org.apache.maven.artifact.resolver.ArtifactNotFoundException
      • resolve

        public java.util.Set<org.apache.maven.artifact.Artifact> resolve​(MavenProject project,
                                                                         java.util.Collection<java.lang.String> scopesToCollect,
                                                                         java.util.Collection<java.lang.String> scopesToResolve,
                                                                         MavenSession session,
                                                                         java.util.Set<org.apache.maven.artifact.Artifact> ignoreableArtifacts)
                                                                  throws org.apache.maven.artifact.resolver.ArtifactResolutionException,
                                                                         org.apache.maven.artifact.resolver.ArtifactNotFoundException
        Deprecated.
        Description copied from interface: ProjectDependenciesResolver
        Resolves the transitive dependencies of the specified project.
        Specified by:
        resolve in interface ProjectDependenciesResolver
        Parameters:
        project - The project whose dependencies should be resolved, must not be null.
        scopesToCollect - The dependency scopes that should be collected, may be null.
        scopesToResolve - The dependency scopes that should be collected and also resolved, may be null.
        session - The current build session, must not be null.
        ignoreableArtifacts - Artifacts that need not be resolved
        Returns:
        The transitive dependencies of the specified project that match the requested scopes, never null.
        Throws:
        org.apache.maven.artifact.resolver.ArtifactResolutionException
        org.apache.maven.artifact.resolver.ArtifactNotFoundException