org.eclipse.tycho.p2.facade
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.
|
Method Summary |
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 |
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.
RepositoryReferenceTool
public RepositoryReferenceTool()
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_MODULE is 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 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
Copyright © 2008-2012 Eclipse Foundation. All Rights Reserved.