[ 
http://issues.apache.org/jira/browse/FELIX-171?page=comments#action_12448473 ] 
            
Tim Moloney commented on FELIX-171:
-----------------------------------

1. Use bnd to analyze the library jar (e.g., java -jar bnd-0.0.jar print 
path/to/FOO.jar)
2. At the bottom of the bnd output, look for "Unresolved references to ..." 
which identify package dependencies.  If found,
  a. Identifiy the library jars that provide the missing packages
  b. Recursively use this process on each dependency
3. Create a directory that will be the project directory for the bundle (e.g., 
mkdir FOO-osgi)
4. Copy the template pom.xml file to the bundle's project directory
5. Edit the pom.xml file to tailor it for the library jar.  Specifically,
  a. change artifactId
  b. verify description
  c. change version
  d. change FOO's library jar dependency (groupId, artifactId)
  e. add any other dependencies (from step 2b)
  f. change Export-Package
  g. change Private-Package or delete it if it's not needed
6. Run "mvn package" to in the project directory to create the bundle
7. Use bnd to verify the bundle's contents (e.g., java -jar bnd-0.0.jar print 
target/FOO-osgi-VERSION.jar)
8. Run "mvn install" to install the bundle in the local repository


> Document process of creating bundles using bnd
> ----------------------------------------------
>
>                 Key: FELIX-171
>                 URL: http://issues.apache.org/jira/browse/FELIX-171
>             Project: Felix
>          Issue Type: Improvement
>          Components: Felix Commons
>         Environment: OSGi application development
>            Reporter: Tim Moloney
>            Priority: Trivial
>
> Provide the list of steps required to create a library bundle by wrapping the 
> library jar using bnd (http://www.aqute.biz/Code/Bnd).

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

        

Reply via email to