Class PublishOsgiEEMojo

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

    @Mojo(name="publish-osgi-ee",
          defaultPhase=PREPARE_PACKAGE,
          threadSafe=true)
    public final class PublishOsgiEEMojo
    extends AbstractPublishMojo

    Publishes OSGi execution environment profiles into a p2 repository. The published IUs satisfy dependencies to corresponding osgi.ee capabilities and system packages.

    Since:
    1.2.0
    • Field Detail

      • profiles

        @Parameter(defaultValue="JavaSE-11, JavaSE-14, JavaSE-15, JavaSE-16")
        private java.lang.String profiles

        Comma-separated list of profile names to be published. Examples: JavaSE-11, JavaSE-14, JavaSE-16. It is advised to keep this list as small as possible and the list must include the BREE used by the platform, last Java LTS and the latest Java release.

      • skip

        @Parameter(defaultValue="false")
        private boolean skip
      • toolchainManager

        @Component
        private org.apache.maven.toolchain.ToolchainManager toolchainManager
      • logger

        @Component
        private org.codehaus.plexus.logging.Logger logger
    • Constructor Detail

      • PublishOsgiEEMojo

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