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.Node
collectDependencies
(org.apache.maven.api.DependencyCoordinate dependencyCoordinate) org.apache.maven.api.Node
collectDependencies
(org.apache.maven.api.Project project) 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.ArtifactCoordinate
createArtifactCoordinate
(String coordString) org.apache.maven.api.ArtifactCoordinate
createArtifactCoordinate
(String s, String s1, String s2, String s3) org.apache.maven.api.ArtifactCoordinate
org.apache.maven.api.ArtifactCoordinate
createArtifactCoordinate
(org.apache.maven.api.Artifact artifact) org.apache.maven.api.DependencyCoordinate
createDependencyCoordinate
(org.apache.maven.api.ArtifactCoordinate artifactCoordinate) org.apache.maven.api.DependencyCoordinate
createDependencyCoordinate
(org.apache.maven.api.Dependency dependency) org.apache.maven.api.LocalRepository
createLocalRepository
(Path path) 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) resolveArtifact
(org.apache.maven.api.Artifact artifact) resolveArtifact
(org.apache.maven.api.ArtifactCoordinate coordinate) resolveArtifacts
(Collection<? extends org.apache.maven.api.ArtifactCoordinate> collection) resolveArtifacts
(org.apache.maven.api.Artifact... artifacts) resolveArtifacts
(org.apache.maven.api.ArtifactCoordinate... artifactCoordinates) resolveDependencies
(List<org.apache.maven.api.DependencyCoordinate> dependencyCoordinates) resolveDependencies
(org.apache.maven.api.DependencyCoordinate dependencyCoordinate) resolveDependencies
(org.apache.maven.api.DependencyCoordinate dependencyCoordinate, 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.ArtifactCoordinate artifact) List
<org.apache.maven.api.Version> resolveVersionRange
(org.apache.maven.api.ArtifactCoordinate artifact) void
setArtifactPath
(org.apache.maven.api.Artifact 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
-
createArtifactCoordinate
public org.apache.maven.api.ArtifactCoordinate createArtifactCoordinate(String s, String s1, String s2, String s3) - Specified by:
createArtifactCoordinate
in interfaceorg.apache.maven.api.Session
-
createArtifactCoordinate
- Specified by:
createArtifactCoordinate
in interfaceorg.apache.maven.api.Session
-
createArtifactCoordinate
public org.apache.maven.api.ArtifactCoordinate createArtifactCoordinate(String s, String s1, String s2, String s3, String s4, String s5) - Specified by:
createArtifactCoordinate
in interfaceorg.apache.maven.api.Session
-
createArtifactCoordinate
public org.apache.maven.api.ArtifactCoordinate createArtifactCoordinate(org.apache.maven.api.Artifact artifact) - Specified by:
createArtifactCoordinate
in interfaceorg.apache.maven.api.Session
-
createDependencyCoordinate
public org.apache.maven.api.DependencyCoordinate createDependencyCoordinate(org.apache.maven.api.ArtifactCoordinate artifactCoordinate) - Specified by:
createDependencyCoordinate
in interfaceorg.apache.maven.api.Session
-
createDependencyCoordinate
public org.apache.maven.api.DependencyCoordinate createDependencyCoordinate(org.apache.maven.api.Dependency dependency) - Specified by:
createDependencyCoordinate
in interfaceorg.apache.maven.api.Session
-
resolveArtifact
public Map.Entry<org.apache.maven.api.Artifact,Path> resolveArtifact(org.apache.maven.api.Artifact artifact) - Specified by:
resolveArtifact
in interfaceorg.apache.maven.api.Session
-
resolveArtifact
public Map.Entry<org.apache.maven.api.Artifact,Path> resolveArtifact(org.apache.maven.api.ArtifactCoordinate coordinate) - Specified by:
resolveArtifact
in interfaceorg.apache.maven.api.Session
-
resolveArtifacts
public Map<org.apache.maven.api.Artifact,Path> resolveArtifacts(org.apache.maven.api.ArtifactCoordinate... artifactCoordinates) - Specified by:
resolveArtifacts
in interfaceorg.apache.maven.api.Session
-
resolveArtifacts
public Map<org.apache.maven.api.Artifact,Path> resolveArtifacts(Collection<? extends org.apache.maven.api.ArtifactCoordinate> collection) - Specified by:
resolveArtifacts
in interfaceorg.apache.maven.api.Session
-
resolveArtifacts
public Map<org.apache.maven.api.Artifact,Path> resolveArtifacts(org.apache.maven.api.Artifact... artifacts) - 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.DependencyCoordinate dependencyCoordinate) - Specified by:
resolveDependencies
in interfaceorg.apache.maven.api.Session
-
resolveDependencies
public List<Path> resolveDependencies(List<org.apache.maven.api.DependencyCoordinate> dependencyCoordinates) - 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.ArtifactCoordinate artifact) - Specified by:
resolveVersion
in interfaceorg.apache.maven.api.Session
-
resolveVersionRange
public List<org.apache.maven.api.Version> resolveVersionRange(org.apache.maven.api.ArtifactCoordinate artifact) - 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) - Specified by:
collectDependencies
in interfaceorg.apache.maven.api.Session
-
collectDependencies
public org.apache.maven.api.Node collectDependencies(org.apache.maven.api.Project project) - Specified by:
collectDependencies
in interfaceorg.apache.maven.api.Session
-
collectDependencies
public org.apache.maven.api.Node collectDependencies(org.apache.maven.api.DependencyCoordinate dependencyCoordinate) - 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.DependencyCoordinate dependencyCoordinate, 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
-