@Mojo(name="publish-categories", defaultPhase=PACKAGE) public final class PublishCategoriesMojo extends AbstractPublishMojo
Publishes the category definitions from the category.xml in the root of the project.
http://wiki.eclipse.org/Equinox/p2/Publisher
Constructor and Description |
---|
PublishCategoriesMojo() |
Modifier and Type | Method and Description |
---|---|
private void |
copySiteI18nFiles(BuildOutputDirectory buildFolder) |
private java.util.List<Category> |
getCategories() |
private java.io.File |
prepareBuildCategory(Category category,
BuildOutputDirectory buildFolder)
Writes the Tycho-internal representation of categories back to a category.xml.
|
protected java.util.Collection<DependencySeed> |
publishContent(PublisherServiceFactory publisherServiceFactory)
Publishes source files with the help of the given publisher service.
|
execute
getBuildContext, getBuildDirectory, getEclipseRepositoryProject, getEnvironments, getProject, getProjectIdentities, getQualifier, getReactorProject, getSession
protected java.util.Collection<DependencySeed> publishContent(PublisherServiceFactory publisherServiceFactory) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
AbstractPublishMojo
publishContent
in class AbstractPublishMojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
private java.io.File prepareBuildCategory(Category category, BuildOutputDirectory buildFolder) throws org.apache.maven.plugin.MojoExecutionException
category
- a category, with "qualifier" literals already replaced by the build qualifier.org.apache.maven.plugin.MojoExecutionException
private void copySiteI18nFiles(BuildOutputDirectory buildFolder) throws java.io.IOException
java.io.IOException
private java.util.List<Category> getCategories()