LUCENE-1344 -- adding OSGi packaging to maven build script

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1130150 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2011-06-01 13:40:50 +00:00
parent 8b6be652b2
commit 914d18a2b5
1 changed files with 25 additions and 0 deletions

View File

@ -561,6 +561,31 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<!-- Adding OSGI metadata to the JAR without changing the packaging type. -->
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.4</version>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
<profiles> <profiles>