public interface MavenWorkingSession
| Modifier and Type | Method and Description |
|---|---|
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
|
Collection<MavenResolvedArtifact> |
execute(org.sonatype.aether.collection.CollectRequest request,
MavenResolutionFilter[] filters) |
MavenWorkingSession |
execute(org.apache.maven.model.building.ModelBuildingRequest request)
Loads an effective POM file and updates session settings accordingly.
|
MavenWorkingSession |
execute(org.apache.maven.settings.building.SettingsBuildingRequest request)
Loads Maven configuration and updates session settings accordingly.
|
org.sonatype.aether.artifact.ArtifactTypeRegistry |
getArtifactTypeRegistry()
Gets registry of the known artifact types based on underlying session
|
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.
|
org.apache.maven.model.Model |
getModel()
Returns underlying Maven model for parsed POM file.
|
List<org.sonatype.aether.repository.RemoteRepository> |
getRemoteRepositories()
Returns a list of remote repositories enabled from Maven settings.
|
List<org.apache.maven.model.Profile> |
getSettingsDefinedProfiles()
Gets a list of profiles defined in settings.xml.
|
MavenWorkingSession |
regenerateSession()
Refreshes underlying Aether session in order to contain newly acquired information, such as new settings.xml
content
|
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 execute(org.apache.maven.model.building.ModelBuildingRequest request) throws org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
request - Request to load the effective POM fileorg.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileExceptionMavenWorkingSession execute(org.apache.maven.settings.building.SettingsBuildingRequest request) throws org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
request - Request to load settings.xml fileorg.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileExceptionCollection<MavenResolvedArtifact> execute(org.sonatype.aether.collection.CollectRequest request, MavenResolutionFilter[] filters) throws org.sonatype.aether.resolution.DependencyResolutionException
org.sonatype.aether.resolution.DependencyResolutionExceptionList<org.sonatype.aether.repository.RemoteRepository> getRemoteRepositories() throws IllegalStateException
IllegalStateException - If currently active repositories cannot be resolvedorg.apache.maven.model.Model getModel()
List<org.apache.maven.model.Profile> getSettingsDefinedProfiles()
MavenWorkingSession regenerateSession()
org.sonatype.aether.artifact.ArtifactTypeRegistry getArtifactTypeRegistry()
void setOffline(boolean offline)
offline - void disableClassPathWorkspaceReader()
void disableMavenCentral()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.