Class PublishProductMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="publish-products",
          defaultPhase=PACKAGE,
          threadSafe=true)
    public final class PublishProductMojo
    extends AbstractPublishMojo

    Publishes all product definitions files (*.product) that are present in the root of the project.

    • Field Detail

      • LUNA_SR2_EXECUTABLE_FEATURE_VERSION

        private static final org.osgi.framework.Version LUNA_SR2_EXECUTABLE_FEATURE_VERSION
      • flavor

        @Parameter(defaultValue="tooling")
        @Deprecated
        private java.lang.String flavor
        Deprecated.
        This parameter has no useful effect and may be removed in a future version of Tycho.

        The name of the p2 installation flavor to create. De facto, this parameter is set to "tooling" in all uses of p2.

      • deflater

        @Component(role=org.codehaus.plexus.archiver.UnArchiver.class,
                   hint="zip")
        private org.codehaus.plexus.archiver.UnArchiver deflater
    • Constructor Detail

      • PublishProductMojo

        public PublishProductMojo()
    • 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
      • getExpandedLauncherBinaries

        private java.io.File getExpandedLauncherBinaries()
                                                  throws org.apache.maven.plugin.MojoExecutionException,
                                                         org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • checkMacOSLauncherCompatibility

        private void checkMacOSLauncherCompatibility​(ArtifactDescriptor executablesFeature)
                                              throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • isLunaOrOlder

        static boolean isLunaOrOlder​(org.osgi.framework.Version featureVersion)
      • macOSConfigured

        private boolean macOSConfigured()