public class ProjectDependencyGraphStub extends Object implements ProjectDependencyGraph
Implements a graph as follows: A has no dependencies B depends on A C depends on A X depends on B & C Y depends on B Z depends on C
Modifier and Type | Field and Description |
---|---|
static MavenProject |
A |
static MavenProject |
B |
static MavenProject |
C |
static MavenProject |
UNKNOWN |
static MavenProject |
X |
static MavenProject |
Y |
static MavenProject |
Z |
Constructor and Description |
---|
ProjectDependencyGraphStub() |
Modifier and Type | Method and Description |
---|---|
List<MavenProject> |
getAllProjects() |
List<MavenProject> |
getDownstreamProjects(MavenProject project,
boolean transitive) |
static MavenSession |
getMavenSession() |
static MavenSession |
getMavenSession(MavenProject mavenProject) |
static ProjectBuildList |
getProjectBuildList(MavenSession session) |
static List<ProjectSegment> |
getProjectBuilds(MavenSession session) |
List<MavenProject> |
getSortedProjects() |
List<MavenProject> |
getUpstreamProjects(MavenProject project,
boolean transitive) |
public static final MavenProject A
public static final MavenProject B
public static final MavenProject C
public static final MavenProject X
public static final MavenProject Y
public static final MavenProject Z
public static final MavenProject UNKNOWN
public static ProjectBuildList getProjectBuildList(MavenSession session) throws InvalidPluginDescriptorException, PluginVersionResolutionException, PluginDescriptorParsingException, NoPluginFoundForPrefixException, MojoNotFoundException, PluginNotFoundException, PluginResolutionException, LifecyclePhaseNotFoundException, LifecycleNotFoundException
public static List<ProjectSegment> getProjectBuilds(MavenSession session) throws InvalidPluginDescriptorException, PluginVersionResolutionException, PluginDescriptorParsingException, NoPluginFoundForPrefixException, PluginNotFoundException, MojoNotFoundException, PluginResolutionException, LifecyclePhaseNotFoundException, LifecycleNotFoundException
public List<MavenProject> getAllProjects()
getAllProjects
in interface ProjectDependencyGraph
public List<MavenProject> getSortedProjects()
getSortedProjects
in interface ProjectDependencyGraph
public List<MavenProject> getDownstreamProjects(MavenProject project, boolean transitive)
getDownstreamProjects
in interface ProjectDependencyGraph
public List<MavenProject> getUpstreamProjects(MavenProject project, boolean transitive)
getUpstreamProjects
in interface ProjectDependencyGraph
public static MavenSession getMavenSession(MavenProject mavenProject)
public static MavenSession getMavenSession()
Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.