Package org.apache.maven.bridge
Class MavenRepositorySystem
java.lang.Object
org.apache.maven.bridge.MavenRepositorySystem
- Author:
- Jason van Zyl
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMavenRepositorySystem
(ArtifactHandlerManager artifactHandlerManager, Map<String, ArtifactRepositoryLayout> layouts) -
Method Summary
Modifier and TypeMethodDescriptionstatic ArtifactRepository
static ArtifactRepository
static ArtifactRepositoryPolicy
createArtifactRepository
(String id, String url, String layoutId, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) static ArtifactRepository
createArtifactRepository
(String id, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) createExtensionArtifact
(String groupId, String artifactId, String version) createLocalRepository
(File localRepository) createLocalRepository
(MavenExecutionRequest request, File localRepository) createParentArtifact
(String groupId, String artifactId, String version) createPluginArtifact
(Plugin plugin) createProjectArtifact
(String groupId, String artifactId, String metaVersionId) createRepository
(String url, String repositoryId, boolean releases, String releaseUpdates, boolean snapshots, String snapshotUpdates, String checksumPolicy) static Repository
fromSettingsRepository
(Repository settingsRepository) static RepositoryPolicy
fromSettingsRepositoryPolicy
(RepositoryPolicy settingsRepositoryPolicy) getEffectiveRepositories
(List<ArtifactRepository> repositories) Source from org.apache.maven.repository.legacy.LegacyRepositorySystem#getEffectiveRepositoriesstatic Mirror
getMirror
(ArtifactRepository repository, List<Mirror> mirrors) getRepoIds
(List<ArtifactRepository> repositories) void
injectAuthentication
(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) void
injectMirror
(List<ArtifactRepository> repositories, List<Mirror> mirrors) void
injectMirror
(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) void
injectProxy
(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories)
-
Field Details
-
DEFAULT_REMOTE_REPO_ID
- See Also:
-
DEFAULT_REMOTE_REPO_URL
- See Also:
-
DEFAULT_LOCAL_REPO_ID
- See Also:
-
-
Constructor Details
-
MavenRepositorySystem
@Inject public MavenRepositorySystem(ArtifactHandlerManager artifactHandlerManager, Map<String, ArtifactRepositoryLayout> layouts)
-
-
Method Details
-
createArtifact
-
createProjectArtifact
-
createDependencyArtifact
-
createExtensionArtifact
-
createParentArtifact
-
createPluginArtifact
-
injectMirror
-
injectMirror
public void injectMirror(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) -
injectAuthentication
public void injectAuthentication(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) -
injectProxy
public void injectProxy(org.eclipse.aether.RepositorySystemSession session, List<ArtifactRepository> repositories) -
fromSettingsRepository
-
fromSettingsRepositoryPolicy
public static RepositoryPolicy fromSettingsRepositoryPolicy(RepositoryPolicy settingsRepositoryPolicy) -
buildArtifactRepository
public static ArtifactRepository buildArtifactRepository(Repository repo) throws InvalidRepositoryException - Throws:
InvalidRepositoryException
-
buildArtifactRepository
public static ArtifactRepository buildArtifactRepository(Repository repo) throws InvalidRepositoryException - Throws:
InvalidRepositoryException
-
buildArtifactRepositoryPolicy
-
createArtifactRepository
public ArtifactRepository createArtifactRepository(String id, String url, String layoutId, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) throws InvalidRepositoryException - Throws:
InvalidRepositoryException
-
createArtifactRepository
public static ArtifactRepository createArtifactRepository(String id, String url, ArtifactRepositoryLayout repositoryLayout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) -
createDefaultRemoteRepository
- Throws:
Exception
-
createDefaultRemoteRepository
public ArtifactRepository createDefaultRemoteRepository(MavenExecutionRequest request) throws Exception - Throws:
Exception
-
createRepository
public ArtifactRepository createRepository(String url, String repositoryId, boolean releases, String releaseUpdates, boolean snapshots, String snapshotUpdates, String checksumPolicy) throws InvalidRepositoryException - Throws:
InvalidRepositoryException
-
getRepoIds
-
getEffectiveRepositories
Source from org.apache.maven.repository.legacy.LegacyRepositorySystem#getEffectiveRepositories- Parameters:
repositories
- a list of repositories- Returns:
- corresponding effective repositories
- Since:
- 3.6.1
-
createLocalRepository
public ArtifactRepository createLocalRepository(MavenExecutionRequest request, File localRepository) throws InvalidRepositoryException - Throws:
InvalidRepositoryException
-
createLocalRepository
public ArtifactRepository createLocalRepository(File localRepository) throws InvalidRepositoryException - Throws:
InvalidRepositoryException
-
getMirror
-