org.apache.maven.lifecycle.internal.stub
Class ProjectDependencyGraphStub
java.lang.Object
org.apache.maven.lifecycle.internal.stub.ProjectDependencyGraphStub
- All Implemented Interfaces:
- ProjectDependencyGraph
public class ProjectDependencyGraphStub
- extends Object
- implements ProjectDependencyGraph
A stub dependency graph that is custom made for testing concurrent build graph evaluations.
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
- Author:
- Kristian Rosenvold
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
A
public static final MavenProject A
B
public static final MavenProject B
C
public static final MavenProject C
X
public static final MavenProject X
Y
public static final MavenProject Y
Z
public static final MavenProject Z
UNKNOWN
public static final MavenProject UNKNOWN
ProjectDependencyGraphStub
public ProjectDependencyGraphStub()
getProjectBuildList
public static ProjectBuildList getProjectBuildList(MavenSession session)
throws InvalidPluginDescriptorException,
PluginVersionResolutionException,
PluginDescriptorParsingException,
NoPluginFoundForPrefixException,
MojoNotFoundException,
PluginNotFoundException,
PluginResolutionException,
LifecyclePhaseNotFoundException,
LifecycleNotFoundException
- Throws:
InvalidPluginDescriptorException
PluginVersionResolutionException
PluginDescriptorParsingException
NoPluginFoundForPrefixException
MojoNotFoundException
PluginNotFoundException
PluginResolutionException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
getProjectBuilds
public static List<ProjectSegment> getProjectBuilds(MavenSession session)
throws InvalidPluginDescriptorException,
PluginVersionResolutionException,
PluginDescriptorParsingException,
NoPluginFoundForPrefixException,
PluginNotFoundException,
MojoNotFoundException,
PluginResolutionException,
LifecyclePhaseNotFoundException,
LifecycleNotFoundException
- Throws:
InvalidPluginDescriptorException
PluginVersionResolutionException
PluginDescriptorParsingException
NoPluginFoundForPrefixException
PluginNotFoundException
MojoNotFoundException
PluginResolutionException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
getSortedProjects
public List<MavenProject> getSortedProjects()
- Specified by:
getSortedProjects
in interface ProjectDependencyGraph
getDownstreamProjects
public List<MavenProject> getDownstreamProjects(MavenProject project,
boolean transitive)
- Specified by:
getDownstreamProjects
in interface ProjectDependencyGraph
getUpstreamProjects
public List<MavenProject> getUpstreamProjects(MavenProject project,
boolean transitive)
- Specified by:
getUpstreamProjects
in interface ProjectDependencyGraph
getMavenSession
public static MavenSession getMavenSession(MavenProject mavenProject)
getMavenSession
public static MavenSession getMavenSession()
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.