public interface MavenWorkingSession
| Modifier and Type | Method and Description |
|---|---|
MavenWorkingSession |
configureSettingsFromFile(File globalSettingsFile,
File userSettingsFile)
Loads Maven configuration and updates session settings accordingly.
|
void |
disableClassPathWorkspaceReader()
Disables the classpath workspace reader which may be used to resolve from dependencies on the ClassPath
|
void |
disableMavenCentral()
Disables use of the Maven Central Repository
|
Set<MavenDependency> |
getDeclaredDependencies()
Metadata for all defined
elements |
List<MavenDependency> |
getDependenciesForResolution()
Gets the
Set of dependencies to be resolved for this session |
Set<MavenDependency> |
getDependencyManagement()
Gets a set af dependency declarations stored in version management.
|
ParsedPomFile |
getParsedPomFile()
Returns an abstraction of Project Object Model.
|
MavenWorkingSession |
loadPomFromFile(File pomFile,
String... profiles)
Loads an effective POM file and updates session settings accordingly.
|
MavenWorkingSession |
regenerateSession()
Refreshes underlying Aether session in order to contain newly acquired information, such as new settings.xml
content
|
Collection<MavenResolvedArtifact> |
resolveDependencies(MavenResolutionStrategy strategy) |
void |
setOffline(boolean offline)
Whether or not to set this session in "offline" mode
|
Set<MavenDependency> getDependencyManagement()
MavenDependency#getAddress() address and also affect transitive
dependency resolutions.MavenDependencysList<MavenDependency> getDependenciesForResolution()
Set of dependencies to be resolved for this sessionMavenDependencys to be resolved as part of the request to the backend; may be a subset of
getDeclaredDependencies() after pre-request filtering has been doneSet<MavenDependency> getDeclaredDependencies()
elementsMavenWorkingSession loadPomFromFile(File pomFile, String... profiles) throws InvalidConfigurationFileException
File - which represents Project Object Model fileprofiles - List of profiles to activated/disabledInvalidConfigurationFileExceptionMavenWorkingSession configureSettingsFromFile(File globalSettingsFile, File userSettingsFile) throws InvalidConfigurationFileException
globalSettingsFile - File which represents global settings fileuserSettingsFile - File which represents user settings fileInvalidConfigurationFileExceptionCollection<MavenResolvedArtifact> resolveDependencies(MavenResolutionStrategy strategy) throws ResolutionException
ResolutionExceptionParsedPomFile getParsedPomFile()
MavenWorkingSession regenerateSession()
void setOffline(boolean offline)
offline - void disableClassPathWorkspaceReader()
void disableMavenCentral()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.