Skip to content

Build owner as osgi bundle #101

@robinmeiss

Description

@robinmeiss

Hello,

would it be possible to add the maven-bundle-plugin to build plugins to provide an osgified jar package of owner in maven repo? This would be very nice for us because we're using equinox osgi container and now have to manually convert actual package with BND tools.

Thank you very lot.

Regards,
Robin

POM would be:

...
 <name>OWNER :: Core</name>
    <artifactId>owner</artifactId>
    <description>Get rid of the boilerplate code in Java properties based configuration.</description>
    <packaging>bundle</packaging>   
...
<build>
        <plugins>
        <plugin>
              <groupId>org.apache.felix</groupId>
              <artifactId>maven-bundle-plugin</artifactId>
              <version>1.4.0</version>
              <extensions>true</extensions>
              <configuration>
                  <instructions>
                      <Bundle-SymbolicName>${pom.groupId}.${pom.artifactId}</Bundle-SymbolicName>
                      <Bundle-Name>${pom.name}</Bundle-Name>
                      <Bundle-Version>${pom.version}</Bundle-Version>
              <Export-Package>org.aeonbits.owner.*</Export-Package>
                  </instructions>
              </configuration>
            </plugin>   ... 

instead of:

...
 <name>OWNER :: Core</name>
    <artifactId>owner</artifactId>
    <description>Get rid of the boilerplate code in Java properties based configuration.</description>
    <packaging>jar</packaging>

JAR Manifest would be

Export-Package: org.aeonbits.owner.loaders;uses:="org.xml.sax.ext,java
 x.xml.parsers,org.xml.sax.helpers,org.xml.sax",org.aeonbits.owner.uti
 l,org.aeonbits.owner;uses:="org.aeonbits.owner.loaders,org.aeonbits.o
 wner.event",org.aeonbits.owner.event
Built-By: luigi
Tool: Bnd-0.0.238
Bundle-Name: OWNER :: Core
Created-By: Apache Maven Bundle Plugin
Bundle-Vendor: Luigi R. Viggiano
Build-Jdk: 1.7.0_25
Bundle-Version: 1.0.5
Bnd-LastModified: 1413274238540
Bundle-ManifestVersion: 2
Bundle-Description: Get rid of the boilerplate code in Java properties
  based configuration.
Bundle-License: https://raw.github.com/lviggiano/owner/master/LICENSE
Bundle-DocURL: http://en.newinstance.it
Bundle-SymbolicName: org.aeonbits.owner.owner
Import-Package: javax.xml.parsers,org.aeonbits.owner,org.aeonbits.owne
 r.event,org.aeonbits.owner.loaders,org.aeonbits.owner.util,org.xml.sa
 x,org.xml.sax.ext,org.xml.sax.helpers

instead of:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: luigi
Build-Jdk: 1.7.0_25

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions