Class SessionStub
java.lang.Object
org.apache.maven.api.plugin.testing.stubs.SessionStub
- All Implemented Interfaces:
org.apache.maven.api.Session
-
Constructor Summary
ConstructorDescriptionSessionStub
(Map<String, String> userProperties) SessionStub
(Map<String, String> systemProperties, Map<String, String> userProperties, org.apache.maven.api.settings.Settings settings) SessionStub
(org.apache.maven.api.settings.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.api.Node
collectDependencies
(org.apache.maven.api.Artifact artifact, org.apache.maven.api.PathScope scope) org.apache.maven.api.Node
collectDependencies
(org.apache.maven.api.DependencyCoordinates dependencyCoordinates, org.apache.maven.api.PathScope scope) org.apache.maven.api.Node
collectDependencies
(org.apache.maven.api.Project project, org.apache.maven.api.PathScope scope) org.apache.maven.api.Artifact
createArtifact
(String groupId, String artifactId, String version, String extension) org.apache.maven.api.Artifact
createArtifact
(String groupId, String artifactId, String version, String classifier, String extension, String type) org.apache.maven.api.ArtifactCoordinates
createArtifactCoordinates
(String coordString) org.apache.maven.api.ArtifactCoordinates
createArtifactCoordinates
(String groupId, String artifactId, String version, String extension) org.apache.maven.api.ArtifactCoordinates
createArtifactCoordinates
(String groupId, String artifactId, String version, String classifier, String extension, String type) org.apache.maven.api.ArtifactCoordinates
createArtifactCoordinates
(org.apache.maven.api.Artifact artifact) org.apache.maven.api.DependencyCoordinates
createDependencyCoordinates
(org.apache.maven.api.ArtifactCoordinates artifactCoordinates) org.apache.maven.api.DependencyCoordinates
createDependencyCoordinates
(org.apache.maven.api.Dependency dependency) org.apache.maven.api.LocalRepository
createLocalRepository
(Path path) org.apache.maven.api.ProducedArtifact
createProducedArtifact
(String groupId, String artifactId, String version, String extension) org.apache.maven.api.ProducedArtifact
createProducedArtifact
(String groupId, String artifactId, String version, String classifier, String extension, String type) org.apache.maven.api.RemoteRepository
createRemoteRepository
(String id, String url) org.apache.maven.api.RemoteRepository
createRemoteRepository
(org.apache.maven.api.model.Repository repository) void
deployArtifact
(org.apache.maven.api.RemoteRepository repository, org.apache.maven.api.Artifact... artifacts) List<org.apache.maven.api.Node>
flattenDependencies
(org.apache.maven.api.Node node, org.apache.maven.api.PathScope scope) getArtifactPath
(org.apache.maven.api.Artifact artifact) org.apache.maven.api.SessionData
getData()
int
getEffectiveProperties
(org.apache.maven.api.Project project) Collection<org.apache.maven.api.Listener>
org.apache.maven.api.LocalRepository
org.apache.maven.api.Version
getPathForLocalArtifact
(org.apache.maven.api.Artifact artifact) getPathForRemoteArtifact
(org.apache.maven.api.RemoteRepository remote, org.apache.maven.api.Artifact artifact) getPluginContext
(org.apache.maven.api.Project project) List<org.apache.maven.api.Project>
List<org.apache.maven.api.RemoteRepository>
<T extends org.apache.maven.api.Service>
TgetService
(Class<T> clazz) org.apache.maven.api.settings.Settings
void
installArtifacts
(Collection<org.apache.maven.api.Artifact> artifacts) void
installArtifacts
(org.apache.maven.api.Artifact... artifacts) boolean
isVersionSnapshot
(String version) org.apache.maven.api.Version
parseVersion
(String version) org.apache.maven.api.VersionConstraint
org.apache.maven.api.VersionRange
parseVersionRange
(String versionRange) void
registerListener
(org.apache.maven.api.Listener listener) org.apache.maven.api.DependencyScope
org.apache.maven.api.Language
org.apache.maven.api.Packaging
org.apache.maven.api.PathScope
org.apache.maven.api.ProjectScope
org.apache.maven.api.Type
requireType
(String id) org.apache.maven.api.DownloadedArtifact
resolveArtifact
(org.apache.maven.api.Artifact artifact) org.apache.maven.api.DownloadedArtifact
resolveArtifact
(org.apache.maven.api.ArtifactCoordinates coordinate) org.apache.maven.api.DownloadedArtifact
resolveArtifact
(org.apache.maven.api.ArtifactCoordinates coordinates, List<org.apache.maven.api.RemoteRepository> repositories) org.apache.maven.api.DownloadedArtifact
resolveArtifact
(org.apache.maven.api.Artifact artifact, List<org.apache.maven.api.RemoteRepository> repositories) Collection<org.apache.maven.api.DownloadedArtifact>
resolveArtifacts
(Collection<? extends org.apache.maven.api.ArtifactCoordinates> collection) Collection<org.apache.maven.api.DownloadedArtifact>
resolveArtifacts
(Collection<? extends org.apache.maven.api.ArtifactCoordinates> coordinates, List<org.apache.maven.api.RemoteRepository> repositories) Collection<org.apache.maven.api.DownloadedArtifact>
resolveArtifacts
(org.apache.maven.api.Artifact... artifacts) Collection<org.apache.maven.api.DownloadedArtifact>
resolveArtifacts
(org.apache.maven.api.ArtifactCoordinates... artifactCoordinates) resolveDependencies
(List<org.apache.maven.api.DependencyCoordinates> dependencyCoordinatess) resolveDependencies
(org.apache.maven.api.DependencyCoordinates dependencyCoordinates) resolveDependencies
(org.apache.maven.api.DependencyCoordinates dependencyCoordinates, org.apache.maven.api.PathScope scope, Collection<org.apache.maven.api.PathType> desiredTypes) resolveDependencies
(org.apache.maven.api.Project project, org.apache.maven.api.PathScope scope) resolveDependencies
(org.apache.maven.api.Project project, org.apache.maven.api.PathScope scope, Collection<org.apache.maven.api.PathType> desiredTypes) org.apache.maven.api.Version
resolveVersion
(org.apache.maven.api.ArtifactCoordinates artifact) List<org.apache.maven.api.Version>
resolveVersionRange
(org.apache.maven.api.ArtifactCoordinates artifact) List<org.apache.maven.api.Version>
resolveVersionRange
(org.apache.maven.api.ArtifactCoordinates artifact, List<org.apache.maven.api.RemoteRepository> repositories) void
setArtifactPath
(org.apache.maven.api.ProducedArtifact artifact, Path path) void
unregisterListener
(org.apache.maven.api.Listener listener) org.apache.maven.api.Session
withLocalRepository
(org.apache.maven.api.LocalRepository localRepository) org.apache.maven.api.Session
withRemoteRepositories
(List<org.apache.maven.api.RemoteRepository> repositories)
-
Constructor Details
-
SessionStub
public SessionStub(org.apache.maven.api.settings.Settings settings) -
SessionStub
public SessionStub() -
SessionStub
-
SessionStub
-
-
Method Details
-
getSettings
public org.apache.maven.api.settings.Settings getSettings()- Specified by:
getSettings
in interfaceorg.apache.maven.api.Session
-
getSystemProperties
- Specified by:
getSystemProperties
in interfaceorg.apache.maven.api.Session
-
getUserProperties
- Specified by:
getUserProperties
in interfaceorg.apache.maven.api.Session
-
getEffectiveProperties
@Nonnull public Map<String,String> getEffectiveProperties(@Nullable org.apache.maven.api.Project project) - Specified by:
getEffectiveProperties
in interfaceorg.apache.maven.api.Session
-
getLocalRepository
public org.apache.maven.api.LocalRepository getLocalRepository()- Specified by:
getLocalRepository
in interfaceorg.apache.maven.api.Session
-
getTopDirectory
- Specified by:
getTopDirectory
in interfaceorg.apache.maven.api.Session
-
getRootDirectory
- Specified by:
getRootDirectory
in interfaceorg.apache.maven.api.Session
-
getRemoteRepositories
- Specified by:
getRemoteRepositories
in interfaceorg.apache.maven.api.Session
-
getData
public org.apache.maven.api.SessionData getData()- Specified by:
getData
in interfaceorg.apache.maven.api.Session
-
getMavenVersion
public org.apache.maven.api.Version getMavenVersion()- Specified by:
getMavenVersion
in interfaceorg.apache.maven.api.Session
-
getDegreeOfConcurrency
public int getDegreeOfConcurrency()- Specified by:
getDegreeOfConcurrency
in interfaceorg.apache.maven.api.Session
-
getStartTime
- Specified by:
getStartTime
in interfaceorg.apache.maven.api.Session
-
getProjects
- Specified by:
getProjects
in interfaceorg.apache.maven.api.Session
-
getPluginContext
- Specified by:
getPluginContext
in interfaceorg.apache.maven.api.Session
-
getService
- Specified by:
getService
in interfaceorg.apache.maven.api.Session
-
withLocalRepository
public org.apache.maven.api.Session withLocalRepository(org.apache.maven.api.LocalRepository localRepository) - Specified by:
withLocalRepository
in interfaceorg.apache.maven.api.Session
-
withRemoteRepositories
public org.apache.maven.api.Session withRemoteRepositories(List<org.apache.maven.api.RemoteRepository> repositories) - Specified by:
withRemoteRepositories
in interfaceorg.apache.maven.api.Session
-
registerListener
public void registerListener(org.apache.maven.api.Listener listener) - Specified by:
registerListener
in interfaceorg.apache.maven.api.Session
-
unregisterListener
public void unregisterListener(org.apache.maven.api.Listener listener) - Specified by:
unregisterListener
in interfaceorg.apache.maven.api.Session
-
getListeners
- Specified by:
getListeners
in interfaceorg.apache.maven.api.Session
-
createLocalRepository
- Specified by:
createLocalRepository
in interfaceorg.apache.maven.api.Session
-
createRemoteRepository
- Specified by:
createRemoteRepository
in interfaceorg.apache.maven.api.Session
-
createRemoteRepository
public org.apache.maven.api.RemoteRepository createRemoteRepository(org.apache.maven.api.model.Repository repository) - Specified by:
createRemoteRepository
in interfaceorg.apache.maven.api.Session
-
createArtifact
public org.apache.maven.api.Artifact createArtifact(String groupId, String artifactId, String version, String extension) - Specified by:
createArtifact
in interfaceorg.apache.maven.api.Session
-
createArtifact
public org.apache.maven.api.Artifact createArtifact(String groupId, String artifactId, String version, String classifier, String extension, String type) - Specified by:
createArtifact
in interfaceorg.apache.maven.api.Session
-
createProducedArtifact
public org.apache.maven.api.ProducedArtifact createProducedArtifact(String groupId, String artifactId, String version, String extension) - Specified by:
createProducedArtifact
in interfaceorg.apache.maven.api.Session
-
createProducedArtifact
public org.apache.maven.api.ProducedArtifact createProducedArtifact(String groupId, String artifactId, String version, String classifier, String extension, String type) - Specified by:
createProducedArtifact
in interfaceorg.apache.maven.api.Session
-
createArtifactCoordinates
public org.apache.maven.api.ArtifactCoordinates createArtifactCoordinates(String groupId, String artifactId, String version, String extension) - Specified by:
createArtifactCoordinates
in interfaceorg.apache.maven.api.Session
-
createArtifactCoordinates
- Specified by:
createArtifactCoordinates
in interfaceorg.apache.maven.api.Session
-
createArtifactCoordinates
public org.apache.maven.api.ArtifactCoordinates createArtifactCoordinates(String groupId, String artifactId, String version, String classifier, String extension, String type) - Specified by:
createArtifactCoordinates
in interfaceorg.apache.maven.api.Session
-
createArtifactCoordinates
public org.apache.maven.api.ArtifactCoordinates createArtifactCoordinates(org.apache.maven.api.Artifact artifact) - Specified by:
createArtifactCoordinates
in interfaceorg.apache.maven.api.Session
-
createDependencyCoordinates
public org.apache.maven.api.DependencyCoordinates createDependencyCoordinates(org.apache.maven.api.ArtifactCoordinates artifactCoordinates) - Specified by:
createDependencyCoordinates
in interfaceorg.apache.maven.api.Session
-
createDependencyCoordinates
public org.apache.maven.api.DependencyCoordinates createDependencyCoordinates(org.apache.maven.api.Dependency dependency) - Specified by:
createDependencyCoordinates
in interfaceorg.apache.maven.api.Session
-
resolveArtifact
public org.apache.maven.api.DownloadedArtifact resolveArtifact(org.apache.maven.api.Artifact artifact) - Specified by:
resolveArtifact
in interfaceorg.apache.maven.api.Session
-
resolveArtifact
public org.apache.maven.api.DownloadedArtifact resolveArtifact(org.apache.maven.api.ArtifactCoordinates coordinate) - Specified by:
resolveArtifact
in interfaceorg.apache.maven.api.Session
-
resolveArtifact
public org.apache.maven.api.DownloadedArtifact resolveArtifact(org.apache.maven.api.ArtifactCoordinates coordinates, List<org.apache.maven.api.RemoteRepository> repositories) - Specified by:
resolveArtifact
in interfaceorg.apache.maven.api.Session
-
resolveArtifact
public org.apache.maven.api.DownloadedArtifact resolveArtifact(org.apache.maven.api.Artifact artifact, List<org.apache.maven.api.RemoteRepository> repositories) - Specified by:
resolveArtifact
in interfaceorg.apache.maven.api.Session
-
resolveArtifacts
public Collection<org.apache.maven.api.DownloadedArtifact> resolveArtifacts(org.apache.maven.api.ArtifactCoordinates... artifactCoordinates) - Specified by:
resolveArtifacts
in interfaceorg.apache.maven.api.Session
-
resolveArtifacts
public Collection<org.apache.maven.api.DownloadedArtifact> resolveArtifacts(Collection<? extends org.apache.maven.api.ArtifactCoordinates> collection) - Specified by:
resolveArtifacts
in interfaceorg.apache.maven.api.Session
-
resolveArtifacts
public Collection<org.apache.maven.api.DownloadedArtifact> resolveArtifacts(org.apache.maven.api.Artifact... artifacts) - Specified by:
resolveArtifacts
in interfaceorg.apache.maven.api.Session
-
resolveArtifacts
public Collection<org.apache.maven.api.DownloadedArtifact> resolveArtifacts(Collection<? extends org.apache.maven.api.ArtifactCoordinates> coordinates, List<org.apache.maven.api.RemoteRepository> repositories) - Specified by:
resolveArtifacts
in interfaceorg.apache.maven.api.Session
-
flattenDependencies
public List<org.apache.maven.api.Node> flattenDependencies(org.apache.maven.api.Node node, org.apache.maven.api.PathScope scope) - Specified by:
flattenDependencies
in interfaceorg.apache.maven.api.Session
-
resolveDependencies
public List<Path> resolveDependencies(org.apache.maven.api.DependencyCoordinates dependencyCoordinates) - Specified by:
resolveDependencies
in interfaceorg.apache.maven.api.Session
-
resolveDependencies
public List<Path> resolveDependencies(List<org.apache.maven.api.DependencyCoordinates> dependencyCoordinatess) - Specified by:
resolveDependencies
in interfaceorg.apache.maven.api.Session
-
resolveDependencies
public List<Path> resolveDependencies(org.apache.maven.api.Project project, org.apache.maven.api.PathScope scope) - Specified by:
resolveDependencies
in interfaceorg.apache.maven.api.Session
-
resolveVersion
public org.apache.maven.api.Version resolveVersion(org.apache.maven.api.ArtifactCoordinates artifact) - Specified by:
resolveVersion
in interfaceorg.apache.maven.api.Session
-
resolveVersionRange
public List<org.apache.maven.api.Version> resolveVersionRange(org.apache.maven.api.ArtifactCoordinates artifact) - Specified by:
resolveVersionRange
in interfaceorg.apache.maven.api.Session
-
resolveVersionRange
public List<org.apache.maven.api.Version> resolveVersionRange(org.apache.maven.api.ArtifactCoordinates artifact, List<org.apache.maven.api.RemoteRepository> repositories) - Specified by:
resolveVersionRange
in interfaceorg.apache.maven.api.Session
-
installArtifacts
public void installArtifacts(org.apache.maven.api.Artifact... artifacts) - Specified by:
installArtifacts
in interfaceorg.apache.maven.api.Session
-
installArtifacts
- Specified by:
installArtifacts
in interfaceorg.apache.maven.api.Session
-
deployArtifact
public void deployArtifact(org.apache.maven.api.RemoteRepository repository, org.apache.maven.api.Artifact... artifacts) - Specified by:
deployArtifact
in interfaceorg.apache.maven.api.Session
-
setArtifactPath
- Specified by:
setArtifactPath
in interfaceorg.apache.maven.api.Session
-
getArtifactPath
- Specified by:
getArtifactPath
in interfaceorg.apache.maven.api.Session
-
isVersionSnapshot
- Specified by:
isVersionSnapshot
in interfaceorg.apache.maven.api.Session
-
collectDependencies
public org.apache.maven.api.Node collectDependencies(org.apache.maven.api.Artifact artifact, org.apache.maven.api.PathScope scope) - Specified by:
collectDependencies
in interfaceorg.apache.maven.api.Session
-
collectDependencies
public org.apache.maven.api.Node collectDependencies(org.apache.maven.api.Project project, org.apache.maven.api.PathScope scope) - Specified by:
collectDependencies
in interfaceorg.apache.maven.api.Session
-
collectDependencies
public org.apache.maven.api.Node collectDependencies(org.apache.maven.api.DependencyCoordinates dependencyCoordinates, org.apache.maven.api.PathScope scope) - Specified by:
collectDependencies
in interfaceorg.apache.maven.api.Session
-
getPathForLocalArtifact
- Specified by:
getPathForLocalArtifact
in interfaceorg.apache.maven.api.Session
-
getPathForRemoteArtifact
public Path getPathForRemoteArtifact(org.apache.maven.api.RemoteRepository remote, org.apache.maven.api.Artifact artifact) - Specified by:
getPathForRemoteArtifact
in interfaceorg.apache.maven.api.Session
-
parseVersion
- Specified by:
parseVersion
in interfaceorg.apache.maven.api.Session
-
parseVersionRange
- Specified by:
parseVersionRange
in interfaceorg.apache.maven.api.Session
-
parseVersionConstraint
- Specified by:
parseVersionConstraint
in interfaceorg.apache.maven.api.Session
-
resolveDependencies
public Map<org.apache.maven.api.PathType,List<Path>> resolveDependencies(org.apache.maven.api.DependencyCoordinates dependencyCoordinates, org.apache.maven.api.PathScope scope, Collection<org.apache.maven.api.PathType> desiredTypes) - Specified by:
resolveDependencies
in interfaceorg.apache.maven.api.Session
-
resolveDependencies
public Map<org.apache.maven.api.PathType,List<Path>> resolveDependencies(org.apache.maven.api.Project project, org.apache.maven.api.PathScope scope, Collection<org.apache.maven.api.PathType> desiredTypes) - Specified by:
resolveDependencies
in interfaceorg.apache.maven.api.Session
-
requireType
- Specified by:
requireType
in interfaceorg.apache.maven.api.Session
-
requireLanguage
- Specified by:
requireLanguage
in interfaceorg.apache.maven.api.Session
-
requirePackaging
- Specified by:
requirePackaging
in interfaceorg.apache.maven.api.Session
-
requireProjectScope
- Specified by:
requireProjectScope
in interfaceorg.apache.maven.api.Session
-
requireDependencyScope
- Specified by:
requireDependencyScope
in interfaceorg.apache.maven.api.Session
-
requirePathScope
- Specified by:
requirePathScope
in interfaceorg.apache.maven.api.Session
-