Class RepositoryReferenceTool

java.lang.Object
org.eclipse.tycho.p2.facade.RepositoryReferenceTool

@Component(role=RepositoryReferenceTool.class) public class RepositoryReferenceTool extends Object
Tool to obtain the list of p2 repositories that contain the dependencies of a module.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static int
    Option to indicate that the publisher results of the given module shall be included in the list of repositories.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.tycho.p2.tools.RepositoryReferences
    getVisibleRepositories(org.apache.maven.project.MavenProject module, org.apache.maven.execution.MavenSession session, int flags)
    Returns the list of visible p2 repositories for the build of the current module.

    Methods inherited from class java.lang.Object

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

    • REPOSITORIES_INCLUDE_CURRENT_MODULE

      public static int REPOSITORIES_INCLUDE_CURRENT_MODULE
      Option to indicate that the publisher results of the given module shall be included in the list of repositories.
  • Constructor Details

    • RepositoryReferenceTool

      public RepositoryReferenceTool()
  • Method Details

    • getVisibleRepositories

      public org.eclipse.tycho.p2.tools.RepositoryReferences getVisibleRepositories(org.apache.maven.project.MavenProject module, org.apache.maven.execution.MavenSession session, int flags) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Returns the list of visible p2 repositories for the build of the current module. The list includes the p2 repositories of the referenced reactor modules, the target platform, and optionally the current module itself. The repositories are sorted in a reasonable order of precedence, so if there should be duplicate installable units or artifacts, the hope is that it is deterministic from which repository the unit or artifact is taken. The order is:
      1. The publisher results of the current module (only if the flag REPOSITORIES_INCLUDE_CURRENT_MODULE is set),
      2. The results of the referenced reactor modules,
      3. The non-reactor content of the module's target platform.
      Parameters:
      module - The current Maven project
      session - The current Maven session
      flags - Options flags; supported flags are REPOSITORIES_INCLUDE_CURRENT_MODULE
      Returns:
      a RepositoryReferences instance with the repositories.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - in case of internal errors
      org.apache.maven.plugin.MojoFailureException - in case required artifacts are missing