org.apache.maven.lifecycle.internal.stub
Class ProjectDependencyGraphStub

java.lang.Object
  extended by 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

Field Summary
static MavenProject A
           
static MavenProject B
           
static MavenProject C
           
static MavenProject UNKNOWN
           
static MavenProject X
           
static MavenProject Y
           
static MavenProject Z
           
 
Constructor Summary
ProjectDependencyGraphStub()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ProjectDependencyGraphStub

public ProjectDependencyGraphStub()
Method Detail

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–2013 The Apache Software Foundation. All rights reserved.