Class AssembleRepositoryMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.tycho.core.maven.AbstractP2Mojo
-
- org.eclipse.tycho.plugins.p2.repository.AbstractRepositoryMojo
-
- org.eclipse.tycho.plugins.p2.repository.AssembleRepositoryMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="assemble-repository", defaultPhase=PACKAGE) public class AssembleRepositoryMojo extends AbstractRepositoryMojo
Aggregates content into a p2 repository in
${project.build.directory}/repository
.- Copies resources (if any) from
${project.build.outputDirectory}
to${project.build.directory}/repository
. This allows to include additional files such asindex.html
or about files fromsrc/main/resources
(or elsewhere) into the p2 repository. - The p2 aggregation into
${project.build.directory}/repository
runs recursively: it starts with the content published in the current module, and traverses all artifacts that are marked as included in already aggregated artifacts. (The following artifacts can include other artifacts: categories, products, and features. Note: Dependencies with a strict version range, i.e. a range which only matches exactly one version of an artifact, are also considered as inclusions.)
-
-
Constructor Summary
Constructors Constructor Description AssembleRepositoryMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
protected RepositoryReferences
getVisibleRepositories()
-
Methods inherited from class org.eclipse.tycho.plugins.p2.repository.AbstractRepositoryMojo
getAssemblyRepositoryLocation
-
Methods inherited from class org.eclipse.tycho.core.maven.AbstractP2Mojo
getBuildContext, getBuildDirectory, getEnvironments, getProject, getProjectIdentities, getQualifier, getReactorProject, getSession
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
getVisibleRepositories
protected RepositoryReferences getVisibleRepositories() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
-