Package org.apache.maven.internal.aether
Class DefaultRepositorySystemSessionFactory
java.lang.Object
org.apache.maven.internal.aether.DefaultRepositorySystemSessionFactory
- All Implemented Interfaces:
RepositorySystemSessionFactory
@Singleton
@Named
public class DefaultRepositorySystemSessionFactory
extends Object
implements RepositorySystemSessionFactory
- Since:
- 3.3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringUser property for chained LRM: the new "head" local repository to use, and "push" the existing into tail.static final StringUser property selecting how server credentials configured in settings are scoped to repositories:origin(default): credentials for a server id are only used with a repository whose origin (protocol, host and port) matches an origin declared for the same id, either by a repository or mirror declared with that id in settings or on the command line, or by the<repositoryOrigins>of that server in settings.static final StringUser property for selecting dependency manager behavior regarding transitive dependencies and dependency management entries in their POMs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.aether.DefaultRepositorySystemSessionDeprecated.org.eclipse.aether.RepositorySystemSession.SessionBuilderCreates "ready to use" session builder instance.static Pathstatic org.eclipse.aether.repository.LocalRepositoryManagersetUpLocalRepositoryManager(String localRepository, org.eclipse.aether.RepositorySystem repoSystem, org.eclipse.aether.RepositorySystemSession session)
-
Field Details
-
MAVEN_REPO_LOCAL_HEAD
User property for chained LRM: the new "head" local repository to use, and "push" the existing into tail. Similar tomaven.repo.local.tail, this property may contain comma separated list of paths to be used as local repositories (combine with chained local repository), but while latter is "appending" this one is "prepending".- Since:
- 3.9.10
- See Also:
-
MAVEN_RESOLVER_DEPENDENCY_MANAGER_TRANSITIVITY
User property for selecting dependency manager behavior regarding transitive dependencies and dependency management entries in their POMs. Maven 3 targeted full backward compatibility with Maven 2. Hence, it ignored dependency management entries in transitive dependency POMs. Maven 4 enables "transitivity" by default. Hence unlike Maven 3, it obeys dependency management entries deep in the dependency graph as well.
Default (behave as whole Maven 3.x line):"false".- Since:
- 3.10.0
- See Also:
-
MAVEN_REPOSITORY_CREDENTIAL_SCOPE
User property selecting how server credentials configured in settings are scoped to repositories:origin(default): credentials for a server id are only used with a repository whose origin (protocol, host and port) matches an origin declared for the same id, either by a repository or mirror declared with that id in settings or on the command line, or by the<repositoryOrigins>of that server in settings. For server ids without any such declared origin (for example pure deployment servers whose URL comes from the project'sdistributionManagement), credentials are used as before, but a warning identifying the target origin is emitted.strict: likeorigin, but credentials are refused for server ids that have no declared origin at all.id: legacy behavior, credentials are matched by server id only.
Repositories declared inside a settings
<profile>only contribute an origin when the profile id is listed in<activeProfiles>; profiles activated through<activation>or-Pcontribute none, which is what<server><repositoryOrigins>is for.- Since:
- 3.10.0
- See Also:
-
-
Constructor Details
-
DefaultRepositorySystemSessionFactory
public DefaultRepositorySystemSessionFactory()
-
-
Method Details
-
newRepositorySession
@Deprecated public org.eclipse.aether.DefaultRepositorySystemSession newRepositorySession(MavenExecutionRequest request) Deprecated.For legacy consumers; hopefully nobody. -
newRepositorySessionBuilder
public org.eclipse.aether.RepositorySystemSession.SessionBuilder newRepositorySessionBuilder(MavenExecutionRequest request) Description copied from interface:RepositorySystemSessionFactoryCreates "ready to use" session builder instance. The factory does not set up one thing: theWorkspaceReaders, that is caller duty to figure out. Workspace readers should be set up as very last thing before using resolver session, that is built by invokingRepositorySystemSession.SessionBuilder.build()method.- Specified by:
newRepositorySessionBuilderin interfaceRepositorySystemSessionFactory- Parameters:
request- The maven execution request, must not benull.- Returns:
- The session builder "ready to use" without workspace readers.
-
setUpLocalRepositoryManager
public static org.eclipse.aether.repository.LocalRepositoryManager setUpLocalRepositoryManager(String localRepository, org.eclipse.aether.RepositorySystem repoSystem, org.eclipse.aether.RepositorySystemSession session) -
resolve
-