Class P2RepositoryManager

java.lang.Object
org.eclipse.tycho.p2maven.repository.P2RepositoryManager

@Component(role=P2RepositoryManager.class) public class P2RepositoryManager extends Object
Allows unique access to P2 repositories from maven
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    downloadArtifact(org.eclipse.equinox.p2.metadata.IInstallableUnit iu, org.eclipse.equinox.p2.repository.artifact.IArtifactRepository artifactRepository, OutputStream outputStream)
     
    org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
    getArtifactRepository(org.apache.maven.model.Repository repository)
    Loads the IArtifactRepository from the given Repository, this method does NOT check the type of the repository!
    org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
    getArtifactRepository(org.eclipse.tycho.MavenRepositoryLocation repository)
    Loads the IArtifactRepository from the given Repository, this method does NOT check the type of the repository!
    org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
    getCompositeArtifactRepository(Collection<org.apache.maven.model.Repository> repositories)
     
    org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IInstallableUnit>
    getCompositeMetadataRepository(Collection<org.apache.maven.model.Repository> repositories)
     
    org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
    getMetadataRepositor(org.eclipse.tycho.MavenRepositoryLocation repository)
    Loads the IMetadataRepository from the given Repository, this method does NOT check the type of the repository!
    org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
    getMetadataRepository(org.apache.maven.model.Repository repository)
    Loads the IMetadataRepository from the given Repository, this method does NOT check the type of the repository!

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • P2RepositoryManager

      public P2RepositoryManager()
  • Method Details

    • getArtifactRepository

      public org.eclipse.equinox.p2.repository.artifact.IArtifactRepository getArtifactRepository(org.apache.maven.model.Repository repository) throws URISyntaxException, org.eclipse.equinox.p2.core.ProvisionException
      Loads the IArtifactRepository from the given Repository, this method does NOT check the type of the repository!
      Parameters:
      repository -
      Returns:
      the IArtifactRepository for the given Repository
      Throws:
      URISyntaxException - if RepositoryBase.getUrl() can not be converted into an URI
      org.eclipse.equinox.p2.core.ProvisionException - if loading the repository failed
    • getArtifactRepository

      public org.eclipse.equinox.p2.repository.artifact.IArtifactRepository getArtifactRepository(org.eclipse.tycho.MavenRepositoryLocation repository) throws org.eclipse.equinox.p2.core.ProvisionException
      Loads the IArtifactRepository from the given Repository, this method does NOT check the type of the repository!
      Parameters:
      repository -
      Returns:
      the IArtifactRepository for the given Repository
      Throws:
      org.eclipse.equinox.p2.core.ProvisionException - if loading the repository failed
    • getCompositeArtifactRepository

      public org.eclipse.equinox.p2.repository.artifact.IArtifactRepository getCompositeArtifactRepository(Collection<org.apache.maven.model.Repository> repositories) throws org.eclipse.equinox.p2.core.ProvisionException, URISyntaxException
      Throws:
      org.eclipse.equinox.p2.core.ProvisionException
      URISyntaxException
    • getMetadataRepository

      public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getMetadataRepository(org.apache.maven.model.Repository repository) throws URISyntaxException, org.eclipse.equinox.p2.core.ProvisionException
      Loads the IMetadataRepository from the given Repository, this method does NOT check the type of the repository!
      Parameters:
      repository -
      Returns:
      the IMetadataRepository for the given Repository
      Throws:
      URISyntaxException - if RepositoryBase.getUrl() can not be converted into an URI
      org.eclipse.equinox.p2.core.ProvisionException - if loading the repository failed
    • getCompositeMetadataRepository

      public org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IInstallableUnit> getCompositeMetadataRepository(Collection<org.apache.maven.model.Repository> repositories) throws org.eclipse.equinox.p2.core.ProvisionException, URISyntaxException
      Throws:
      org.eclipse.equinox.p2.core.ProvisionException
      URISyntaxException
    • getMetadataRepositor

      public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getMetadataRepositor(org.eclipse.tycho.MavenRepositoryLocation repository) throws org.eclipse.equinox.p2.core.ProvisionException
      Loads the IMetadataRepository from the given Repository, this method does NOT check the type of the repository!
      Parameters:
      repository -
      Returns:
      the IMetadataRepository for the given Repository
      Throws:
      org.eclipse.equinox.p2.core.ProvisionException - if loading the repository failed
    • downloadArtifact

      public void downloadArtifact(org.eclipse.equinox.p2.metadata.IInstallableUnit iu, org.eclipse.equinox.p2.repository.artifact.IArtifactRepository artifactRepository, OutputStream outputStream) throws IOException
      Throws:
      IOException