Uses of Class
org.apache.maven.execution.MavenSession
Package
Description
-
Uses of MavenSession in org.apache.maven
Modifier and TypeMethodDescriptionvoid
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.DefaultProjectDependenciesResolver.resolve
(Collection<? extends MavenProject> projects, Collection<String> scopesToResolve, MavenSession session) Deprecated.DefaultProjectDependenciesResolver.resolve
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session) Deprecated.DefaultProjectDependenciesResolver.resolve
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, Set<Artifact> ignoreableArtifacts) Deprecated.DefaultProjectDependenciesResolver.resolve
(MavenProject project, Collection<String> scopesToResolve, MavenSession session) Deprecated.ProjectDependenciesResolver.resolve
(Collection<? extends MavenProject> projects, Collection<String> scopes, MavenSession session) Deprecated.Resolves the transitive dependencies of the specified projects.ProjectDependenciesResolver.resolve
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session) Deprecated.Resolves the transitive dependencies of the specified project.ProjectDependenciesResolver.resolve
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, Set<Artifact> ignoreableArtifacts) Deprecated.Resolves the transitive dependencies of the specified project.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
Modifier and TypeMethodDescriptionstatic RepositoryRequest
DefaultRepositoryRequest.getRepositoryRequest
(MavenSession session, MavenProject project) -
Uses of MavenSession in org.apache.maven.execution
Modifier and TypeMethodDescriptionMavenSession.clone()
ExecutionEvent.getSession()
Gets the session from which this event originates.MojoExecutionEvent.getSession()
ProjectExecutionEvent.getSession()
ModifierConstructorDescriptionMojoExecutionEvent
(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
Modifier and TypeMethodDescriptionDefaultGraphBuilder.build
(MavenSession session) Result<? extends ProjectDependencyGraph>
GraphBuilder.build
(MavenSession session) -
Uses of MavenSession in org.apache.maven.lifecycle
Modifier and TypeMethodDescriptionDefaultLifecycleExecutor.calculateExecutionPlan
(MavenSession session, boolean setup, String... tasks) DefaultLifecycleExecutor.calculateExecutionPlan
(MavenSession session, String... tasks) LifecycleExecutor.calculateExecutionPlan
(MavenSession session, boolean setup, String... tasks) LifecycleExecutor.calculateExecutionPlan
(MavenSession session, String... tasks) void
DefaultLifecycleExecutor.calculateForkedExecutions
(MojoExecution mojoExecution, MavenSession session) void
LifecycleExecutor.calculateForkedExecutions
(MojoExecution mojoExecution, MavenSession session) LifecycleMappingDelegate.calculateLifecycleMappings
(MavenSession session, MavenProject project, Lifecycle lifecycle, String lifecyclePhase) void
DefaultLifecycleExecutor.execute
(MavenSession session) void
LifecycleExecutor.execute
(MavenSession session) DefaultLifecycleExecutor.executeForkedExecutions
(MojoExecution mojoExecution, MavenSession session) LifecycleExecutor.executeForkedExecutions
(MojoExecution mojoExecution, MavenSession session) -
Uses of MavenSession in org.apache.maven.lifecycle.internal
Modifier and TypeMethodDescriptionvoid
LifecycleModuleBuilder.buildProject
(MavenSession session, MavenSession rootSession, ReactorContext reactorContext, MavenProject currentProject, TaskSegment taskSegment) void
LifecycleModuleBuilder.buildProject
(MavenSession session, ReactorContext reactorContext, MavenProject currentProject, TaskSegment taskSegment) DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan
(MavenSession session, MavenProject project, List<Object> tasks) DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan
(MavenSession session, MavenProject project, List<Object> tasks, boolean setup) LifecycleExecutionPlanCalculator.calculateExecutionPlan
(MavenSession session, MavenProject project, List<Object> tasks) 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) DefaultLifecycleMappingDelegate.calculateLifecycleMappings
(MavenSession session, MavenProject project, Lifecycle lifecycle, String lifecyclePhase) DefaultLifecycleExecutionPlanCalculator.calculateMojoExecutions
(MavenSession session, MavenProject project, List<Object> tasks) BuildListCalculator.calculateProjectBuilds
(MavenSession session, List<TaskSegment> taskSegments) DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments
(MavenSession session) DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments
(MavenSession session, List<String> tasks) LifecycleTaskSegmentCalculator.calculateTaskSegments
(MavenSession session) 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) MojoExecutor.executeForkedExecutions
(MojoExecution mojoExecution, MavenSession session, ProjectIndex projectIndex) 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) MojoDescriptorCreator.getMojoDescriptor
(String task, MavenSession session, MavenProject project) static List<MavenProject>
LifecycleDependencyResolver.getProjects
(MavenProject project, MavenSession session, boolean aggregator) 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) ModifierConstructorDescriptionProjectSegment
(MavenProject project, TaskSegment taskSegment, MavenSession copiedSession) -
Uses of MavenSession in org.apache.maven.lifecycle.internal.builder
Modifier and TypeMethodDescriptionvoid
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) BuilderCommon.resolveBuildPlan
(MavenSession session, MavenProject project, TaskSegment taskSegment, Set<Artifact> projectArtifacts) -
Uses of MavenSession in org.apache.maven.lifecycle.internal.builder.multithreaded
Modifier and TypeMethodDescriptionvoid
MultiThreadedBuilder.build
(MavenSession session, ReactorContext reactorContext, ProjectBuildList projectBuilds, List<TaskSegment> taskSegments, ReactorBuildStatus reactorBuildStatus) -
Uses of MavenSession in org.apache.maven.lifecycle.internal.builder.singlethreaded
Modifier and TypeMethodDescriptionvoid
SingleThreadedBuilder.build
(MavenSession session, ReactorContext reactorContext, ProjectBuildList projectBuilds, List<TaskSegment> taskSegments, ReactorBuildStatus reactorBuildStatus) -
Uses of MavenSession in org.apache.maven.plugin
Modifier and TypeMethodDescriptionvoid
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.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.PluginManager.loadPluginDescriptor
(Plugin plugin, MavenProject project, MavenSession session) Deprecated.PluginManager.loadPluginFully
(Plugin plugin, MavenProject project, MavenSession session) Deprecated.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.ModifierConstructorDescriptionPluginParameterExpressionEvaluator
(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
Modifier and TypeMethodDescriptionvoid
DefaultPluginManager.executeMojo
(MavenProject project, MojoExecution execution, MavenSession session) <T> T
DefaultMavenPluginManager.getConfiguredMojo
(Class<T> mojoInterface, MavenSession session, MojoExecution mojoExecution) DefaultPluginManager.getPluginDefinitionForPrefix
(String prefix, MavenSession session, MavenProject project) DefaultPluginManager.loadPluginDescriptor
(Plugin plugin, MavenProject project, MavenSession session) DefaultPluginManager.loadPluginFully
(Plugin plugin, MavenProject project, MavenSession session) 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
ModifierConstructorDescriptionDefaultPluginPrefixRequest
(String prefix, MavenSession session) Creates a request for the specified plugin prefix and build session. -
Uses of MavenSession in org.apache.maven.plugin.version
ModifierConstructorDescriptionDefaultPluginVersionRequest
(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
Modifier and TypeMethodDescriptionDefaultToolchainManager.getToolchainFromBuildContext
(String type, MavenSession session) ToolchainManager.getToolchainFromBuildContext
(String type, MavenSession context) Retrieve toolchain of specified type from build context.DefaultToolchainManager.getToolchains
(MavenSession session, String type, Map<String, String> requirements) 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
.DefaultToolchainManagerPrivate.getToolchainsForType
(String type, MavenSession context) 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.