|
ShrinkWrap Resolver Maven API 2.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MavenWorkingSession
Encapsulates Maven session
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
Set<MavenDependency> getDependencyManagement()
MavenDependency#getAddress() address and also affect transitive
dependency resolutions.
MavenDependencysList<MavenDependency> getDependenciesForResolution()
Set of dependencies to be resolved for this session
MavenDependencys 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()
elements
MavenWorkingSession loadPomFromFile(File pomFile,
String... profiles)
throws InvalidConfigurationFileException
File - which represents Project Object Model fileprofiles - List of profiles to activated/disabled
InvalidConfigurationFileException
MavenWorkingSession configureSettingsFromFile(File globalSettingsFile,
File userSettingsFile)
throws InvalidConfigurationFileException
globalSettingsFile - File which represents global settings fileuserSettingsFile - File which represents user settings file
InvalidConfigurationFileException
Collection<MavenResolvedArtifact> resolveDependencies(MavenResolutionStrategy strategy)
throws ResolutionException
ResolutionExceptionParsedPomFile getParsedPomFile()
MavenWorkingSession regenerateSession()
void setOffline(boolean offline)
offline - void disableClassPathWorkspaceReader()
void disableMavenCentral()
|
ShrinkWrap Resolver Maven API 2.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||