Class 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.

    • Constructor Detail

      • PublishCategoriesMojo

        public PublishCategoriesMojo()
    • 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 class AbstractPublishMojo
        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()