Uses of Interface
org.apache.maven.api.Session
Packages that use Session
Package
Description
Maven Core API
Defines core service interfaces that provide essential Maven functionality such as
 artifact resolution, dependency management, and build execution.
Maven Resolver extensions for utilizing the Maven POM and Maven
 repository metadata.
- 
Uses of Session in org.apache.maven.apiMethods in org.apache.maven.api that return SessionModifier and TypeMethodDescriptionEvent.getSession()Gets the session from which this event originates.Session.withLocalRepository(LocalRepository localRepository) Creates a derived session using the given local repository.Session.withRemoteRepositories(List<RemoteRepository> repositories) Creates a derived session using the given remote repositories.
- 
Uses of Session in org.apache.maven.api.servicesMethods in org.apache.maven.api.services with parameters of type SessionModifier and TypeMethodDescriptionRepositoryFactory.aggregate(Session session, List<RemoteRepository> dominant, List<RemoteRepository> recessive, boolean processRecessive) default voidProjectManager.attachArtifact(Session session, Project project, String type, Path path) Attaches an artifact to the project with an explicitly specified type.default voidProjectManager.attachArtifact(Session session, Project project, Path path) Attaches an artifact to the project using the given file path.ArtifactCoordinatesFactoryRequest.build(Session session, String groupId, String artifactId, String version, String extension) ArtifactCoordinatesFactoryRequest.build(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type) ArtifactCoordinatesFactoryRequest.build(Session session, ArtifactCoordinates coordinates) static ArtifactDeployerRequestArtifactDeployerRequest.build(Session session, RemoteRepository repository, Collection<ProducedArtifact> artifacts) static ArtifactFactoryRequestArtifactFactoryRequest.build(Session session, String groupId, String artifactId, String version, String extension) static ArtifactFactoryRequestArtifactFactoryRequest.build(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type) static ArtifactInstallerRequestArtifactInstallerRequest.build(Session session, Collection<ProducedArtifact> artifacts) static ArtifactResolverRequestArtifactResolverRequest.build(Session session, Collection<? extends ArtifactCoordinates> coordinates) static ArtifactResolverRequestArtifactResolverRequest.build(Session session, Collection<? extends ArtifactCoordinates> coordinates, List<RemoteRepository> repositories) DependencyCoordinatesFactoryRequest.build(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type) DependencyCoordinatesFactoryRequest.build(Session session, ArtifactCoordinates coordinates) DependencyCoordinatesFactoryRequest.build(Session session, Dependency dependency) static DependencyResolverRequestDependencyResolverRequest.build(Session session, DependencyResolverRequest.RequestType requestType, List<DependencyCoordinates> dependencies) static DependencyResolverRequestDependencyResolverRequest.build(Session session, DependencyResolverRequest.RequestType requestType, List<DependencyCoordinates> dependencies, PathScope scope) static DependencyResolverRequestDependencyResolverRequest.build(Session session, DependencyResolverRequest.RequestType requestType, Artifact rootArtifact) static DependencyResolverRequestDependencyResolverRequest.build(Session session, DependencyResolverRequest.RequestType requestType, Artifact rootArtifact, PathScope scope) static DependencyResolverRequestDependencyResolverRequest.build(Session session, DependencyResolverRequest.RequestType requestType, DependencyCoordinates dependency) static DependencyResolverRequestDependencyResolverRequest.build(Session session, DependencyResolverRequest.RequestType requestType, DependencyCoordinates dependency, PathScope scope) static DependencyResolverRequestDependencyResolverRequest.build(Session session, DependencyResolverRequest.RequestType requestType, Project project) static DependencyResolverRequestDependencyResolverRequest.build(Session session, DependencyResolverRequest.RequestType requestType, Project project, PathScope scope) static ModelBuilderRequeststatic ModelBuilderRequestModelBuilderRequest.build(Session session, ModelSource source) default ProjectBuilderResultCreates aProjectfrom a POM file.default ProjectBuilderResultCreates aProjectfrom a POM file.static ProjectBuilderRequeststatic ProjectBuilderRequestdefault SettingsBuilderResultBuilds the effective settings of the specified settings paths.default SettingsBuilderResultSettingsBuilder.build(Session session, Path installationSettingsPath, Path projectSettingsPath, Path userSettingsPath) Builds the effective settings of the specified settings paths.default SettingsBuilderResultSettingsBuilder.build(Session session, Source installationSettingsSource, Source userSettingsSource) Builds the effective settings of the specified settings sources.default SettingsBuilderResultSettingsBuilder.build(Session session, Source installationSettingsSource, Source projectSettingsSource, Source userSettingsSource) Builds the effective settings of the specified settings sources.default ToolchainsBuilderResultToolchainsBuilder.build(Session session, Source installationToolchainsFile, Source userToolchainsSource) Builds the effective toolchains for the specified toolchains sources.static VersionRangeResolverRequestVersionRangeResolverRequest.build(Session session, ArtifactCoordinates artifactCoordinates) static VersionRangeResolverRequestVersionRangeResolverRequest.build(Session session, ArtifactCoordinates artifactCoordinates, List<RemoteRepository> repositories) static VersionResolverRequestVersionResolverRequest.build(Session session, ArtifactCoordinates artifactCoordinates) static VersionResolverRequestVersionResolverRequest.build(Session session, ArtifactCoordinates artifactCoordinates, List<RemoteRepository> repositories) default DependencyResolverResultCollects the transitive dependencies of some artifacts and builds a dependency graph for the given path scope.default DependencyResolverResultDependencyResolver.collect(Session session, DependencyCoordinates root, PathScope scope) Collects the transitive dependencies of some artifacts and builds a dependency graph for the given path scope.default DependencyResolverResultCollects the transitive dependencies of some artifacts and builds a dependency graph for the given path scope.default ArtifactCoordinatesCreates coordinates out of string that is formatted like:<groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>default ArtifactCoordinatesArtifactCoordinatesFactory.create(Session session, String groupId, String artifactId, String version, String extension) default ArtifactCoordinatesArtifactCoordinatesFactory.create(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type) default ArtifactCoordinatesdefault ArtifactArtifactFactory.create(Session session, String groupId, String artifactId, String version, String extension) default ArtifactArtifactFactory.create(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type) default DependencyCoordinatesDependencyCoordinatesFactory.create(Session session, ArtifactCoordinates coordinates) default DependencyCoordinatesDependencyCoordinatesFactory.create(Session session, Dependency dependency) default DependencyCoordinatesDependencyCoordinatesFactory.create(Session session, Dependency dependency) default DependencyCoordinatesdefault DependencyCoordinatesDependencyCoordinatesFactory.create(Session session, ReportPlugin reportPlugin) default ProducedArtifactArtifactFactory.createProduced(Session session, String groupId, String artifactId, String version, String extension) default ProducedArtifactArtifactFactory.createProduced(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type) default voidArtifactDeployer.deploy(Session session, RemoteRepository repository, Collection<ProducedArtifact> artifacts) Flattens a list of nodes.default DependencyResolverResultLocalRepositoryManager.getPathForLocalArtifact(Session session, LocalRepository local, Artifact artifact) Gets the relative path for a locally installed artifact.LocalRepositoryManager.getPathForRemoteArtifact(Session session, LocalRepository local, RemoteRepository remote, Artifact artifact) Gets the relative path for an artifact cached from a remote repository.ToolchainManager.getToolchainFromBuildContext(Session session, String type) Retrieves the currently active toolchain from the build context.ToolchainManager.getToolchains(Session session, String type) Retrieves all toolchains of the specified type without additional requirements.Retrieves toolchains matching the specified type and requirements.default voidArtifactInstaller.install(Session session, Collection<ProducedArtifact> artifacts) default voidArtifactInstaller.install(Session session, ProducedArtifact artifact) default ArtifactResolverResultArtifactResolver.resolve(Session session, Collection<? extends ArtifactCoordinates> coordinates) Resolves several artifacts from their coordinates.default ArtifactResolverResultArtifactResolver.resolve(Session session, Collection<? extends ArtifactCoordinates> coordinates, List<RemoteRepository> repositories) Resolves several artifacts from their coordinates.default DependencyResolverResultDependencyResolver.resolve(Session session, List<DependencyCoordinates> dependencies) default DependencyResolverResultDependencyResolver.resolve(Session session, List<DependencyCoordinates> dependencies, PathScope scope) default DependencyResolverResultDependencyResolver.resolve(Session session, DependencyCoordinates dependency) default DependencyResolverResultDependencyResolver.resolve(Session session, DependencyCoordinates dependency, PathScope scope) default DependencyResolverResultdefault DependencyResolverResultdefault VersionRangeResolverResultVersionRangeResolver.resolve(Session session, ArtifactCoordinates artifactCoordinates) Expands a version range to a list of matching versions, in ascending order.default VersionRangeResolverResultVersionRangeResolver.resolve(Session session, ArtifactCoordinates artifactCoordinates, List<RemoteRepository> repositories) Expands a version range to a list of matching versions, in ascending order.default VersionResolverResultVersionResolver.resolve(Session session, ArtifactCoordinates artifactCoordinates) Resolves an artifact's meta version (if any) to a concrete version.DependencyCoordinatesFactoryRequest.DependencyCoordinatesFactoryRequestBuilder.session(Session session) voidToolchainManager.storeToolchainToBuildContext(Session session, Toolchain toolchain) Stores a toolchain in the build context for later retrieval.TransportProvider.transport(Session session, RemoteRepository repository) Provides newTransportinstance for givenRemoteRepository, if possible.
- 
Uses of Session in org.apache.maven.api.services.modelMethods in org.apache.maven.api.services.model that return SessionModifier and TypeMethodDescriptionModelResolver.ModelResolverRequest.getSession()ModelResolver.ModelResolverRequest.session()Returns the value of thesessionrecord component.Methods in org.apache.maven.api.services.model with parameters of type SessionModifier and TypeMethodDescriptionModelResolver.resolveModel(Session session, List<RemoteRepository> repositories, Dependency dependency, AtomicReference<Dependency> modified) Tries to resolve the POM for the specified dependency coordinates possibly updatingdependency.ModelResolver.resolveModel(Session session, List<RemoteRepository> repositories, Parent parent, AtomicReference<Parent> modified) Tries to resolve the POM for the specified parent coordinates possibly updatingparent.Constructors in org.apache.maven.api.services.model with parameters of type SessionModifierConstructorDescriptionModelResolverRequest(Session session, RequestTrace trace, List<RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier) Creates an instance of aModelResolverRequestrecord class.
- 
Uses of Session in org.apache.maven.executionMethods in org.apache.maven.execution that return SessionMethods in org.apache.maven.execution with parameters of type Session
- 
Uses of Session in org.apache.maven.implSubinterfaces of Session in org.apache.maven.implClasses in org.apache.maven.impl that implement SessionMethods in org.apache.maven.impl that return SessionModifier and TypeMethodDescriptionprotected abstract SessionAbstractSession.newSession(org.eclipse.aether.RepositorySystemSession session, List<RemoteRepository> repositories) RequestTraceHelper.ResolverTrace.session()Returns the value of thesessionrecord component.AbstractSession.withLocalRepository(LocalRepository localRepository) AbstractSession.withRemoteRepositories(List<RemoteRepository> repositories) Methods in org.apache.maven.impl with parameters of type SessionModifier and TypeMethodDescriptionDefaultRepositoryFactory.aggregate(Session session, List<RemoteRepository> dominant, List<RemoteRepository> recessive, boolean processRecessive) static voidCreates a new trace entry and updates the session's current tracestatic InternalSessionDefaultLocalRepositoryManager.getPathForLocalArtifact(Session session, LocalRepository local, Artifact artifact) DefaultLocalRepositoryManager.getPathForRemoteArtifact(Session session, LocalRepository local, RemoteRepository remote, Artifact artifact) DefaultToolchainManager.getToolchainFromBuildContext(Session session, String type) DefaultToolchainManager.getToolchains(Session session, String type, Map<String, String> requirements) DefaultToolchainManager.retrieveContext(Session session) voidDefaultToolchainManager.storeToolchainToBuildContext(Session session, Toolchain toolchain) DefaultTransportProvider.transport(Session session, RemoteRepository repository) Constructors in org.apache.maven.impl with parameters of type SessionModifierConstructorDescriptionDefaultSourceRoot(Session session, Path baseDir, Source source) Creates a new instance from the given model.ResolverTrace(Session session, String context, org.eclipse.aether.RequestTrace trace, RequestTrace mvnTrace) Creates an instance of aResolverTracerecord class.
- 
Uses of Session in org.apache.maven.impl.modelMethods in org.apache.maven.impl.model that return SessionModifier and TypeMethodDescriptionDefaultModelBuilder.RgavCacheKey.getSession()DefaultModelBuilder.SourceCacheKey.getSession()DefaultModelBuilder.RgavCacheKey.session()Returns the value of thesessionrecord component.DefaultModelBuilder.SourceCacheKey.session()Returns the value of thesessionrecord component.Constructors in org.apache.maven.impl.model with parameters of type SessionModifierConstructorDescriptionRgavCacheKey(Session session, RequestTrace trace, List<RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier, String tag) Creates an instance of aRgavCacheKeyrecord class.SourceCacheKey(Session session, RequestTrace trace, Source source, String tag) Creates an instance of aSourceCacheKeyrecord class.
- 
Uses of Session in org.apache.maven.impl.resolverMethods in org.apache.maven.impl.resolver with parameters of type SessionModifier and TypeMethodDescriptionprotected PathDefaultModelResolver.getPath(Session session, List<RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier) DefaultModelResolver.resolveModel(Session session, List<RemoteRepository> repositories, Dependency dependency, AtomicReference<Dependency> modified) DefaultModelResolver.resolveModel(Session session, List<RemoteRepository> repositories, Parent parent, AtomicReference<Parent> modified) 
- 
Uses of Session in org.apache.maven.internal.implSubinterfaces of Session in org.apache.maven.internal.implClasses in org.apache.maven.internal.impl that implement SessionMethods in org.apache.maven.internal.impl that return SessionModifier and TypeMethodDescriptionDefaultEvent.getSession()protected SessionDefaultSession.newSession(MavenSession mavenSession, List<RemoteRepository> repositories) protected SessionDefaultSession.newSession(org.eclipse.aether.RepositorySystemSession repoSession, List<RemoteRepository> repositories) Methods in org.apache.maven.internal.impl with parameters of type Session
- 
Uses of Session in org.apache.maven.pluginConstructors in org.apache.maven.plugin with parameters of type SessionModifierConstructorDescriptionPluginParameterExpressionEvaluatorV4(Session session, Project project) PluginParameterExpressionEvaluatorV4(Session session, Project project, MojoExecution mojoExecution) 
- 
Uses of Session in org.apache.maven.toolchainMethods in org.apache.maven.toolchain with parameters of type SessionModifier and TypeMethodDescriptionToolchainManagerFactory.DefaultToolchainManagerV4.getToolchainFromBuildContext(Session session, String type) ToolchainManagerFactory.DefaultToolchainManagerV4.getToolchains(Session session, String type) ToolchainManagerFactory.DefaultToolchainManagerV4.getToolchains(Session session, String type, Map<String, String> requirements) voidToolchainManagerFactory.DefaultToolchainManagerV4.storeToolchainToBuildContext(Session session, Toolchain toolchain)