lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée (JIRA) <>
Subject [jira] Updated: (LUCENE-1344) Make the Lucene jar an OSGi bundle
Date Wed, 23 Jul 2008 18:17:33 GMT


Nicolas Lalevée updated LUCENE-1344:

    Attachment: LUCENE-1344-r679133.patch

Here is a patch against trunk.

The patch on common-build.xml allows the core or every contrib to package the jar as an OSGi
bundle. When building, it just need a property "bundle.manifest.file" which is pointing to
the template MANIFEST.MF to use. The patch on build.xml with the MANIFEST.MF makes lucene
core jar an OSGi bundle.

Also in order to not have to maintain a third version scheme, I have added a /release target
to compute the versions. So this doc should be updated :
{code}ant -Dversion=2.3.0-rc1 -Dspec.version=2.3.0 clean dist dist-src generate-maven-artifacts{code}
should be replaced by:
{code}ant /release clean dist dist-src generate-maven-artifacts{code}

Then about maintenance, the version in the MANIFEST.MF file is just usefull for people having
the Lucene source in Eclipse and usin it as an OSGi bundle. The version is actually overridden
while building the jar. And every new java package that is part of the Lucene API have to
be added to the Export-Package header.

> Make the Lucene jar an OSGi bundle
> ----------------------------------
>                 Key: LUCENE-1344
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Nicolas Lalevée
>         Attachments: LUCENE-1344-r679133.patch
> In order to use Lucene in an OSGi environment, some additional headers are needed in
the manifest of the jar. As Lucene has no dependency, it is pretty straight forward and it
ill be easy to maintain I think.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message