org.apache.maven.repository.internal
Class MavenRepositorySystemSession

java.lang.Object
  extended by org.sonatype.aether.util.DefaultRepositorySystemSession
      extended by org.apache.maven.repository.internal.MavenRepositorySystemSession
All Implemented Interfaces:
RepositorySystemSession

public class MavenRepositorySystemSession
extends DefaultRepositorySystemSession

A simplistic repository system session that mimics Maven's behavior to help third-party developers that want to embed Maven's dependency resolution into their own applications. Warning: This class is not intended for usage by Maven plugins, those should always acquire the current repository system session via parameter injection.

Author:
Benjamin Bentmann

Constructor Summary
MavenRepositorySystemSession()
          Creates a new Maven-like repository system session by initializing the session with values typical for Maven-based resolution.
 
Method Summary
 
Methods inherited from class org.sonatype.aether.util.DefaultRepositorySystemSession
getArtifactTypeRegistry, getAuthenticationSelector, getCache, getChecksumPolicy, getConfigProperties, getData, getDependencyGraphTransformer, getDependencyManager, getDependencySelector, getDependencyTraverser, getLocalRepository, getLocalRepositoryManager, getMirrorSelector, getProxySelector, getRepositoryListener, getSystemProperties, getTransferListener, getUpdatePolicy, getUserProperties, getWorkspaceReader, isIgnoreInvalidArtifactDescriptor, isIgnoreMissingArtifactDescriptor, isNotFoundCachingEnabled, isOffline, isTransferErrorCachingEnabled, setArtifactTypeRegistry, setAuthenticationSelector, setCache, setChecksumPolicy, setConfigProperties, setConfigProperty, setConfigProps, setData, setDependencyGraphTransformer, setDependencyManager, setDependencySelector, setDependencyTraverser, setIgnoreInvalidArtifactDescriptor, setIgnoreMissingArtifactDescriptor, setLocalRepositoryManager, setMirrorSelector, setNotFoundCachingEnabled, setOffline, setProxySelector, setRepositoryListener, setSystemProperties, setSystemProperty, setSystemProps, setTransferErrorCachingEnabled, setTransferListener, setUpdatePolicy, setUserProperties, setUserProperty, setUserProps, setWorkspaceReader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenRepositorySystemSession

public MavenRepositorySystemSession()
Creates a new Maven-like repository system session by initializing the session with values typical for Maven-based resolution. In more detail, this constructor configures settings relevant for the processing of dependency graphs, most other settings remain at their generic default value. Use the various setters to further configure the session with authentication, mirror, proxy and other information required for your environment.



Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.