Uses of Interface
org.apache.maven.api.Session
Package
Description
Maven Core API
Maven Resolver extensions for utilizing the Maven POM and Maven
repository metadata.
-
Uses of Session in org.apache.maven.api
Modifier 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.feature
Modifier and TypeMethodDescriptionstatic boolean
Features.consumerPom
(Session session) Check if the consumer POM feature is active. -
Uses of Session in org.apache.maven.api.services
Modifier and TypeMethodDescriptionArtifactCoordinatesFactoryRequest.getSession()
ArtifactDeployerRequest.getSession()
ArtifactFactoryRequest.getSession()
ArtifactInstallerRequest.getSession()
ArtifactResolverRequest.getSession()
DependencyResolverRequest.getSession()
ModelBuilderRequest.getSession()
ProjectBuilderRequest.getSession()
SettingsBuilderRequest.getSession()
ToolchainsBuilderRequest.getSession()
VersionRangeResolverRequest.getSession()
VersionResolverRequest.getSession()
Modifier and TypeMethodDescriptionRepositoryFactory.aggregate
(Session session, List<RemoteRepository> dominant, List<RemoteRepository> recessive, boolean processRecessive) default void
ProjectManager.attachArtifact
(Session session, Project project, String type, Path path) default void
ProjectManager.attachArtifact
(Session session, Project project, Path 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 ArtifactDeployerRequest
ArtifactDeployerRequest.build
(Session session, RemoteRepository repository, Collection<Artifact> artifacts) static ArtifactFactoryRequest
ArtifactFactoryRequest.build
(Session session, String groupId, String artifactId, String version, String extension) static ArtifactFactoryRequest
ArtifactFactoryRequest.build
(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type) static ArtifactInstallerRequest
ArtifactInstallerRequest.build
(Session session, Collection<Artifact> artifacts) static ArtifactResolverRequest
ArtifactResolverRequest.build
(Session session, Collection<? extends ArtifactCoordinates> coordinates) static ArtifactResolverRequest
ArtifactResolverRequest.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 DependencyResolverRequest
DependencyResolverRequest.build
(Session session, DependencyResolverRequest.RequestType requestType, List<DependencyCoordinates> dependencies) static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, DependencyResolverRequest.RequestType requestType, List<DependencyCoordinates> dependencies, PathScope scope) static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, DependencyResolverRequest.RequestType requestType, Artifact rootArtifact) static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, DependencyResolverRequest.RequestType requestType, Artifact rootArtifact, PathScope scope) static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, DependencyResolverRequest.RequestType requestType, DependencyCoordinates dependency) static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, DependencyResolverRequest.RequestType requestType, DependencyCoordinates dependency, PathScope scope) static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, DependencyResolverRequest.RequestType requestType, Project project) static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, DependencyResolverRequest.RequestType requestType, Project project, PathScope scope) static ModelBuilderRequest
static ModelBuilderRequest
ModelBuilderRequest.build
(Session session, ModelSource source) default ProjectBuilderResult
Creates aProject
from a POM file.default ProjectBuilderResult
Creates aProject
from a POM file.static ProjectBuilderRequest
static ProjectBuilderRequest
default SettingsBuilderResult
Builds the effective settings of the specified settings paths.default SettingsBuilderResult
SettingsBuilder.build
(Session session, Path installationSettingsPath, Path projectSettingsPath, Path userSettingsPath) Builds the effective settings of the specified settings paths.default SettingsBuilderResult
SettingsBuilder.build
(Session session, Source installationSettingsSource, Source userSettingsSource) Builds the effective settings of the specified settings sources.default SettingsBuilderResult
SettingsBuilder.build
(Session session, Source installationSettingsSource, Source projectSettingsSource, Source userSettingsSource) Builds the effective settings of the specified settings sources.static SettingsBuilderRequest
static SettingsBuilderRequest
SettingsBuilderRequest.build
(Session session, Path installationSettingsPath, Path projectSettingsPath, Path userSettingsPath) static SettingsBuilderRequest
SettingsBuilderRequest.build
(Session session, Source installationSettingsSource, Source userSettingsSource) static SettingsBuilderRequest
SettingsBuilderRequest.build
(Session session, Source installationSettingsSource, Source projectSettingsSource, Source userSettingsSource) default ToolchainsBuilderResult
ToolchainsBuilder.build
(Session session, Source installationToolchainsFile, Source userToolchainsSource) Builds the effective toolchains for the specified toolchains sources.static ToolchainsBuilderRequest
ToolchainsBuilderRequest.build
(Session session, Path installationToolchainsFile, Path userToolchainsPath) static ToolchainsBuilderRequest
ToolchainsBuilderRequest.build
(Session session, Source installationToolchainsFile, Source userToolchainsSource) static VersionRangeResolverRequest
VersionRangeResolverRequest.build
(Session session, ArtifactCoordinates artifactCoordinates) static VersionRangeResolverRequest
VersionRangeResolverRequest.build
(Session session, ArtifactCoordinates artifactCoordinates, List<RemoteRepository> repositories) static VersionResolverRequest
VersionResolverRequest.build
(Session session, ArtifactCoordinates artifactCoordinates) static VersionResolverRequest
VersionResolverRequest.build
(Session session, ArtifactCoordinates artifactCoordinates, List<RemoteRepository> repositories) default DependencyResolverResult
Collects the transitive dependencies of some artifacts and builds a dependency graph for the given path scope.default DependencyResolverResult
DependencyResolver.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 DependencyResolverResult
Collects the transitive dependencies of some artifacts and builds a dependency graph for the given path scope.default ArtifactCoordinates
Creates coordinates out of string that is formatted like:<groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>
default ArtifactCoordinates
ArtifactCoordinatesFactory.create
(Session session, String groupId, String artifactId, String version, String extension) default ArtifactCoordinates
ArtifactCoordinatesFactory.create
(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type) default ArtifactCoordinates
default Artifact
ArtifactFactory.create
(Session session, String groupId, String artifactId, String version, String extension) default Artifact
ArtifactFactory.create
(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type) default DependencyCoordinates
DependencyCoordinatesFactory.create
(Session session, ArtifactCoordinates coordinates) default DependencyCoordinates
DependencyCoordinatesFactory.create
(Session session, Dependency dependency) default DependencyCoordinates
DependencyCoordinatesFactory.create
(Session session, Dependency dependency) default DependencyCoordinates
default DependencyCoordinates
DependencyCoordinatesFactory.create
(Session session, ReportPlugin reportPlugin) default ProducedArtifact
ArtifactFactory.createProduced
(Session session, String groupId, String artifactId, String version, String extension) default ProducedArtifact
ArtifactFactory.createProduced
(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type) default void
ArtifactDeployer.deploy
(Session session, RemoteRepository repository, Collection<Artifact> artifacts) Flattens a list of nodes.default DependencyResolverResult
LocalRepositoryManager.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) ToolchainManager.getToolchainsForType
(Session session, String type) default void
ArtifactInstaller.install
(Session session, Collection<Artifact> artifacts) default void
default ArtifactResolverResult
ArtifactResolver.resolve
(Session session, Collection<? extends ArtifactCoordinates> coordinates) Resolves several artifacts from their coordinates.default ArtifactResolverResult
ArtifactResolver.resolve
(Session session, Collection<? extends ArtifactCoordinates> coordinates, List<RemoteRepository> repositories) Resolves several artifacts from their coordinates.default DependencyResolverResult
DependencyResolver.resolve
(Session session, List<DependencyCoordinates> dependencies) default DependencyResolverResult
DependencyResolver.resolve
(Session session, List<DependencyCoordinates> dependencies, PathScope scope) default DependencyResolverResult
DependencyResolver.resolve
(Session session, DependencyCoordinates dependency) default DependencyResolverResult
DependencyResolver.resolve
(Session session, DependencyCoordinates dependency, PathScope scope) default DependencyResolverResult
default DependencyResolverResult
default VersionRangeResolverResult
VersionRangeResolver.resolve
(Session session, ArtifactCoordinates artifactCoordinates) Expands a version range to a list of matching versions, in ascending order.default VersionRangeResolverResult
VersionRangeResolver.resolve
(Session session, ArtifactCoordinates artifactCoordinates, List<RemoteRepository> repositories) Expands a version range to a list of matching versions, in ascending order.default VersionResolverResult
VersionResolver.resolve
(Session session, ArtifactCoordinates artifactCoordinates) Resolves an artifact's meta version (if any) to a concrete version.DependencyCoordinatesFactoryRequest.DependencyCoordinatesFactoryRequestBuilder.session
(Session session) void
ToolchainManager.storeToolchainToBuildContext
(Session session, Toolchain toolchain) TransportProvider.transport
(Session session, RemoteRepository repository) Provides newTransport
instance for givenRemoteRepository
, if possible. -
Uses of Session in org.apache.maven.api.services.model
Modifier and TypeMethodDescriptionModelResolver.resolveModel
(Session session, List<RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier, Consumer<String> resolvedVersion) default ModelSource
ModelResolver.resolveModel
(Session session, List<RemoteRepository> repositories, Dependency dependency, AtomicReference<Dependency> modified) Tries to resolve the POM for the specified dependency coordinates possibly updatingdependency
.default ModelSource
ModelResolver.resolveModel
(Session session, List<RemoteRepository> repositories, Parent parent, AtomicReference<Parent> modified) Tries to resolve the POM for the specified parent coordinates possibly updatingparent
. -
Uses of Session in org.apache.maven.cling.invoker
-
Uses of Session in org.apache.maven.cling.invoker.mvn
Modifier and TypeMethodDescriptionstatic Session
ProtoSession.create()
static Session
Create a new session.protected Session
ProtoSession.newSession
(org.eclipse.aether.RepositorySystemSession session, List<RemoteRepository> repositories) -
Uses of Session in org.apache.maven.execution
-
Uses of Session in org.apache.maven.internal.impl
Modifier and TypeMethodDescriptionDefaultEvent.getSession()
protected abstract Session
AbstractSession.newSession
(org.eclipse.aether.RepositorySystemSession session, List<RemoteRepository> repositories) protected Session
DefaultSession.newSession
(MavenSession mavenSession, List<RemoteRepository> repositories) protected Session
DefaultSession.newSession
(org.eclipse.aether.RepositorySystemSession repoSession, List<RemoteRepository> repositories) AbstractSession.withLocalRepository
(LocalRepository localRepository) AbstractSession.withRemoteRepositories
(List<RemoteRepository> repositories) Modifier and TypeMethodDescriptionDefaultRepositoryFactory.aggregate
(Session session, List<RemoteRepository> dominant, List<RemoteRepository> recessive, boolean processRecessive) static void
static InternalMavenSession
static InternalSession
DefaultLocalRepositoryManager.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.getToolchainsForType
(Session session, String type) void
DefaultToolchainManager.storeToolchainToBuildContext
(Session session, Toolchain toolchain) DefaultTransportProvider.transport
(Session session, RemoteRepository repository) -
Uses of Session in org.apache.maven.internal.impl.resolver
Modifier and TypeMethodDescriptionprotected Path
DefaultModelResolver.getPath
(Session session, List<RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier) DefaultModelResolver.resolveModel
(Session session, List<RemoteRepository> repositories, String groupId, String artifactId, String version, String type, String classifier, InputLocation location, Consumer<String> resolvedVersion) DefaultModelResolver.resolveModel
(Session session, List<RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier, Consumer<String> resolvedVersion) 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.plugin
ModifierConstructorDescriptionPluginParameterExpressionEvaluatorV4
(Session session, Project project) PluginParameterExpressionEvaluatorV4
(Session session, Project project, MojoExecution mojoExecution)