Feature #178

Add OSGI manifest

Added by Zlika almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:12/01/2013
Priority:NormalDue date:
Assignee:achristian% Done:

100%

Category:-Spent time:0.50 h
Target version:-

Description

Hi,
I would like to use rxtx rebundled in an OSGI environment, so it would be great if you could add the OSGI headers inside the manifest file of the JAR.
This can be done by using the Maven Bundle plugin ( http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html ).
Thank you

History

#1 Updated by achristian almost 5 years ago

  • Status changed from New to Assigned

Will try to add this with next update.
If you can provide a diff for the pom.xml, it would speed up solving this ticket.

#2 Updated by Zlika almost 5 years ago

You juste need to add the following plugin in your pom and change the project packaging type from "jar" to "bundle".

      <!-- Plugin to generate the OSGi bundle manifest -->
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>2.4.0</version>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Export-Package>gnu.io.*</Export-Package>
          </instructions>
        </configuration>
      </plugin>

Thank you!

#3 Updated by achristian almost 5 years ago

And then the resulting file is just as before, but with an extended manifest?

#4 Updated by Zlika almost 5 years ago

Yes.

#5 Updated by achristian almost 5 years ago

  • % Done changed from 0 to 100

issue fixed

#6 Updated by achristian almost 5 years ago

  • Status changed from Assigned to Closed

#7 Updated by achristian almost 5 years ago

See Download Files Version 2.1-7r2-2.

Also available in: Atom PDF