Uses of Interface
org.apache.maven.api.Session
Package
Description
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.buildConsumer
(Session session) Check if the build/consumer POM feature is active. -
Uses of Session in org.apache.maven.api.services
Modifier and TypeMethodDescriptionArtifactCoordinateFactoryRequest.getSession()
ArtifactDeployerRequest.getSession()
ArtifactFactoryRequest.getSession()
ArtifactInstallerRequest.getSession()
ArtifactResolverRequest.getSession()
DependencyCollectorRequest.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) ArtifactCoordinateFactoryRequest.build
(Session session, String groupId, String artifactId, String version, String extension) ArtifactCoordinateFactoryRequest.build
(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type) ArtifactCoordinateFactoryRequest.build
(Session session, ArtifactCoordinate coordinate) 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 ArtifactCoordinate> coordinates) static DependencyCollectorRequest
static DependencyCollectorRequest
DependencyCollectorRequest.build
(Session session, DependencyCoordinate root) static DependencyCollectorRequest
DependencyCoordinateFactoryRequest.build
(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type) DependencyCoordinateFactoryRequest.build
(Session session, ArtifactCoordinate coordinate) DependencyCoordinateFactoryRequest.build
(Session session, Dependency dependency) static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, List<DependencyCoordinate> dependencies) static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, List<DependencyCoordinate> dependencies, PathScope scope) static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, DependencyCoordinate dependency) static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, DependencyCoordinate dependency, PathScope scope) static DependencyResolverRequest
static DependencyResolverRequest
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 globalSettingsPath, Path projectSettingsPath, Path userSettingsPath) Builds the effective settings of the specified settings paths.default SettingsBuilderResult
Builds the effective settings of the specified settings sources.default SettingsBuilderResult
SettingsBuilder.build
(Session session, Source globalSettingsSource, Source projectSettingsSource, Source userSettingsSource) Builds the effective settings of the specified settings sources.static SettingsBuilderRequest
static SettingsBuilderRequest
SettingsBuilderRequest.build
(Session session, Path globalSettingsPath, Path projectSettingsPath, Path userSettingsPath) static SettingsBuilderRequest
SettingsBuilderRequest.build
(Session session, Source globalSettingsSource, Source userSettingsSource) static SettingsBuilderRequest
SettingsBuilderRequest.build
(Session session, Source globalSettingsSource, Source projectSettingsSource, Source userSettingsSource) default ToolchainsBuilderResult
ToolchainsBuilder.build
(Session session, Source globalToolchainsSource, Source userToolchainsSource) Builds the effective toolchains for the specified toolchains sources.static ToolchainsBuilderRequest
static ToolchainsBuilderRequest
ToolchainsBuilderRequest.build
(Session session, Source globalToolchainsSource, Source userToolchainsSource) static VersionRangeResolverRequest
VersionRangeResolverRequest.build
(Session session, ArtifactCoordinate artifactCoordinate) static VersionResolverRequest
VersionResolverRequest.build
(Session session, ArtifactCoordinate artifactCoordinate) default DependencyCollectorResult
Collects the transitive dependencies of some artifacts and builds a dependency graph.default DependencyCollectorResult
DependencyCollector.collect
(Session session, DependencyCoordinate root) Collects the transitive dependencies of some artifacts and builds a dependency graph.default DependencyCollectorResult
Collects the transitive dependencies of some artifacts and builds a dependency graph.default ArtifactCoordinate
Creates a coordinate out of string that is formatted like:<groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>
default ArtifactCoordinate
ArtifactCoordinateFactory.create
(Session session, String groupId, String artifactId, String version, String extension) default ArtifactCoordinate
ArtifactCoordinateFactory.create
(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type) default ArtifactCoordinate
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 DependencyCoordinate
DependencyCoordinateFactory.create
(Session session, ArtifactCoordinate coordinate) default DependencyCoordinate
DependencyCoordinateFactory.create
(Session session, Dependency dependency) default DependencyCoordinate
DependencyCoordinateFactory.create
(Session session, Dependency dependency) default DependencyCoordinate
default DependencyCoordinate
DependencyCoordinateFactory.create
(Session session, ReportPlugin reportPlugin) default void
ArtifactDeployer.deploy
(Session session, RemoteRepository repository, Collection<Artifact> artifacts) 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 ArtifactCoordinate> coordinates) default DependencyResolverResult
DependencyResolver.resolve
(Session session, List<DependencyCoordinate> dependencies) default DependencyResolverResult
DependencyResolver.resolve
(Session session, List<DependencyCoordinate> dependencies, PathScope scope) default DependencyResolverResult
DependencyResolver.resolve
(Session session, DependencyCoordinate dependency) default DependencyResolverResult
DependencyResolver.resolve
(Session session, DependencyCoordinate dependency, PathScope scope) default DependencyResolverResult
default DependencyResolverResult
default VersionRangeResolverResult
VersionRangeResolver.resolve
(Session session, ArtifactCoordinate artifactCoordinate) Expands a version range to a list of matching versions, in ascending order.default VersionResolverResult
VersionResolver.resolve
(Session session, ArtifactCoordinate artifactCoordinate) Resolves an artifact's meta version (if any) to a concrete version.ModelResolver.resolveModel
(Session session, String groupId, String artifactId, String version, Consumer<String> resolvedVersion) default ModelSource
ModelResolver.resolveModel
(Session session, Dependency dependency, AtomicReference<Dependency> modified) Tries to resolve the POM for the specified dependency coordinates possibly updatingdependency
.default ModelSource
ModelResolver.resolveModel
(Session session, Parent parent, AtomicReference<Parent> modified) Tries to resolve the POM for the specified parent coordinates possibly updatingparent
.DependencyCoordinateFactoryRequest.DependencyCoordinateFactoryRequestBuilder.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.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 TypeMethodDescriptionDefaultModelResolver.resolveModel
(Session session, String groupId, String artifactId, String version, Consumer<String> resolvedVersion) ModifierConstructorDescriptionDefaultModelRepositoryHolder
(Session session, DefaultModelRepositoryHolder.RepositoryMerging repositoryMerging, List<RemoteRepository> externalRepositories) -
Uses of Session in org.apache.maven.plugin
ModifierConstructorDescriptionPluginParameterExpressionEvaluatorV4
(Session session, Project project) PluginParameterExpressionEvaluatorV4
(Session session, Project project, MojoExecution mojoExecution) -
Uses of Session in org.apache.maven.project
Modifier and TypeMethodDescriptionDefaultProjectBuilder.ModelResolverWrapper.resolveModel
(Session session, String groupId, String artifactId, String version, Consumer<String> resolved) DefaultProjectBuilder.ModelResolverWrapper.resolveModel
(Session session, Dependency dependency, AtomicReference<Dependency> modified) DefaultProjectBuilder.ModelResolverWrapper.resolveModel
(Session session, Parent parent, AtomicReference<Parent> modified)