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. -
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.internal.impl
Modifier and TypeMethodDescriptionDefaultSession.getMavenSession()
InternalSession.getMavenSession()
ModifierConstructorDescriptionDefaultSession
(MavenSession session, org.eclipse.aether.RepositorySystem repositorySystem, List<RemoteRepository> repositories, MavenRepositorySystem mavenRepositorySystem, org.codehaus.plexus.PlexusContainer container, RuntimeInformation runtimeInformation) -
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) LifecycleDependencyResolver.resolveProjectArtifacts
(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, MavenSession session, boolean aggregating, Set<Artifact> projectArtifacts) 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, Set<MojoDescriptor> alreadyPlannedExecutions) void
LifecycleExecutionPlanCalculator.setupMojoExecution
(MavenSession session, MavenProject project, MojoExecution mojoExecution, Set<MojoDescriptor> alreadyPlannedExecutions) 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) <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.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.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.ModifierConstructorDescriptionPluginParameterExpressionEvaluator
(MavenSession session, MojoExecution mojoExecution) -
Uses of MavenSession in org.apache.maven.plugin.internal
Modifier and TypeMethodDescription<T> T
DefaultMavenPluginManager.getConfiguredMojo
(Class<T> mojoInterface, MavenSession session, MojoExecution mojoExecution) 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
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 session) 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.