[jboss-jira] [JBoss JIRA] Created: (JBCOMMON-116) Bundle OSGI

luca stancapiano (JIRA) jira-events at lists.jboss.org
Mon Nov 29 18:17:09 EST 2010


Bundle OSGI
-----------

                 Key: JBCOMMON-116
                 URL: https://jira.jboss.org/browse/JBCOMMON-116
             Project: JBoss Common
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: common-core (2.x)
    Affects Versions: 2.2.18.GA 
         Environment: felix
            Reporter: luca stancapiano


could be useful a conversion of the common core packge in OSGI so we can install it inside a OSGI Repository. I tested it with Felix. To do it we need to modify the packaging tag from 'jar' to 'bundle'  in the pom.xml and add this plugin configuration:

                        <!-- It configures the package to use inside a OSGI repository -->
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<version>1.4.3</version>
				<extensions>true</extensions>
				<configuration>
					<instructions>
						<Bundle-DocURL>http://community.jboss.org/wiki/JBossCommonProject</Bundle-DocURL>
						<Export-Package>
							${project.groupId}.*;version=${project.version};-split-package:=error
                                                </Export-Package>
						<Import-Package>
							${project.groupId}.*;!org.apache.*,*
				        </Import-Package>
					</instructions>
				</configuration>
			</plugin>

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list