|
ShrinkWrap Resolver Maven Implementation 2.0.0-alpha-4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MavenWorkingSession
Encapsulates Maven session
| Method Summary | |
|---|---|
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<org.sonatype.aether.resolution.ArtifactResult> |
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 |
| 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 execute(org.apache.maven.model.building.ModelBuildingRequest request)
throws org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
request - Request to load the effective POM file
org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
MavenWorkingSession execute(org.apache.maven.settings.building.SettingsBuildingRequest request)
throws org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
request - Request to load settings.xml file
org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
Collection<org.sonatype.aether.resolution.ArtifactResult> execute(org.sonatype.aether.collection.CollectRequest request,
MavenResolutionFilter[] filters)
throws org.sonatype.aether.resolution.DependencyResolutionException
org.sonatype.aether.resolution.DependencyResolutionException
List<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()
|
ShrinkWrap Resolver Maven Implementation 2.0.0-alpha-4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||