@Mojo(name="assemble-repository", defaultPhase=PACKAGE) public class AssembleRepositoryMojo extends AbstractRepositoryMojo
Aggregates content into a p2 repository in ${project.build.directory}/repository
.
${project.build.outputDirectory}
to
${project.build.directory}/repository
. This allows to include additional files such
as index.html
or about files from src/main/resources
(or elsewhere)
into the p2 repository.${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 and Description |
---|
AssembleRepositoryMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected RepositoryReferences |
getVisibleRepositories() |
getAssemblyRepositoryLocation, getBuildContext, getBuildDirectory, getProject, getProjectIdentities, getSession
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected RepositoryReferences getVisibleRepositories() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2008–2020 Eclipse Foundation. All rights reserved.