Interface RepositorySystem

All Known Implementing Classes:
LegacyRepositorySystem

@Deprecated public interface RepositorySystem
Deprecated.
Use MavenRepositorySystem if needed, or maven-resolver directly, until maven 4.x api is out
Since:
3.0-alpha
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated.
     
    static final String
    Deprecated.
     
    static final String
    Deprecated.
     
    static final File
    Deprecated.
     
    static final String
    Deprecated.
     
    static final File
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.maven.artifact.repository.ArtifactRepository
    buildArtifactRepository(org.apache.maven.model.Repository repository)
    Deprecated.
     
    org.apache.maven.artifact.Artifact
    createArtifact(String groupId, String artifactId, String version, String packaging)
    Deprecated.
     
    org.apache.maven.artifact.Artifact
    createArtifact(String groupId, String artifactId, String version, String scope, String type)
    Deprecated.
     
    org.apache.maven.artifact.repository.ArtifactRepository
    createArtifactRepository(String id, String url, org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout repositoryLayout, org.apache.maven.artifact.repository.ArtifactRepositoryPolicy snapshots, org.apache.maven.artifact.repository.ArtifactRepositoryPolicy releases)
    Deprecated.
     
    org.apache.maven.artifact.Artifact
    createArtifactWithClassifier(String groupId, String artifactId, String version, String type, String classifier)
    Deprecated.
     
    org.apache.maven.artifact.repository.ArtifactRepository
    Deprecated.
     
    org.apache.maven.artifact.repository.ArtifactRepository
    Deprecated.
     
    org.apache.maven.artifact.Artifact
    createDependencyArtifact(org.apache.maven.model.Dependency dependency)
    Deprecated.
     
    org.apache.maven.artifact.repository.ArtifactRepository
    createLocalRepository(File localRepository)
    Deprecated.
     
    org.apache.maven.artifact.Artifact
    createPluginArtifact(org.apache.maven.model.Plugin plugin)
    Deprecated.
     
    org.apache.maven.artifact.Artifact
    createProjectArtifact(String groupId, String artifactId, String version)
    Deprecated.
     
    List<org.apache.maven.artifact.repository.ArtifactRepository>
    getEffectiveRepositories(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories)
    Deprecated.
    Calculates the effective repositories for the given input repositories which are assumed to be already mirrored (if applicable).
    org.apache.maven.settings.Mirror
    getMirror(org.apache.maven.artifact.repository.ArtifactRepository repository, List<org.apache.maven.settings.Mirror> mirrors)
    Deprecated.
    Determines the mirror for the specified repository.
    void
    injectAuthentication(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories, List<org.apache.maven.settings.Server> servers)
    Deprecated.
    Injects the authentication information into the specified repositories.
    void
    injectAuthentication(org.eclipse.aether.RepositorySystemSession session, List<org.apache.maven.artifact.repository.ArtifactRepository> repositories)
    Deprecated.
     
    void
    injectMirror(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories, List<org.apache.maven.settings.Mirror> mirrors)
    Deprecated.
    Injects the mirroring information into the specified repositories.
    void
    injectMirror(org.eclipse.aether.RepositorySystemSession session, List<org.apache.maven.artifact.repository.ArtifactRepository> repositories)
    Deprecated.
     
    void
    injectProxy(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories, List<org.apache.maven.settings.Proxy> proxies)
    Deprecated.
    Injects the proxy information into the specified repositories.
    void
    injectProxy(org.eclipse.aether.RepositorySystemSession session, List<org.apache.maven.artifact.repository.ArtifactRepository> repositories)
    Deprecated.
     
    void
    publish(org.apache.maven.artifact.repository.ArtifactRepository repository, File source, String remotePath, ArtifactTransferListener transferListener)
    Deprecated.
     
    Deprecated.
     
    void
    retrieve(org.apache.maven.artifact.repository.ArtifactRepository repository, File destination, String remotePath, ArtifactTransferListener transferListener)
    Deprecated.
     
  • Field Details

    • DEFAULT_LOCAL_REPO_ID

      static final String DEFAULT_LOCAL_REPO_ID
      Deprecated.
      See Also:
    • userHome

      static final String userHome
      Deprecated.
    • userMavenConfigurationHome

      static final File userMavenConfigurationHome
      Deprecated.
    • defaultUserLocalRepository

      static final File defaultUserLocalRepository
      Deprecated.
    • DEFAULT_REMOTE_REPO_ID

      static final String DEFAULT_REMOTE_REPO_ID
      Deprecated.
      See Also:
    • DEFAULT_REMOTE_REPO_URL

      static final String DEFAULT_REMOTE_REPO_URL
      Deprecated.
      See Also:
  • Method Details

    • createArtifact

      org.apache.maven.artifact.Artifact createArtifact(String groupId, String artifactId, String version, String packaging)
      Deprecated.
    • createArtifact

      org.apache.maven.artifact.Artifact createArtifact(String groupId, String artifactId, String version, String scope, String type)
      Deprecated.
    • createProjectArtifact

      org.apache.maven.artifact.Artifact createProjectArtifact(String groupId, String artifactId, String version)
      Deprecated.
    • createArtifactWithClassifier

      org.apache.maven.artifact.Artifact createArtifactWithClassifier(String groupId, String artifactId, String version, String type, String classifier)
      Deprecated.
    • createPluginArtifact

      org.apache.maven.artifact.Artifact createPluginArtifact(org.apache.maven.model.Plugin plugin)
      Deprecated.
    • createDependencyArtifact

      org.apache.maven.artifact.Artifact createDependencyArtifact(org.apache.maven.model.Dependency dependency)
      Deprecated.
    • buildArtifactRepository

      org.apache.maven.artifact.repository.ArtifactRepository buildArtifactRepository(org.apache.maven.model.Repository repository) throws org.apache.maven.artifact.InvalidRepositoryException
      Deprecated.
      Throws:
      org.apache.maven.artifact.InvalidRepositoryException
    • createDefaultRemoteRepository

      org.apache.maven.artifact.repository.ArtifactRepository createDefaultRemoteRepository() throws org.apache.maven.artifact.InvalidRepositoryException
      Deprecated.
      Throws:
      org.apache.maven.artifact.InvalidRepositoryException
    • createDefaultLocalRepository

      org.apache.maven.artifact.repository.ArtifactRepository createDefaultLocalRepository() throws org.apache.maven.artifact.InvalidRepositoryException
      Deprecated.
      Throws:
      org.apache.maven.artifact.InvalidRepositoryException
    • createLocalRepository

      org.apache.maven.artifact.repository.ArtifactRepository createLocalRepository(File localRepository) throws org.apache.maven.artifact.InvalidRepositoryException
      Deprecated.
      Throws:
      org.apache.maven.artifact.InvalidRepositoryException
    • createArtifactRepository

      org.apache.maven.artifact.repository.ArtifactRepository createArtifactRepository(String id, String url, org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout repositoryLayout, org.apache.maven.artifact.repository.ArtifactRepositoryPolicy snapshots, org.apache.maven.artifact.repository.ArtifactRepositoryPolicy releases)
      Deprecated.
    • getEffectiveRepositories

      List<org.apache.maven.artifact.repository.ArtifactRepository> getEffectiveRepositories(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories)
      Deprecated.
      Calculates the effective repositories for the given input repositories which are assumed to be already mirrored (if applicable). This process will essentially remove duplicate repositories by merging them into one equivalent repository. It is worth to point out that merging does not simply choose one of the input repositories and discards the others but actually combines their possibly different policies.
      Parameters:
      repositories - The original repositories, may be null.
      Returns:
      The effective repositories or null if the input was null.
    • getMirror

      org.apache.maven.settings.Mirror getMirror(org.apache.maven.artifact.repository.ArtifactRepository repository, List<org.apache.maven.settings.Mirror> mirrors)
      Deprecated.
      Determines the mirror for the specified repository.
      Parameters:
      repository - The repository to determine the mirror for, must not be null.
      mirrors - The available mirrors, may be null.
      Returns:
      The mirror specification for the repository or null if no mirror matched.
    • injectMirror

      void injectMirror(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories, List<org.apache.maven.settings.Mirror> mirrors)
      Deprecated.
      Injects the mirroring information into the specified repositories. For each repository that is matched by a mirror, its URL and ID will be updated to match the values from the mirror specification. Repositories without a matching mirror will pass through unchanged. Note: This method must be called before injectAuthentication(List, List) or the repositories will end up with the wrong credentials.
      Parameters:
      repositories - The repositories into which to inject the mirror information, may be null.
      mirrors - The available mirrors, may be null.
    • injectProxy

      void injectProxy(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories, List<org.apache.maven.settings.Proxy> proxies)
      Deprecated.
      Injects the proxy information into the specified repositories. For each repository that is matched by a proxy, its proxy data will be set accordingly. Repositories without a matching proxy will have their proxy cleared. Note: This method must be called after injectMirror(List, List) or the repositories will end up with the wrong proxies.
      Parameters:
      repositories - The repositories into which to inject the proxy information, may be null.
      proxies - The available proxies, may be null.
    • injectAuthentication

      void injectAuthentication(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories, List<org.apache.maven.settings.Server> servers)
      Deprecated.
      Injects the authentication information into the specified repositories. For each repository that is matched by a server, its credentials will be updated to match the values from the server specification. Repositories without a matching server will have their credentials cleared. Note: This method must be called after injectMirror(List, List) or the repositories will end up with the wrong credentials.
      Parameters:
      repositories - The repositories into which to inject the authentication information, may be null.
      servers - The available servers, may be null.
    • injectMirror

      void injectMirror(org.eclipse.aether.RepositorySystemSession session, List<org.apache.maven.artifact.repository.ArtifactRepository> repositories)
      Deprecated.
    • injectProxy

      void injectProxy(org.eclipse.aether.RepositorySystemSession session, List<org.apache.maven.artifact.repository.ArtifactRepository> repositories)
      Deprecated.
    • injectAuthentication

      void injectAuthentication(org.eclipse.aether.RepositorySystemSession session, List<org.apache.maven.artifact.repository.ArtifactRepository> repositories)
      Deprecated.
    • resolve

      Deprecated.
    • publish

      void publish(org.apache.maven.artifact.repository.ArtifactRepository repository, File source, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException
      Deprecated.
      Throws:
      ArtifactTransferFailedException
    • retrieve

      void retrieve(org.apache.maven.artifact.repository.ArtifactRepository repository, File destination, String remotePath, ArtifactTransferListener transferListener) throws ArtifactTransferFailedException, ArtifactDoesNotExistException
      Deprecated.
      Throws:
      ArtifactTransferFailedException
      ArtifactDoesNotExistException