@Component(role=RepositoryReferenceTool.class) public class RepositoryReferenceTool extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private DefaultDependencyResolverFactory |
dependencyResolverLocator |
private EquinoxServiceFactory |
osgiServices |
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 and Description |
---|
RepositoryReferenceTool() |
Modifier and Type | Method and Description |
---|---|
private void |
addTargetPlatformRepository(RepositoryReferences sources,
org.apache.maven.execution.MavenSession session,
org.apache.maven.project.MavenProject project)
Restores the p2 metadata view on the module's build target platform that was calculated
during the initial dependency resolution (see
org.eclipse.tycho.p2.resolver.P2ResolverImpl.toResolutionResult(...)).
|
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.
|
public static int REPOSITORIES_INCLUDE_CURRENT_MODULE
@Requirement private EquinoxServiceFactory osgiServices
@Requirement private DefaultDependencyResolverFactory dependencyResolverLocator
public 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
REPOSITORIES_INCLUDE_CURRENT_MODULE
is set),
module
- The current Maven projectsession
- The current Maven sessionflags
- Options flags; supported flags are REPOSITORIES_INCLUDE_CURRENT_MODULE
RepositoryReferences
instance with the repositories.org.apache.maven.plugin.MojoExecutionException
- in case of internal errorsorg.apache.maven.plugin.MojoFailureException
- in case required artifacts are missingprivate void addTargetPlatformRepository(RepositoryReferences sources, org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException