Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
90 lines (62 sloc) 2.78 KB

Maven Plugins

The Maven Plugins require at least Maven 3.1.0. This is because bndlib uses SLF4J and Maven 3.1.0 or later provides the SLF4J API.

bnd-plugin-parent

This project builds the various Maven plugins provided by the Bnd project, and defines common dependency information.

These plugins are built using Maven (unlike the rest of Bnd) because it is very hard to build a Maven plugin unless you use Maven to do it!

bnd-maven-plugin

The core plugin, used to generate manifest and other metadata for projects that build an OSGi bundle.

bnd-indexer-maven-plugin

A plugin used to generate an OSGi repository index from a set of Maven dependencies. The entries in the index will reference the location of the bundles in the remote repositories to which they have been deployed.

bnd-baseline-maven-plugin

A plugin used to validate that a bundle correctly uses semantic versioning as described by the OSGi Alliance. This plugin will verify that the bundle and package versions of a module's output artifact are correct based on:

  • The bundle and package versions declared by the previously released version of the module.
  • Any changes that have been made to the packages exported by the bundle.
  • Any internal changes within the bundle.

bnd-export-maven-plugin

A plugin to export bndrun files.

bnd-resolver-maven-plugin

A plugin to resolve bndrun files.

bnd-testing-maven-plugin

A plugin to run integration tests from bndrun files.

bnd-run-maven-plugin

A plugin to run a bndrun file.

Building the Maven Plugins

See the .travis.yml file in the root of the repo for the script section detailing the commands to build the Maven plugins. You must first run ./gradlew to build the Bnd bundles and install them in your local maven repo. You can then run Maven to build the Maven plugins.


Using the latest development SNAPSHOT build of the Bnd Maven Plugins

If you want to try the latest development SNAPSHOT build of the Bnd Maven Plugins, you will need to adjust your pom to refer to the snapshot repository and select the latest version of the plugins. For example, edit the pom's pluginManagement section, to configure the repository:

<pluginRepositories>
	<pluginRepository>
		<id>bnd-snapshots</id>
		<url>https://bndtools.jfrog.io/bndtools/libs-snapshot/</url>
		<layout>default</layout>
		<releases>
			<enabled>false</enabled>
		</releases>
	</pluginRepository>
</pluginRepositories>
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.