Adding OSGi support to Maven projects

You can add OSGi support to Maven projects by converting the project to an OSGi bundle project.

Procedure

  1. Right-click the Maven project and select Configure > Convert to OSGi Bundle Project.
  2. A message displays stating that the pom.xml file will be modified. Click OK.

Results

OSGi support is added to the project. The following files are created or modified:
  • A manifest.mf file is generated and contains configuration and dependency information from the pom.xml. This manifest.mf file is updated automatically as you work with your project. Do not edit the manifest.mf file.
  • The Project Object Model (POM) file, pom.xml, is modified.