Skip to main content

[JIRA] Commented: (XADISK-162) Generate OSGi bundle manifest attributes

  • From: "Jasper Siepkes (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Commented: (XADISK-162) Generate OSGi bundle manifest attributes
  • Date: Fri, 28 Feb 2014 12:54:49 +0000 (UTC)
  • Auto-submitted: auto-generated


    [ 
https://java.net/jira/browse/XADISK-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=373484#action_373484
 ] 

Jasper Siepkes commented on XADISK-162:
---------------------------------------

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

> Generate OSGi bundle manifest attributes
> ----------------------------------------
>
>                 Key: XADISK-162
>                 URL: https://java.net/jira/browse/XADISK-162
>             Project: xadisk
>          Issue Type: New Feature
>    Affects Versions: 1.2.2
>            Reporter: Jasper Siepkes
>            Assignee: Nitin Verma
>            Priority: Minor
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Created: (XADISK-162) Generate OSGi bundle manifest attributes

Jasper Siepkes (JIRA) 02/28/2014

[JIRA] Commented: (XADISK-162) Generate OSGi bundle manifest attributes

Jasper Siepkes (JIRA) 02/28/2014

[JIRA] Issue Comment Edited: (XADISK-162) Generate OSGi bundle manifest attributes

Jasper Siepkes (JIRA) 02/28/2014
 
 
Close
loading
Please Confirm
Close