Package org.apache.maven.internal.impl
Class AbstractSession
java.lang.Object
org.apache.maven.internal.impl.AbstractSession
- All Implemented Interfaces:
- Session,- InternalSession
- Direct Known Subclasses:
- DefaultSession
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Lookupprotected final List<RemoteRepository> protected final org.eclipse.aether.RepositorySystemprotected final org.eclipse.aether.RepositorySystemSession
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractSession(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.RepositorySystem repositorySystem, List<RemoteRepository> repositories, List<org.eclipse.aether.repository.RemoteRepository> resolverRepositories, Lookup lookup) 
- 
Method SummaryModifier and TypeMethodDescriptioncollectDependencies(Artifact artifact) Shortcut forgetService(DependencyResolver.class).collect(...)collectDependencies(DependencyCoordinates dependency) Shortcut forgetService(DependencyResolver.class).collect(...)collectDependencies(Project project) Shortcut forgetService(DependencyResolver.class).collect(...)createArtifact(String groupId, String artifactId, String version, String extension) Shortcut forgetService(ArtifactFactory.class).create(...)createArtifact(String groupId, String artifactId, String version, String classifier, String extension, String type) Shortcut forgetService(ArtifactFactory.class).create(...)createArtifactCoordinates(String coordString) Shortcut forgetService(ArtifactCoordinatesFactory.class).create(...)createArtifactCoordinates(String groupId, String artifactId, String version, String extension) Shortcut forgetService(ArtifactCoordinatesFactory.class).create(...)createArtifactCoordinates(String groupId, String artifactId, String version, String classifier, String extension, String type) Shortcut forgetService(ArtifactCoordinatesFactory.class).create(...)createArtifactCoordinates(Artifact artifact) Shortcut forgetService(ArtifactCoordinatesFactory.class).create(...)createDependencyCoordinates(ArtifactCoordinates coordinates) Shortcut forgetService(DependencyFactory.class).create(...)createDependencyCoordinates(Dependency dependency) Shortcut forgetService(DependencyFactory.class).create(...)createLocalRepository(Path path) Shortcut forgetService(RepositoryFactory.class).createLocal(...)createProducedArtifact(String groupId, String artifactId, String version, String extension) Shortcut forgetService(ArtifactFactory.class).createProduced(...)createProducedArtifact(String groupId, String artifactId, String version, String classifier, String extension, String type) Shortcut forgetService(ArtifactFactory.class).createProduced(...)createRemoteRepository(String id, String url) Shortcut forgetService(RepositoryFactory.class).createRemote(...)createRemoteRepository(Repository repository) Shortcut forgetService(RepositoryFactory.class).createRemote(...)voiddeployArtifact(RemoteRepository repository, Artifact... artifacts) Shortcut forgetService(ArtifactDeployer.class).deploy(...)flattenDependencies(Node node, PathScope scope) Shortcut forgetService(DependencyResolver.class).flatten(...).<T extends Artifact>
 TgetArtifact(Class<T> clazz, org.eclipse.aether.artifact.Artifact artifact) getArtifact(org.eclipse.aether.artifact.Artifact artifact) getArtifactPath(Artifact artifact) Shortcut forgetService(ArtifactManager.class).getPath(...)getData()Retrieves the session data associated with this session.getDependency(org.eclipse.aether.graph.Dependency dependency) Returns the list of registered listeners.Retrieves the local repository associated with this session.getNode(org.eclipse.aether.graph.DependencyNode node) getNode(org.eclipse.aether.graph.DependencyNode node, boolean verbose) getPathForLocalArtifact(Artifact artifact) Gets the relative path for a locally installed artifact.getPathForRemoteArtifact(RemoteRepository remote, Artifact artifact) Gets the relative path for an artifact cached from a remote repository.Retrieves a list of remote repositories associated with this session.getRemoteRepository(org.eclipse.aether.repository.RemoteRepository repository) org.eclipse.aether.RepositorySystem<T extends Service>
 TgetService(Class<T> clazz) Retrieves the service for the interfaceorg.eclipse.aether.RepositorySystemSessionvoidinstallArtifacts(Collection<Artifact> artifacts) Shortcut forgetService(ArtifactInstaller.class).install(...)voidinstallArtifacts(Artifact... artifacts) Shortcut forgetService(ArtifactInstaller.class).install(...)booleanisVersionSnapshot(String version) Shortcut forgetService(VersionParser.class).isSnapshot(...)protected abstract SessionnewSession(org.eclipse.aether.RepositorySystemSession session, List<RemoteRepository> repositories) parseVersion(String version) Parses the specified version string, for example "1.0".parseVersionConstraint(String versionConstraint) Parses the specified version constraint specification, for example "1.0" or "[1.0,2.0)".parseVersionRange(String versionRange) Parses the specified version range specification, for example "[1.0,2.0)".voidregisterListener(Listener listener) Register the given listener which will receive all events.Obtain theDependencyScopefrom the specifiedid.Obtain theLanguagefrom the specifiedid.Obtain thePackagingfrom the specifiedid.Obtain thePathScopefrom the specifiedid.Obtain theProjectScopefrom the specifiedid.requireType(String id) Obtain theTypefrom the specifiedid.resolveArtifact(Artifact artifact) Shortcut forgetService(ArtifactResolver.class).resolve(...)resolveArtifact(ArtifactCoordinates coordinates) Shortcut forgetService(ArtifactResolver.class).resolve(...)resolveArtifacts(Collection<? extends ArtifactCoordinates> coordinates) Shortcut forgetService(ArtifactResolver.class).resolve(...)resolveArtifacts(Artifact... artifacts) Shortcut forgetService(ArtifactResolver.class).resolve(...).resolveArtifacts(ArtifactCoordinates... coordinates) Shortcut forgetService(ArtifactResolver.class).resolve(...)resolveDependencies(List<DependencyCoordinates> dependencies) Shortcut forgetService(DependencyResolver.class).resolve(...).getPaths().resolveDependencies(DependencyCoordinates dependency) Shortcut forgetService(DependencyResolver.class).resolve(...).getPaths().resolveDependencies(DependencyCoordinates dependency, PathScope scope, Collection<PathType> desiredTypes) Shortcut forgetService(DependencyResolver.class).resolve(...).getDispatchedPaths().resolveDependencies(Project project, PathScope scope) Shortcut forgetService(DependencyResolver.class).resolve(...).getPaths().resolveDependencies(Project project, PathScope scope, Collection<PathType> desiredTypes) Shortcut forgetService(DependencyResolver.class).resolve(...).getDispatchedPaths().resolveVersion(ArtifactCoordinates artifact) Resolves an artifact's meta version (if any) to a concrete version.resolveVersionRange(ArtifactCoordinates artifact) Expands a version range to a list of matching versions, in ascending order.voidsetArtifactPath(ProducedArtifact artifact, Path path) Shortcut forgetService(ArtifactManager.class).setPath(...)org.eclipse.aether.artifact.ArtifacttoArtifact(Artifact artifact) org.eclipse.aether.artifact.ArtifacttoArtifact(ArtifactCoordinates coords) List<org.eclipse.aether.artifact.Artifact> toArtifacts(Collection<Artifact> artifacts) List<org.eclipse.aether.graph.Dependency> toDependencies(Collection<DependencyCoordinates> dependencies, boolean managed) org.eclipse.aether.graph.DependencytoDependency(DependencyCoordinates dependency, boolean managed) List<org.eclipse.aether.repository.RemoteRepository> toRepositories(List<RemoteRepository> repositories) org.eclipse.aether.repository.LocalRepositorytoRepository(LocalRepository repository) org.eclipse.aether.repository.RemoteRepositorytoRepository(RemoteRepository repository) voidunregisterListener(Listener listener) Unregisters a previously registered listener.withLocalRepository(LocalRepository localRepository) Creates a derived session using the given local repository.withRemoteRepositories(List<RemoteRepository> repositories) Creates a derived session using the given remote repositories.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.SessiongetDegreeOfConcurrency, getEffectiveProperties, getMavenVersion, getPluginContext, getProjects, getRootDirectory, getSettings, getStartTime, getSystemProperties, getTopDirectory, getUserProperties
- 
Field Details- 
sessionprotected final org.eclipse.aether.RepositorySystemSession session
- 
repositorySystemprotected final org.eclipse.aether.RepositorySystem repositorySystem
- 
repositories
- 
lookup
 
- 
- 
Constructor Details- 
AbstractSessionpublic AbstractSession(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.RepositorySystem repositorySystem, List<RemoteRepository> repositories, List<org.eclipse.aether.repository.RemoteRepository> resolverRepositories, Lookup lookup) 
 
- 
- 
Method Details- 
getRemoteRepositorypublic RemoteRepository getRemoteRepository(org.eclipse.aether.repository.RemoteRepository repository) - Specified by:
- getRemoteRepositoryin interface- InternalSession
 
- 
getNode- Specified by:
- getNodein interface- InternalSession
 
- 
getNode- Specified by:
- getNodein interface- InternalSession
 
- 
getArtifact- Specified by:
- getArtifactin interface- InternalSession
 
- 
getArtifactpublic <T extends Artifact> T getArtifact(Class<T> clazz, org.eclipse.aether.artifact.Artifact artifact) - Specified by:
- getArtifactin interface- InternalSession
 
- 
getDependency- Specified by:
- getDependencyin interface- InternalSession
 
- 
toRepositoriespublic List<org.eclipse.aether.repository.RemoteRepository> toRepositories(List<RemoteRepository> repositories) - Specified by:
- toRepositoriesin interface- InternalSession
 
- 
toRepository- Specified by:
- toRepositoryin interface- InternalSession
 
- 
toRepository- Specified by:
- toRepositoryin interface- InternalSession
 
- 
toDependenciespublic List<org.eclipse.aether.graph.Dependency> toDependencies(Collection<DependencyCoordinates> dependencies, boolean managed) - Specified by:
- toDependenciesin interface- InternalSession
 
- 
getRemoteRepositoriesDescription copied from interface:SessionRetrieves a list of remote repositories associated with this session.- Specified by:
- getRemoteRepositoriesin interface- Session
- Returns:
- a list of remote repositories
 
- 
getDataDescription copied from interface:SessionRetrieves the session data associated with this session.
- 
getLocalRepositoryDescription copied from interface:SessionRetrieves the local repository associated with this session.- Specified by:
- getLocalRepositoryin interface- Session
- Returns:
- the local repository instance
 
- 
withLocalRepositoryDescription copied from interface:SessionCreates a derived session using the given local repository.- Specified by:
- withLocalRepositoryin interface- Session
- Parameters:
- localRepository- the new local repository
- Returns:
- the derived session
 
- 
withRemoteRepositoriesDescription copied from interface:SessionCreates a derived session using the given remote repositories.- Specified by:
- withRemoteRepositoriesin interface- Session
- Parameters:
- repositories- the new list of remote repositories
- Returns:
- the derived session
 
- 
newSessionprotected abstract Session newSession(org.eclipse.aether.RepositorySystemSession session, List<RemoteRepository> repositories) 
- 
getServiceDescription copied from interface:SessionRetrieves the service for the interface- Specified by:
- getServicein interface- Session
- Throws:
- NoSuchElementException- if the service could not be found
 
- 
getSession- Specified by:
- getSessionin interface- InternalSession
 
- 
getRepositorySystem- Specified by:
- getRepositorySystemin interface- InternalSession
 
- 
toDependencypublic org.eclipse.aether.graph.Dependency toDependency(DependencyCoordinates dependency, boolean managed) - Specified by:
- toDependencyin interface- InternalSession
 
- 
toArtifacts- Specified by:
- toArtifactsin interface- InternalSession
 
- 
toArtifact- Specified by:
- toArtifactin interface- InternalSession
 
- 
toArtifact- Specified by:
- toArtifactin interface- InternalSession
 
- 
registerListenerDescription copied from interface:SessionRegister the given listener which will receive all events.- Specified by:
- registerListenerin interface- Session
- Parameters:
- listener- the listener to register
 
- 
unregisterListenerDescription copied from interface:SessionUnregisters a previously registered listener.- Specified by:
- unregisterListenerin interface- Session
- Parameters:
- listener- the listener to unregister
 
- 
getListenersDescription copied from interface:SessionReturns the list of registered listeners.- Specified by:
- getListenersin interface- Session
- Returns:
- an immutable collection of listeners, never null
 
- 
createLocalRepositoryShortcut forgetService(RepositoryFactory.class).createLocal(...)- Specified by:
- createLocalRepositoryin interface- Session
- Parameters:
- path- location of the local repository to create
- Returns:
- cache of artifacts downloaded from a remote repository or built locally
- See Also:
 
- 
createRemoteRepositoryShortcut forgetService(RepositoryFactory.class).createRemote(...)- Specified by:
- createRemoteRepositoryin interface- Session
- Parameters:
- id- identifier of the remote repository to create
- url- location of the remote repository
- Returns:
- remote repository that can be used to download or upload artifacts
- See Also:
 
- 
createRemoteRepositoryShortcut forgetService(RepositoryFactory.class).createRemote(...)- Specified by:
- createRemoteRepositoryin interface- Session
- Parameters:
- repository- information needed for establishing connections with remote repository
- Returns:
- remote repository that can be used to download or upload artifacts
- See Also:
 
- 
createArtifactCoordinatespublic ArtifactCoordinates createArtifactCoordinates(String groupId, String artifactId, String version, String extension) Shortcut forgetService(ArtifactCoordinatesFactory.class).create(...)- Specified by:
- createArtifactCoordinatesin interface- Session
- Parameters:
- groupId- the group identifier, or- nullis unspecified
- artifactId- the artifact identifier, or- nullis unspecified
- version- the artifact version, or- nullis unspecified
- extension- the artifact extension, or- nullis unspecified
- Returns:
- coordinates used to point to the artifact
- See Also:
 
- 
createArtifactCoordinatesShortcut forgetService(ArtifactCoordinatesFactory.class).create(...)- Specified by:
- createArtifactCoordinatesin interface- Session
- Parameters:
- coordString- the string having "standard" coordinates.
- Returns:
- coordinates used to point to the artifact
- See Also:
 
- 
createArtifactCoordinatespublic ArtifactCoordinates createArtifactCoordinates(String groupId, String artifactId, String version, String classifier, String extension, String type) Shortcut forgetService(ArtifactCoordinatesFactory.class).create(...)- Specified by:
- createArtifactCoordinatesin interface- Session
- Parameters:
- groupId- the group identifier, or- nullis unspecified
- artifactId- the artifact identifier, or- nullis unspecified
- version- the artifact version, or- nullis unspecified
- classifier- the artifact classifier, or- nullis unspecified
- extension- the artifact extension, or- nullis unspecified
- type- the artifact type, or- nullis unspecified
- Returns:
- coordinates used to point to the artifact
- See Also:
 
- 
createArtifactCoordinatesShortcut forgetService(ArtifactCoordinatesFactory.class).create(...)- Specified by:
- createArtifactCoordinatesin interface- Session
- Parameters:
- artifact- artifact from which to get coordinates
- Returns:
- coordinates used to point to the artifact
- See Also:
 
- 
createArtifactShortcut forgetService(ArtifactFactory.class).create(...)- Specified by:
- createArtifactin interface- Session
- Parameters:
- groupId- the group identifier, or- nullis unspecified
- artifactId- the artifact identifier, or- nullis unspecified
- version- the artifact version, or- nullis unspecified
- extension- the artifact extension, or- nullis unspecified
- Returns:
- artifact with the given coordinates
- See Also:
 
- 
createArtifactpublic Artifact createArtifact(String groupId, String artifactId, String version, String classifier, String extension, String type) Shortcut forgetService(ArtifactFactory.class).create(...)- Specified by:
- createArtifactin interface- Session
- Parameters:
- groupId- the group identifier, or- nullis unspecified
- artifactId- the artifact identifier, or- nullis unspecified
- version- the artifact version, or- nullis unspecified
- classifier- the artifact classifier, or- nullis unspecified
- extension- the artifact extension, or- nullis unspecified
- type- the artifact type, or- nullis unspecified
- Returns:
- artifact with the given coordinates
- See Also:
 
- 
createProducedArtifactpublic ProducedArtifact createProducedArtifact(String groupId, String artifactId, String version, String extension) Shortcut forgetService(ArtifactFactory.class).createProduced(...)- Specified by:
- createProducedArtifactin interface- Session
- Parameters:
- groupId- the group identifier, or- nullis unspecified
- artifactId- the artifact identifier, or- nullis unspecified
- version- the artifact version, or- nullis unspecified
- extension- the artifact extension, or- nullis unspecified
- Returns:
- artifact with the given coordinates
- See Also:
 
- 
createProducedArtifactpublic ProducedArtifact createProducedArtifact(String groupId, String artifactId, String version, String classifier, String extension, String type) Shortcut forgetService(ArtifactFactory.class).createProduced(...)- Specified by:
- createProducedArtifactin interface- Session
- Parameters:
- groupId- the group identifier, or- nullis unspecified
- artifactId- the artifact identifier, or- nullis unspecified
- version- the artifact version, or- nullis unspecified
- classifier- the artifact classifier, or- nullis unspecified
- extension- the artifact extension, or- nullis unspecified
- type- the artifact type, or- nullis unspecified
- Returns:
- artifact with the given coordinates
- See Also:
 
- 
resolveArtifactShortcut forgetService(ArtifactResolver.class).resolve(...)- Specified by:
- resolveArtifactin interface- Session
- Parameters:
- coordinates- coordinates of the artifact to resolve
- Returns:
- requested artifact together with the path to its file
- Throws:
- ArtifactResolverException- if the artifact resolution failed
- See Also:
 
- 
resolveArtifactsShortcut forgetService(ArtifactResolver.class).resolve(...)- Specified by:
- resolveArtifactsin interface- Session
- Parameters:
- coordinates- coordinates of all artifacts to resolve
- Returns:
- requested artifacts together with the paths to their files
- Throws:
- ArtifactResolverException- if the artifact resolution failed
- See Also:
 
- 
resolveArtifactspublic Collection<DownloadedArtifact> resolveArtifacts(Collection<? extends ArtifactCoordinates> coordinates) Shortcut forgetService(ArtifactResolver.class).resolve(...)- Specified by:
- resolveArtifactsin interface- Session
- Parameters:
- coordinates- coordinates of all artifacts to resolve
- Returns:
- requested artifacts together with the paths to their files
- Throws:
- ArtifactResolverException- if the artifact resolution failed
- See Also:
 
- 
resolveArtifactShortcut forgetService(ArtifactResolver.class).resolve(...)- Specified by:
- resolveArtifactin interface- Session
- Parameters:
- artifact- the artifact to resolve
- Returns:
- requested artifact together with the path to its file
- Throws:
- ArtifactResolverException- if the artifact resolution failed
- See Also:
 
- 
resolveArtifactsDescription copied from interface:SessionShortcut forgetService(ArtifactResolver.class).resolve(...).- Specified by:
- resolveArtifactsin interface- Session
- Parameters:
- artifacts- all artifacts to resolve
- Returns:
- requested artifacts together with the paths to their files
- See Also:
 
- 
installArtifactsShortcut forgetService(ArtifactInstaller.class).install(...)- Specified by:
- installArtifactsin interface- Session
- Parameters:
- artifacts- the artifacts to install
- Throws:
- ArtifactInstallerException- if the artifacts installation failed
- See Also:
 
- 
installArtifactsShortcut forgetService(ArtifactInstaller.class).install(...)- Specified by:
- installArtifactsin interface- Session
- Parameters:
- artifacts- the artifacts to install
- Throws:
- ArtifactInstallerException- if the artifacts installation failed
- See Also:
 
- 
deployArtifactShortcut forgetService(ArtifactDeployer.class).deploy(...)- Specified by:
- deployArtifactin interface- Session
- Parameters:
- repository- the repository where to deploy artifacts
- artifacts- the artifacts to deploy
- Throws:
- ArtifactDeployerException- if the artifacts deployment failed
- See Also:
 
- 
setArtifactPathShortcut forgetService(ArtifactManager.class).setPath(...)- Specified by:
- setArtifactPathin interface- Session
- Parameters:
- artifact- the artifact for which to associate a path
- path- path to associate to the given artifact
- See Also:
 
- 
getArtifactPathShortcut forgetService(ArtifactManager.class).getPath(...)- Specified by:
- getArtifactPathin interface- Session
- Parameters:
- artifact- the artifact for which to get a path
- Returns:
- path associated to the given artifact
- See Also:
 
- 
isVersionSnapshotShortcut forgetService(VersionParser.class).isSnapshot(...)- Specified by:
- isVersionSnapshotin interface- Session
- Parameters:
- version- artifact version
- Returns:
- whether the given version is a snapshot
- See Also:
 
- 
createDependencyCoordinates@Nonnull public DependencyCoordinates createDependencyCoordinates(@Nonnull ArtifactCoordinates coordinates) Shortcut forgetService(DependencyFactory.class).create(...)- Specified by:
- createDependencyCoordinatesin interface- Session
- Parameters:
- coordinates- artifact coordinates to get as a dependency coordinates
- Returns:
- dependency coordinates for the given artifact
- See Also:
 
- 
createDependencyCoordinatesShortcut forgetService(DependencyFactory.class).create(...)- Specified by:
- createDependencyCoordinatesin interface- Session
- Parameters:
- dependency- dependency for which to get the coordinates
- Returns:
- coordinates for the given dependency
- See Also:
 
- 
collectDependenciesShortcut forgetService(DependencyResolver.class).collect(...)- Specified by:
- collectDependenciesin interface- Session
- Parameters:
- artifact- artifact for which to get the dependencies, including transitive ones
- Returns:
- root node of the dependency graph for the given artifact
- Throws:
- DependencyResolverException- if the dependency collection failed
- See Also:
 
- 
collectDependenciesShortcut forgetService(DependencyResolver.class).collect(...)- Specified by:
- collectDependenciesin interface- Session
- Parameters:
- project- project for which to get the dependencies, including transitive ones
- Returns:
- root node of the dependency graph for the given project
- Throws:
- DependencyResolverException- if the dependency collection failed
- See Also:
 
- 
collectDependenciesShortcut forgetService(DependencyResolver.class).collect(...)- Specified by:
- collectDependenciesin interface- Session
- Parameters:
- dependency- dependency for which to get transitive dependencies
- Returns:
- root node of the dependency graph for the given artifact
- Throws:
- DependencyResolverException- if the dependency collection failed
- See Also:
 
- 
flattenDependenciesDescription copied from interface:SessionShortcut forgetService(DependencyResolver.class).flatten(...).- Specified by:
- flattenDependenciesin interface- Session
- Parameters:
- node- node for which to get a flattened list
- scope- build path scope (main compile, test compile, etc.) of desired nodes
- Returns:
- flattened list of node with the given build path scope
- See Also:
 
- 
resolveDependenciesDescription copied from interface:SessionShortcut forgetService(DependencyResolver.class).resolve(...).getPaths().- Specified by:
- resolveDependenciesin interface- Session
- Parameters:
- dependency- coordinates of the dependency for which to get the paths
- Returns:
- paths to the transitive dependencies of the given dependency
- See Also:
 
- 
resolveDependenciesDescription copied from interface:SessionShortcut forgetService(DependencyResolver.class).resolve(...).getPaths().- Specified by:
- resolveDependenciesin interface- Session
- Parameters:
- dependencies- coordinates of all dependency for which to get the paths
- Returns:
- paths to the transitive dependencies of the given dependencies
- See Also:
 
- 
resolveDependenciesDescription copied from interface:SessionShortcut forgetService(DependencyResolver.class).resolve(...).getPaths().- Specified by:
- resolveDependenciesin interface- Session
- Parameters:
- project- the project for which to get dependencies
- scope- build path scope (main compile, test compile, etc.) of desired paths
- Returns:
- paths to the transitive dependencies of the given project
- See Also:
 
- 
resolveDependenciespublic Map<PathType,List<Path>> resolveDependencies(@Nonnull DependencyCoordinates dependency, @Nonnull PathScope scope, @Nonnull Collection<PathType> desiredTypes) Description copied from interface:SessionShortcut forgetService(DependencyResolver.class).resolve(...).getDispatchedPaths().- Specified by:
- resolveDependenciesin interface- Session
- Parameters:
- dependency- coordinates of the dependency for which to get the paths
- scope- build path scope (main compile, test compile, etc.) of desired paths
- desiredTypes- the type of paths to include in the result
- Returns:
- paths to the transitive dependencies of the given project
- See Also:
 
- 
resolveDependenciespublic Map<PathType,List<Path>> resolveDependencies(@Nonnull Project project, @Nonnull PathScope scope, @Nonnull Collection<PathType> desiredTypes) Description copied from interface:SessionShortcut forgetService(DependencyResolver.class).resolve(...).getDispatchedPaths().- Specified by:
- resolveDependenciesin interface- Session
- Parameters:
- project- the project for which to get dependencies
- scope- build path scope (main compile, test compile, etc.) of desired paths
- desiredTypes- the type of paths to include in the result
- Returns:
- paths to the transitive dependencies of the given project
- See Also:
 
- 
getPathForLocalArtifactDescription copied from interface:SessionGets the relative path for a locally installed artifact. Note that the artifact need not actually exist yet at the returned location, the path merely indicates where the artifact would eventually be stored.Shortcut for getService(LocalArtifactManager.class).getPathForLocalArtitact(...).- Specified by:
- getPathForLocalArtifactin interface- Session
- Parameters:
- artifact- the artifact for which to get a local path
- Returns:
- local path associated to the given artifact, or nullif none
- See Also:
 
- 
getPathForRemoteArtifactDescription copied from interface:SessionGets the relative path for an artifact cached from a remote repository. Note that the artifact need not actually exist yet at the returned location, the path merely indicates where the artifact would eventually be stored.Shortcut for getService(LocalArtifactManager.class).getPathForRemoteArtifact(...).- Specified by:
- getPathForRemoteArtifactin interface- Session
- Parameters:
- remote- the repository from where artifacts are downloaded
- artifact- the artifact for which to get a path
- Returns:
- path associated to the given artifact
- See Also:
 
- 
parseVersionDescription copied from interface:SessionParses the specified version string, for example "1.0".Shortcut for getService(VersionParser.class).parseVersion(...).- Specified by:
- parseVersionin interface- Session
- Parameters:
- version- the version string to parse
- Returns:
- the version parsed from the given string
- See Also:
 
- 
parseVersionRangeDescription copied from interface:SessionParses the specified version range specification, for example "[1.0,2.0)".Shortcut for getService(VersionParser.class).parseVersionRange(...).- Specified by:
- parseVersionRangein interface- Session
- Parameters:
- versionRange- the version string to parse
- Returns:
- the version range parsed from the given string
- See Also:
 
- 
parseVersionConstraintDescription copied from interface:SessionParses the specified version constraint specification, for example "1.0" or "[1.0,2.0)".Shortcut for getService(VersionParser.class).parseVersionConstraint(...).- Specified by:
- parseVersionConstraintin interface- Session
- Parameters:
- versionConstraint- the version string to parse
- Returns:
- the version constraint parsed from the given string
- See Also:
 
- 
resolveVersionDescription copied from interface:SessionResolves an artifact's meta version (if any) to a concrete version. For example, resolves "1.0-SNAPSHOT" to "1.0-20090208.132618-23".Shortcut for getService(VersionResolver.class).resolve(...)- Specified by:
- resolveVersionin interface- Session
- Parameters:
- artifact- the artifact for which to resolve the version
- Returns:
- resolved version of the given artifact
- See Also:
 
- 
resolveVersionRangeDescription copied from interface:SessionExpands a version range to a list of matching versions, in ascending order. For example, resolves "[3.8,4.0)" to "3.8", "3.8.1", "3.8.2". The returned list of versions is only dependent on the configured repositories and their contents. The supplied request may also refer to a single concrete version rather than a version range. In this case though, the result contains simply the (parsed) input version, regardless of the repositories and their contents.- Specified by:
- resolveVersionRangein interface- Session
- Parameters:
- artifact- the artifact for which to resolve the versions
- Returns:
- a list of resolved Versions.
- See Also:
 
- 
requireTypeDescription copied from interface:Session- Specified by:
- requireTypein interface- Session
- See Also:
 
- 
requireLanguageDescription copied from interface:SessionObtain theLanguagefrom the specifiedid.Shortcut for getService(LanguageRegistry.class).require(...).- Specified by:
- requireLanguagein interface- Session
- See Also:
 
- 
requirePackagingDescription copied from interface:SessionObtain thePackagingfrom the specifiedid.Shortcut for getService(PackagingRegistry.class).require(...).- Specified by:
- requirePackagingin interface- Session
- See Also:
 
- 
requireProjectScopeDescription copied from interface:SessionObtain theProjectScopefrom the specifiedid.Shortcut for getService(ProjectScopeRegistry.class).require(...).- Specified by:
- requireProjectScopein interface- Session
- See Also:
 
- 
requireDependencyScopeDescription copied from interface:Session- Specified by:
- requireDependencyScopein interface- Session
- See Also:
 
- 
requirePathScopeDescription copied from interface:SessionObtain thePathScopefrom the specifiedid.Shortcut for getService(PathScopeRegistry.class).require(...).- Specified by:
- requirePathScopein interface- Session
- See Also:
 
 
-