Uses of Class
org.apache.maven.execution.MavenSession
-
-
Uses of MavenSession in org.apache.maven
Methods in org.apache.maven with parameters of type MavenSession Modifier and Type Method Description void
AbstractMavenLifecycleParticipant. afterProjectsRead(MavenSession session)
Invoked after all MavenProject instances have been created.void
AbstractMavenLifecycleParticipant. afterSessionEnd(MavenSession session)
Invoked after all projects were built.void
AbstractMavenLifecycleParticipant. afterSessionStart(MavenSession session)
Invoked after MavenSession instance has been created.Set<Artifact>
DefaultProjectDependenciesResolver. resolve(Collection<? extends MavenProject> projects, Collection<String> scopesToResolve, MavenSession session)
Deprecated.Set<Artifact>
DefaultProjectDependenciesResolver. resolve(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session)
Deprecated.Set<Artifact>
DefaultProjectDependenciesResolver. resolve(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, Set<Artifact> ignoreableArtifacts)
Deprecated.Set<Artifact>
DefaultProjectDependenciesResolver. resolve(MavenProject project, Collection<String> scopesToResolve, MavenSession session)
Deprecated.Set<Artifact>
ProjectDependenciesResolver. resolve(Collection<? extends MavenProject> projects, Collection<String> scopes, MavenSession session)
Deprecated.Resolves the transitive dependencies of the specified projects.Set<Artifact>
ProjectDependenciesResolver. resolve(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session)
Deprecated.Resolves the transitive dependencies of the specified project.Set<Artifact>
ProjectDependenciesResolver. resolve(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, Set<Artifact> ignoreableArtifacts)
Deprecated.Resolves the transitive dependencies of the specified project.Set<Artifact>
ProjectDependenciesResolver. resolve(MavenProject project, Collection<String> scopesToResolve, MavenSession session)
Deprecated.Resolves the transitive dependencies of the specified project. -
Uses of MavenSession in org.apache.maven.artifact.repository
Methods in org.apache.maven.artifact.repository with parameters of type MavenSession Modifier and Type Method Description static RepositoryRequest
DefaultRepositoryRequest. getRepositoryRequest(MavenSession session, MavenProject project)
-
Uses of MavenSession in org.apache.maven.execution
Methods in org.apache.maven.execution that return MavenSession Modifier and Type Method Description MavenSession
MavenSession. clone()
MavenSession
ExecutionEvent. getSession()
Gets the session from which this event originates.MavenSession
MojoExecutionEvent. getSession()
MavenSession
ProjectExecutionEvent. getSession()
Constructors in org.apache.maven.execution with parameters of type MavenSession Constructor Description MojoExecutionEvent(MavenSession session, MavenProject project, MojoExecution mojoExecution, Mojo mojo)
MojoExecutionEvent(MavenSession session, MavenProject project, MojoExecution mojoExecution, Mojo mojo, Throwable cause)
ProjectExecutionEvent(MavenSession session, MavenProject project)
ProjectExecutionEvent(MavenSession session, MavenProject project, Throwable cause)
ProjectExecutionEvent(MavenSession session, MavenProject project, List<MojoExecution> executionPlan)
ProjectExecutionEvent(MavenSession session, MavenProject project, List<MojoExecution> executionPlan, Throwable cause)
-
Uses of MavenSession in org.apache.maven.graph
Methods in org.apache.maven.graph with parameters of type MavenSession Modifier and Type Method Description Result<ProjectDependencyGraph>
DefaultGraphBuilder. build(MavenSession session)
Result<? extends ProjectDependencyGraph>
GraphBuilder. build(MavenSession session)
-
Uses of MavenSession in org.apache.maven.lifecycle
Methods in org.apache.maven.lifecycle with parameters of type MavenSession Modifier and Type Method Description MavenExecutionPlan
DefaultLifecycleExecutor. calculateExecutionPlan(MavenSession session, boolean setup, String... tasks)
MavenExecutionPlan
DefaultLifecycleExecutor. calculateExecutionPlan(MavenSession session, String... tasks)
MavenExecutionPlan
LifecycleExecutor. calculateExecutionPlan(MavenSession session, boolean setup, String... tasks)
MavenExecutionPlan
LifecycleExecutor. calculateExecutionPlan(MavenSession session, String... tasks)
void
DefaultLifecycleExecutor. calculateForkedExecutions(MojoExecution mojoExecution, MavenSession session)
void
LifecycleExecutor. calculateForkedExecutions(MojoExecution mojoExecution, MavenSession session)
Map<String,List<MojoExecution>>
LifecycleMappingDelegate. calculateLifecycleMappings(MavenSession session, MavenProject project, Lifecycle lifecycle, String lifecyclePhase)
void
DefaultLifecycleExecutor. execute(MavenSession session)
void
LifecycleExecutor. execute(MavenSession session)
List<MavenProject>
DefaultLifecycleExecutor. executeForkedExecutions(MojoExecution mojoExecution, MavenSession session)
List<MavenProject>
LifecycleExecutor. executeForkedExecutions(MojoExecution mojoExecution, MavenSession session)
-
Uses of MavenSession in org.apache.maven.lifecycle.internal
Methods in org.apache.maven.lifecycle.internal that return MavenSession Modifier and Type Method Description MavenSession
ProjectSegment. getSession()
Methods in org.apache.maven.lifecycle.internal with parameters of type MavenSession Modifier and Type Method Description void
LifecycleModuleBuilder. buildProject(MavenSession session, MavenSession rootSession, ReactorContext reactorContext, MavenProject currentProject, TaskSegment taskSegment)
void
LifecycleModuleBuilder. buildProject(MavenSession session, ReactorContext reactorContext, MavenProject currentProject, TaskSegment taskSegment)
MavenExecutionPlan
DefaultLifecycleExecutionPlanCalculator. calculateExecutionPlan(MavenSession session, MavenProject project, List<Object> tasks)
MavenExecutionPlan
DefaultLifecycleExecutionPlanCalculator. calculateExecutionPlan(MavenSession session, MavenProject project, List<Object> tasks, boolean setup)
MavenExecutionPlan
LifecycleExecutionPlanCalculator. calculateExecutionPlan(MavenSession session, MavenProject project, List<Object> tasks)
MavenExecutionPlan
LifecycleExecutionPlanCalculator. calculateExecutionPlan(MavenSession session, MavenProject project, List<Object> tasks, boolean setup)
void
DefaultLifecycleExecutionPlanCalculator. calculateForkedExecutions(MojoExecution mojoExecution, MavenSession session)
void
LifecycleExecutionPlanCalculator. calculateForkedExecutions(MojoExecution mojoExecution, MavenSession session)
Map<String,List<MojoExecution>>
DefaultLifecycleMappingDelegate. calculateLifecycleMappings(MavenSession session, MavenProject project, Lifecycle lifecycle, String lifecyclePhase)
List<MojoExecution>
DefaultLifecycleExecutionPlanCalculator. calculateMojoExecutions(MavenSession session, MavenProject project, List<Object> tasks)
ProjectBuildList
BuildListCalculator. calculateProjectBuilds(MavenSession session, List<TaskSegment> taskSegments)
List<TaskSegment>
DefaultLifecycleTaskSegmentCalculator. calculateTaskSegments(MavenSession session)
List<TaskSegment>
DefaultLifecycleTaskSegmentCalculator. calculateTaskSegments(MavenSession session, List<String> tasks)
List<TaskSegment>
LifecycleTaskSegmentCalculator. calculateTaskSegments(MavenSession session)
List<TaskSegment>
LifecycleTaskSegmentCalculator. calculateTaskSegments(MavenSession session, List<String> tasks)
void
MojoExecutor. ensureDependenciesAreResolved(MojoDescriptor mojoDescriptor, MavenSession session, DependencyContext dependencyContext)
void
LifecycleStarter. execute(MavenSession session)
void
MojoExecutor. execute(MavenSession session, List<MojoExecution> mojoExecutions, ProjectIndex projectIndex)
List<MavenProject>
MojoExecutor. executeForkedExecutions(MojoExecution mojoExecution, MavenSession session, ProjectIndex projectIndex)
Plugin
MojoDescriptorCreator. findPluginForPrefix(String prefix, MavenSession session)
void
DefaultExecutionEventCatapult. fire(ExecutionEvent.Type eventType, MavenSession session, MojoExecution mojoExecution)
void
DefaultExecutionEventCatapult. fire(ExecutionEvent.Type eventType, MavenSession session, MojoExecution mojoExecution, Exception exception)
void
ExecutionEventCatapult. fire(ExecutionEvent.Type eventType, MavenSession session, MojoExecution mojoExecution)
void
ExecutionEventCatapult. fire(ExecutionEvent.Type eventType, MavenSession session, MojoExecution mojoExecution, Exception exception)
MojoDescriptor
MojoDescriptorCreator. getMojoDescriptor(String task, MavenSession session, MavenProject project)
static List<MavenProject>
LifecycleDependencyResolver. getProjects(MavenProject project, MavenSession session, boolean aggregator)
DependencyContext
MojoExecutor. newDependencyContext(MavenSession session, List<MojoExecution> mojoExecutions)
boolean
DefaultLifecycleTaskSegmentCalculator. requiresProject(MavenSession session)
boolean
LifecycleTaskSegmentCalculator. requiresProject(MavenSession session)
void
LifecyclePluginResolver. resolveMissingPluginVersions(MavenProject project, MavenSession session)
void
LifecycleDependencyResolver. resolveProjectDependencies(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, boolean aggregating, Set<Artifact> projectArtifacts)
void
DefaultLifecycleExecutionPlanCalculator. setupMojoExecution(MavenSession session, MavenProject project, MojoExecution mojoExecution)
void
LifecycleExecutionPlanCalculator. setupMojoExecution(MavenSession session, MavenProject project, MojoExecution mojoExecution)
Constructors in org.apache.maven.lifecycle.internal with parameters of type MavenSession Constructor Description ProjectSegment(MavenProject project, TaskSegment taskSegment, MavenSession copiedSession)
-
Uses of MavenSession in org.apache.maven.lifecycle.internal.builder
Methods in org.apache.maven.lifecycle.internal.builder with parameters of type MavenSession Modifier and Type Method Description void
Builder. build(MavenSession session, ReactorContext reactorContext, ProjectBuildList projectBuilds, List<TaskSegment> taskSegments, ReactorBuildStatus reactorBuildStatus)
void
BuilderCommon. handleBuildError(ReactorContext buildContext, MavenSession rootSession, MavenSession currentSession, MavenProject mavenProject, Throwable t, long buildStartTime)
MavenExecutionPlan
BuilderCommon. resolveBuildPlan(MavenSession session, MavenProject project, TaskSegment taskSegment, Set<Artifact> projectArtifacts)
-
Uses of MavenSession in org.apache.maven.lifecycle.internal.builder.multithreaded
Methods in org.apache.maven.lifecycle.internal.builder.multithreaded with parameters of type MavenSession Modifier and Type Method Description void
MultiThreadedBuilder. build(MavenSession session, ReactorContext reactorContext, ProjectBuildList projectBuilds, List<TaskSegment> taskSegments, ReactorBuildStatus reactorBuildStatus)
-
Uses of MavenSession in org.apache.maven.lifecycle.internal.builder.singlethreaded
Methods in org.apache.maven.lifecycle.internal.builder.singlethreaded with parameters of type MavenSession Modifier and Type Method Description void
SingleThreadedBuilder. build(MavenSession session, ReactorContext reactorContext, ProjectBuildList projectBuilds, List<TaskSegment> taskSegments, ReactorBuildStatus reactorBuildStatus)
-
Uses of MavenSession in org.apache.maven.plugin
Methods in org.apache.maven.plugin that return MavenSession Modifier and Type Method Description MavenSession
LegacySupport. getSession()
Gets the currently active session.Methods in org.apache.maven.plugin with parameters of type MavenSession Modifier and Type Method Description void
DefaultMojosExecutionStrategy. execute(List<MojoExecution> mojos, MavenSession session, MojoExecutionRunner mojoRunner)
void
MojosExecutionStrategy. execute(List<MojoExecution> mojos, MavenSession session, MojoExecutionRunner mojoExecutionRunner)
Entry point to the execution strategyvoid
BuildPluginManager. executeMojo(MavenSession session, MojoExecution execution)
void
DefaultBuildPluginManager. executeMojo(MavenSession session, MojoExecution mojoExecution)
void
PluginManager. executeMojo(MavenProject project, MojoExecution execution, MavenSession session)
Deprecated.<T> T
MavenPluginManager. getConfiguredMojo(Class<T> mojoInterface, MavenSession session, MojoExecution mojoExecution)
Looks up the mojo for the specified mojo execution and populates its parameters from the configuration given by the mojo execution.Plugin
PluginManager. getPluginDefinitionForPrefix(String prefix, MavenSession session, MavenProject project)
Deprecated.org.codehaus.plexus.classworlds.realm.ClassRealm
BuildPluginManager. getPluginRealm(MavenSession session, PluginDescriptor pluginDescriptor)
org.codehaus.plexus.classworlds.realm.ClassRealm
DefaultBuildPluginManager. getPluginRealm(MavenSession session, PluginDescriptor pluginDescriptor)
TODO pluginDescriptor classRealm and artifacts are set as a side effect of this call, which is not nice.PluginDescriptor
PluginManager. loadPluginDescriptor(Plugin plugin, MavenProject project, MavenSession session)
Deprecated.PluginDescriptor
PluginManager. loadPluginFully(Plugin plugin, MavenProject project, MavenSession session)
Deprecated.void
PluginValidationManager. reportPluginMojoValidationIssue(PluginValidationManager.IssueLocality locality, MavenSession mavenSession, MojoDescriptor mojoDescriptor, Class<?> mojoClass, String issue)
Reports plugin Mojo issues applicable to the Mojo itself.void
PluginValidationManager. reportPluginValidationIssue(PluginValidationManager.IssueLocality locality, MavenSession mavenSession, MojoDescriptor mojoDescriptor, String issue)
Reports plugin issues applicable to the plugin as a whole.void
LegacySupport. setSession(MavenSession session)
Sets the currently active session.void
MavenPluginManager. setupPluginRealm(PluginDescriptor pluginDescriptor, MavenSession session, ClassLoader parent, List<String> imports, org.eclipse.aether.graph.DependencyFilter filter)
Sets up the class realm for the specified plugin.Constructors in org.apache.maven.plugin with parameters of type MavenSession Constructor Description PluginParameterExpressionEvaluator(MavenSession session)
PluginParameterExpressionEvaluator(MavenSession session, MojoExecution mojoExecution)
PluginParameterExpressionEvaluator(MavenSession session, MojoExecution mojoExecution, PathTranslator pathTranslator, org.codehaus.plexus.logging.Logger logger, MavenProject project, Properties properties)
Deprecated. -
Uses of MavenSession in org.apache.maven.plugin.internal
Methods in org.apache.maven.plugin.internal that return MavenSession Modifier and Type Method Description MavenSession
DefaultLegacySupport. getSession()
Methods in org.apache.maven.plugin.internal with parameters of type MavenSession Modifier and Type Method Description void
DefaultPluginManager. executeMojo(MavenProject project, MojoExecution execution, MavenSession session)
<T> T
DefaultMavenPluginManager. getConfiguredMojo(Class<T> mojoInterface, MavenSession session, MojoExecution mojoExecution)
Plugin
DefaultPluginManager. getPluginDefinitionForPrefix(String prefix, MavenSession session, MavenProject project)
PluginDescriptor
DefaultPluginManager. loadPluginDescriptor(Plugin plugin, MavenProject project, MavenSession session)
PluginDescriptor
DefaultPluginManager. loadPluginFully(Plugin plugin, MavenProject project, MavenSession session)
void
DefaultPluginValidationManager. reportPluginMojoValidationIssue(PluginValidationManager.IssueLocality locality, MavenSession mavenSession, MojoDescriptor mojoDescriptor, Class<?> mojoClass, String issue)
void
DefaultPluginValidationManager. reportPluginValidationIssue(PluginValidationManager.IssueLocality locality, MavenSession mavenSession, MojoDescriptor mojoDescriptor, String issue)
void
DefaultLegacySupport. setSession(MavenSession session)
void
DefaultMavenPluginManager. setupPluginRealm(PluginDescriptor pluginDescriptor, MavenSession session, ClassLoader parent, List<String> imports, org.eclipse.aether.graph.DependencyFilter filter)
-
Uses of MavenSession in org.apache.maven.plugin.prefix
Constructors in org.apache.maven.plugin.prefix with parameters of type MavenSession Constructor Description DefaultPluginPrefixRequest(String prefix, MavenSession session)
Creates a request for the specified plugin prefix and build session. -
Uses of MavenSession in org.apache.maven.plugin.version
Constructors in org.apache.maven.plugin.version with parameters of type MavenSession Constructor Description DefaultPluginVersionRequest(Plugin plugin, MavenSession session)
Creates a request for the specified plugin by copying settings from the specified build session. -
Uses of MavenSession in org.apache.maven.toolchain
Methods in org.apache.maven.toolchain with parameters of type MavenSession Modifier and Type Method Description Toolchain
DefaultToolchainManager. getToolchainFromBuildContext(String type, MavenSession session)
Toolchain
ToolchainManager. getToolchainFromBuildContext(String type, MavenSession context)
Retrieve toolchain of specified type from build context.List<Toolchain>
DefaultToolchainManager. getToolchains(MavenSession session, String type, Map<String,String> requirements)
List<Toolchain>
ToolchainManager. getToolchains(MavenSession session, String type, Map<String,String> requirements)
Select all toolchains available in user settings matching the type and requirements, independently frommaven-toolchains-plugin
.ToolchainPrivate[]
DefaultToolchainManagerPrivate. getToolchainsForType(String type, MavenSession context)
ToolchainPrivate[]
ToolchainManagerPrivate. getToolchainsForType(String type, MavenSession context)
Retrieves every toolchains of given type available in user settings.void
DefaultToolchainManagerPrivate. storeToolchainToBuildContext(ToolchainPrivate toolchain, MavenSession session)
void
ToolchainManagerPrivate. storeToolchainToBuildContext(ToolchainPrivate toolchain, MavenSession context)
Stores the toolchain into build context for later use by toolchain-aware plugins.
-