Package org.eclipse.tycho.p2.facade
Class RepositoryReferenceTool
java.lang.Object
org.eclipse.tycho.p2.facade.RepositoryReferenceTool
Tool to obtain the list of p2 repositories that contain the dependencies of a module.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intOption to indicate that the publisher results of the given module shall be included in the list of repositories. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.tycho.p2.tools.RepositoryReferencesgetVisibleRepositories(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.
-
Field Details
-
REPOSITORIES_INCLUDE_CURRENT_MODULE
public static int REPOSITORIES_INCLUDE_CURRENT_MODULEOption 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:- The publisher results of the current module (only if the flag
REPOSITORIES_INCLUDE_CURRENT_MODULEis set), - The results of the referenced reactor modules,
- The non-reactor content of the module's target platform.
- Parameters:
module- The current Maven projectsession- The current Maven sessionflags- Options flags; supported flags areREPOSITORIES_INCLUDE_CURRENT_MODULE- Returns:
- a
RepositoryReferencesinstance with the repositories. - Throws:
org.apache.maven.plugin.MojoExecutionException- in case of internal errorsorg.apache.maven.plugin.MojoFailureException- in case required artifacts are missing
- The publisher results of the current module (only if the flag
-