Uses of Interface
org.apache.maven.api.Session
Package
Description
-
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()
ProjectBuilderRequest.getSession()
SettingsBuilderRequest.getSession()
ToolchainsBuilderRequest.getSession()
VersionRangeResolverRequest.getSession()
VersionResolverRequest.getSession()
Modifier and TypeMethodDescriptiondefault 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, ResolutionScope scope) static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, DependencyCoordinate dependency) static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, DependencyCoordinate dependency, ResolutionScope scope) static DependencyResolverRequest
static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, Project project, ResolutionScope scope) default ProjectBuilderResult
Creates aProject
from a POM file.default ProjectBuilderResult
Creates aProject
from an artifact.default ProjectBuilderResult
ProjectBuilder.build
(Session session, ArtifactCoordinate coordinate) Creates aProject
from a coordinate.default ProjectBuilderResult
Creates aProject
from a POM file.static ProjectBuilderRequest
static ProjectBuilderRequest
static ProjectBuilderRequest
ProjectBuilderRequest.build
(Session session, ArtifactCoordinate coordinate) 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) DependencyResolver.flatten
(Session session, Node node, ResolutionScope scope) 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, ResolutionScope scope) default DependencyResolverResult
DependencyResolver.resolve
(Session session, DependencyCoordinate dependency) default DependencyResolverResult
DependencyResolver.resolve
(Session session, DependencyCoordinate dependency, ResolutionScope scope) default DependencyResolverResult
default DependencyResolverResult
DependencyResolver.resolve
(Session session, Project project, ResolutionScope scope) 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.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()
DefaultSessionFactory.getSession
(MavenSession mavenSession) DefaultSession.withLocalRepository
(LocalRepository localRepository) DefaultSession.withRemoteRepositories
(List<RemoteRepository> repositories) Modifier and TypeMethodDescriptionDefaultDependencyResolver.flatten
(Session s, Node node, ResolutionScope scope) 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.plugin
ModifierConstructorDescriptionPluginParameterExpressionEvaluatorV4
(Session session, Project project) PluginParameterExpressionEvaluatorV4
(Session session, Project project, MojoExecution mojoExecution)