[ 
https://issues.apache.org/jira/browse/LUCENE-1344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13041129#comment-13041129
 ] 

Daniele commented on LUCENE-1344:
---------------------------------

The solution is almost that one, just a few corrections: 

<plugin>
              <groupId>org.apache.felix</groupId>
              <artifactId>maven-bundle-plugin</artifactId>
              <version>2.3.4</version>
              <extensions>true</extensions>
              <configuration>
                  <instructions>
                      
<Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
                      <Bundle-Name>${project.name}</Bundle-Name>
                      <Bundle-Version>${project.version}</Bundle-Version>
                  </instructions>
              </configuration>
          </plugin>

I'd also add a executions block (direct child of the plugin block)

          <executions>
            <execution>
              <id>bundle-manifest</id>
              <phase>process-classes</phase>
              <goals>
                <goal>manifest</goal>
              </goals>
            </execution>
          </executions>

so that is not needed to change the packaging type to bundle to make the 
MANIFEST information to be attached. 

> Make the Lucene jar an OSGi bundle
> ----------------------------------
>
>                 Key: LUCENE-1344
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1344
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: general/build
>            Reporter: Nicolas Lalevée
>            Priority: Minor
>         Attachments: LUCENE-1344-3.0-branch.patch, LUCENE-1344-r679133.patch, 
> LUCENE-1344-r690675.patch, LUCENE-1344-r690691.patch, 
> LUCENE-1344-r696747.patch, LUCENE-1344.patch, LUCENE-1344.patch, 
> LUCENE-1344.patch, LUCENE-1344.patch, LUCENE-1344.patch, LUCENE-1344.patch, 
> MANIFEST.MF.diff
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to