All OSGi API artifacts are available on Maven Central with groupId
There are artifacts available for each chapter in the specification which has an API. The artifactId is the primary package name used in the specification. The major and minor version of the artifact is equal to the version of the specification chapter.
In addition to individual artifacts, some aggregate artifacts are provided which encapsulate multiple related specifications. They have artifactIds starting with
There are dedicated build time artifacts which are not intended for use at runtime. These should be used with maven scope
provided. For example,
osgi.annotation artifact can be used with maven scope
compile to avoid tool warnings for downstream users of API annotated by the OSGi annotations.
Other than the dedicated build time artifacts, it is generally recommended to use the individual artifacts, as this allows for more precise versioning. In particular, avoid using the
osgi.cmpn artifact. After Release 7, the
osgi.cmpn artifact is no longer published to Maven Central to encourage the use of the individual artifacts.