For your convenience, here's the README from the attachment.

=====  begin README =====

This is my first attempt at creating a bundle for commons-logging (and
all the jars on which it depends).

While I could have simply created a single large bundle for
commons-logging that inlined all of its dependency jars, many of its
dependencies are useful library jars in their own right.  So, to be as
modular as possible, I created a bundle for each of the dependency
jars.

While my cursory testing shows that these bundles work in Felix, there
are still a couple of issues left to work out.

- Copying the library jar to project directory so <Include-Resource>
 can access it.

 Currently this is a manual process that, if possible, needs to be
 automated in maven.  A better solution would be for the
 maven-bundle-plugin to find and use the library jar file in the
 maven repository.

- Maven dependencies vs OSGi bundle dependencies.

 I don't fully understand maven dependency handling, OSGi dependency
 handling, nor how they compare.  Only the library jar file needs to
 be listed in the <dependencies> section in the pom.xml file.  This
 relieves us from worrying about dependencies when creating the
 bundle.  However, all dependency bundles must be loaded in Felix
 before commons-logging-osgi can be started, whether the dependency
 jar is used by the commons-loggin configuration or not.  For
 example, if commons-logging is not configured to use avalon, the
 avalon-framework-osgi bundle (and all of its dependencies) are
 required to be loaded and started before commons-logging-osgi will
 start.  Perhaps this is a limitation on how commons-logging was
 built.  Perhaps I misunderstand how commongs-logging is supposed to
 work.  Perhaps I misunderstand how OSGi dependency management works.

Hopefully, these bundles are useful enough for others to start using
them.  If they need refinement, perhaps others smarter than me on the
above topics can improve them as needed.

Tim Moloney
[EMAIL PROTECTED]

=====  end README =====


Tim Moloney (JIRA) wrote:
     [ 
https://issues.apache.org/jira/browse/FELIX-204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Moloney updated FELIX-204:
------------------------------

    Attachment: ApacheFelixCommons.tgz

I attached a tar file containing the following:

ApacheFelixCommons
|-- README
|-- activation-osgi
|   `-- pom.xml
|-- avalon-framework-osgi
|   `-- pom.xml
|-- commons-logging-osgi
|   `-- pom.xml
|-- dependencies
|-- jms-osgi
|   `-- pom.xml
|-- jmxtools-osgi
|   `-- pom.xml
|-- jta-osgi
|   `-- pom.xml
|-- log4j-osgi
|   `-- pom.xml
|-- logkit-osgi
|   `-- pom.xml
|-- mail-osgi
|   `-- pom.xml
|-- pom.xml
|-- servlet-api-osgi
|   `-- pom.xml
|-- template-pom.xml
`-- xerces-osgi
    `-- pom.xml


commons-logging wrapping
------------------------

                Key: FELIX-204
                URL: https://issues.apache.org/jira/browse/FELIX-204
            Project: Felix
         Issue Type: New Feature
         Components: Felix Commons
           Reporter: Tim Moloney
           Priority: Minor
        Attachments: ApacheFelixCommons.tgz


Create the bundle(s) necessary to use commons-logging with Felix.


Reply via email to