Plugin Documentation

Goals available for this plugin:

Goal Description
tycho-p2-publisher:attach-artifacts

Attaches p2 metadata and extra artifacts produced by the publishers to the project. In this way, the full build results are available in the local Maven repository, e.g. for builds of parts of a reactor.

tycho-p2-publisher:publish-categories

Publishes the category definitions from the category.xml in the root of the project.


See also: https://wiki.eclipse.org/Equinox/p2/Publisher
tycho-p2-publisher:publish-ee-profile

Publishes a custom execution environment profile.

tycho-p2-publisher:publish-osgi-ee

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

tycho-p2-publisher:publish-products

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


See also: https://wiki.eclipse.org/Equinox/p2/Publisher

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 3.9.6
JDK 17

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.eclipse.tycho</groupId>
          <artifactId>tycho-p2-publisher-plugin</artifactId>
          <version>4.0.5</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-p2-publisher-plugin</artifactId>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"