Class PublishCategoriesMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.eclipse.tycho.core.maven.AbstractP2Mojo
-
- org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo
-
- org.eclipse.tycho.plugins.p2.publisher.PublishCategoriesMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="publish-categories", defaultPhase=PACKAGE, threadSafe=true) public final class PublishCategoriesMojo extends AbstractPublishMojo
Publishes the category definitions from the category.xml in the root of the project.
-
-
Field Summary
Fields Modifier and Type Field Description private EclipseRepositoryProject
eclipseRepositoryProject
-
Constructor Summary
Constructors Constructor Description PublishCategoriesMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
copySiteI18nFiles(BuildDirectory buildFolder)
private java.util.List<Category>
getCategories()
private java.io.File
prepareBuildCategory(Category category, BuildDirectory 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.-
Methods inherited from class org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo
execute
-
Methods inherited from class org.eclipse.tycho.core.maven.AbstractP2Mojo
getBuildContext, getBuildDirectory, getEnvironments, getProject, getProjectIdentities, getQualifier, getReactorProject, getSession
-
-
-
-
Field Detail
-
eclipseRepositoryProject
@Component(role=TychoProject.class, hint="eclipse-repository") private EclipseRepositoryProject eclipseRepositoryProject
-
-
Method Detail
-
publishContent
protected java.util.Collection<DependencySeed> publishContent(PublisherServiceFactory publisherServiceFactory) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
Description copied from class:AbstractPublishMojo
Publishes source files with the help of the given publisher service.- Specified by:
publishContent
in classAbstractPublishMojo
- Returns:
- the list of root installable units that has been published
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
prepareBuildCategory
private java.io.File prepareBuildCategory(Category category, BuildDirectory buildFolder) throws org.apache.maven.plugin.MojoExecutionException
Writes the Tycho-internal representation of categories back to a category.xml.- Parameters:
category
- a category, with "qualifier" literals already replaced by the build qualifier.- Throws:
org.apache.maven.plugin.MojoExecutionException
-
copySiteI18nFiles
private void copySiteI18nFiles(BuildDirectory buildFolder) throws java.io.IOException
- Throws:
java.io.IOException
-
getCategories
private java.util.List<Category> getCategories()
-
-