xadisk
  1. xadisk
  2. XADISK-162

Generate OSGi bundle manifest attributes

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I've added a small patch to add options to the Maven POM which adds OSGi Bundle attributes to the manifest when building. This allows XADisk to be used in an OSGi framework.

        Activity

        Hide
        Jasper Siepkes added a comment - - edited

        Can't attach files to JIRA So here's the patch pasted:

         
        --- a/pom.xml
        +++ b/pom.xml
        @@ -14,8 +14,8 @@ Contributor : Christoph Beck
             <modelVersion>4.0.0</modelVersion>
             <groupId>java.net.xadisk</groupId>
             <artifactId>xadisk</artifactId>
        -    <version>SNAPSHOT</version>
        -    <packaging>jar</packaging>
        +    <version>1.3.0-SNAPSHOT</version>
        +    <packaging>bundle</packaging>
             <name>XADisk</name>
             <description>Transactional Wrapper for File Systems</description>
         	
        @@ -83,6 +83,22 @@ Contributor : Christoph Beck
                             </execution>
                         </executions>
                     </plugin>
        +            <plugin>
        +                <groupId>org.apache.felix</groupId>
        +                <artifactId>maven-bundle-plugin</artifactId>
        +                <extensions>true</extensions>
        +                <configuration>
        +                    <instructions>
        +                        <Bundle-SymbolicName>org.xadisk</Bundle-SymbolicName>
        +                        <Export-Package>org.xadisk.*</Export-Package>
        +                        <Import-Package>
        +                            javax.naming.*;resolution:=optional,
        +                            javax.resource.*;resolution:=optional,
        +                            *
        +                        </Import-Package>
        +                    </instructions>
        +                </configuration>
        +            </plugin>
                 </plugins>
                 <sourceDirectory>src</sourceDirectory>
                 <resources>
        -- 
        1.8.3.1
        
        Show
        Jasper Siepkes added a comment - - edited Can't attach files to JIRA So here's the patch pasted: --- a/pom.xml +++ b/pom.xml @@ -14,8 +14,8 @@ Contributor : Christoph Beck <modelVersion>4.0.0</modelVersion> <groupId>java.net.xadisk</groupId> <artifactId>xadisk</artifactId> - <version>SNAPSHOT</version> - <packaging>jar</packaging> + <version>1.3.0-SNAPSHOT</version> + <packaging>bundle</packaging> <name>XADisk</name> <description>Transactional Wrapper for File Systems</description> @@ -83,6 +83,22 @@ Contributor : Christoph Beck </execution> </executions> </plugin> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <extensions>true</extensions> + <configuration> + <instructions> + <Bundle-SymbolicName>org.xadisk</Bundle-SymbolicName> + <Export-Package>org.xadisk.*</Export-Package> + <Import-Package> + javax.naming.*;resolution:=optional, + javax.resource.*;resolution:=optional, + * + </Import-Package> + </instructions> + </configuration> + </plugin> </plugins> <sourceDirectory>src</sourceDirectory> <resources> -- 1.8.3.1

          People

          • Assignee:
            Nitin Verma
            Reporter:
            Jasper Siepkes
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: