Package org.apache.maven.internal.aether
Class DefaultRepositorySystemSessionFactory
- java.lang.Object
-
- org.apache.maven.internal.aether.DefaultRepositorySystemSessionFactory
-
@Named public class DefaultRepositorySystemSessionFactory extends java.lang.Object
- Since:
- 3.3.0
-
-
Field Summary
Fields Modifier and Type Field Description private ArtifactHandlerManager
artifactHandlerManager
private EventSpyDispatcher
eventSpyDispatcher
private org.codehaus.plexus.logging.Logger
logger
private static java.lang.String
MAVEN_REPO_LOCAL_RECORD_REVERSE_TREE
User property for reverse dependency tree.private static java.lang.String
MAVEN_REPO_LOCAL_TAIL
User property for chained LRM: list of "tail" local repository paths (separated by comma), to be used withChainedLocalRepositoryManager
.private static java.lang.String
MAVEN_REPO_LOCAL_TAIL_IGNORE_AVAILABILITY
User property for chained LRM: should artifact availability be ignored in tail local repositories or not.private static java.lang.String
MAVEN_RESOLVER_TRANSPORT_AUTO
private static java.lang.String
MAVEN_RESOLVER_TRANSPORT_DEFAULT
private static java.lang.String
MAVEN_RESOLVER_TRANSPORT_KEY
private static java.lang.String
MAVEN_RESOLVER_TRANSPORT_NATIVE
private static java.lang.String
MAVEN_RESOLVER_TRANSPORT_WAGON
(package private) MavenRepositorySystem
mavenRepositorySystem
private static java.lang.String
NATIVE_FILE_TRANSPORTER_PRIORITY_KEY
private static java.lang.String
NATIVE_HTTP_TRANSPORTER_PRIORITY_KEY
private org.eclipse.aether.RepositorySystem
repoSystem
private static java.lang.String
RESOLVER_MAX_PRIORITY
private RuntimeInformation
runtimeInformation
private SettingsDecrypter
settingsDecrypter
private static java.lang.String
WAGON_TRANSPORTER_PRIORITY_KEY
private org.eclipse.aether.repository.WorkspaceReader
workspaceRepository
-
Constructor Summary
Constructors Constructor Description DefaultRepositorySystemSessionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.Map<?,?>
getPropertiesFromRequestedProfiles(MavenExecutionRequest request)
private java.lang.String
getUserAgent()
org.eclipse.aether.DefaultRepositorySystemSession
newRepositorySession(MavenExecutionRequest request)
private void
setUpLocalRepositoryManager(MavenExecutionRequest request, org.eclipse.aether.DefaultRepositorySystemSession session)
-
-
-
Field Detail
-
MAVEN_REPO_LOCAL_TAIL
private static final java.lang.String MAVEN_REPO_LOCAL_TAIL
User property for chained LRM: list of "tail" local repository paths (separated by comma), to be used withChainedLocalRepositoryManager
. Default value:null
, no chained LRM is used.- Since:
- 3.9.0
- See Also:
- Constant Field Values
-
MAVEN_REPO_LOCAL_TAIL_IGNORE_AVAILABILITY
private static final java.lang.String MAVEN_REPO_LOCAL_TAIL_IGNORE_AVAILABILITY
User property for chained LRM: should artifact availability be ignored in tail local repositories or not. Default:true
, will ignore availability from tail local repositories.- Since:
- 3.9.0
- See Also:
- Constant Field Values
-
MAVEN_REPO_LOCAL_RECORD_REVERSE_TREE
private static final java.lang.String MAVEN_REPO_LOCAL_RECORD_REVERSE_TREE
User property for reverse dependency tree. If enabled, Maven will record ".tracking" directory into local repository with "reverse dependency tree", essentially explaining WHY given artifact is present in local repository. Default:false
, will not record anything.- Since:
- 3.9.0
- See Also:
- Constant Field Values
-
MAVEN_RESOLVER_TRANSPORT_KEY
private static final java.lang.String MAVEN_RESOLVER_TRANSPORT_KEY
- See Also:
- Constant Field Values
-
MAVEN_RESOLVER_TRANSPORT_DEFAULT
private static final java.lang.String MAVEN_RESOLVER_TRANSPORT_DEFAULT
- See Also:
- Constant Field Values
-
MAVEN_RESOLVER_TRANSPORT_WAGON
private static final java.lang.String MAVEN_RESOLVER_TRANSPORT_WAGON
- See Also:
- Constant Field Values
-
MAVEN_RESOLVER_TRANSPORT_NATIVE
private static final java.lang.String MAVEN_RESOLVER_TRANSPORT_NATIVE
- See Also:
- Constant Field Values
-
MAVEN_RESOLVER_TRANSPORT_AUTO
private static final java.lang.String MAVEN_RESOLVER_TRANSPORT_AUTO
- See Also:
- Constant Field Values
-
WAGON_TRANSPORTER_PRIORITY_KEY
private static final java.lang.String WAGON_TRANSPORTER_PRIORITY_KEY
- See Also:
- Constant Field Values
-
NATIVE_HTTP_TRANSPORTER_PRIORITY_KEY
private static final java.lang.String NATIVE_HTTP_TRANSPORTER_PRIORITY_KEY
- See Also:
- Constant Field Values
-
NATIVE_FILE_TRANSPORTER_PRIORITY_KEY
private static final java.lang.String NATIVE_FILE_TRANSPORTER_PRIORITY_KEY
- See Also:
- Constant Field Values
-
RESOLVER_MAX_PRIORITY
private static final java.lang.String RESOLVER_MAX_PRIORITY
-
logger
@Inject private org.codehaus.plexus.logging.Logger logger
-
artifactHandlerManager
@Inject private ArtifactHandlerManager artifactHandlerManager
-
repoSystem
@Inject private org.eclipse.aether.RepositorySystem repoSystem
-
workspaceRepository
@Inject @Nullable @Named("ide") private org.eclipse.aether.repository.WorkspaceReader workspaceRepository
-
settingsDecrypter
@Inject private SettingsDecrypter settingsDecrypter
-
eventSpyDispatcher
@Inject private EventSpyDispatcher eventSpyDispatcher
-
mavenRepositorySystem
@Inject MavenRepositorySystem mavenRepositorySystem
-
runtimeInformation
@Inject private RuntimeInformation runtimeInformation
-
-
Method Detail
-
newRepositorySession
public org.eclipse.aether.DefaultRepositorySystemSession newRepositorySession(MavenExecutionRequest request)
-
setUpLocalRepositoryManager
private void setUpLocalRepositoryManager(MavenExecutionRequest request, org.eclipse.aether.DefaultRepositorySystemSession session)
-
getPropertiesFromRequestedProfiles
private java.util.Map<?,?> getPropertiesFromRequestedProfiles(MavenExecutionRequest request)
-
getUserAgent
private java.lang.String getUserAgent()
-
-