You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ju...@apache.org on 2009/05/22 21:28:14 UTC
svn commit: r777669 - /lucene/tika/trunk/tika-app/pom.xml
Author: jukka
Date: Fri May 22 19:28:14 2009
New Revision: 777669
URL: http://svn.apache.org/viewvc?rev=777669&view=rev
Log:
TIKA-228: Add OSGi metadata to Tika
Use the bundle plugin to package the standalone jar!
By making the dependencies <provided/> we also make it possible to use tika-app as a normal Maven dependency.
Modified:
lucene/tika/trunk/tika-app/pom.xml
Modified: lucene/tika/trunk/tika-app/pom.xml
URL: http://svn.apache.org/viewvc/lucene/tika/trunk/tika-app/pom.xml?rev=777669&r1=777668&r2=777669&view=diff
==============================================================================
--- lucene/tika/trunk/tika-app/pom.xml (original)
+++ lucene/tika/trunk/tika-app/pom.xml Fri May 22 19:28:14 2009
@@ -33,40 +33,34 @@
</parent>
<artifactId>tika-app</artifactId>
+ <packaging>bundle</packaging>
<name>Apache Tika application</name>
+ <url>http://lucene.apache.org/tika/</url>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>tika-parsers</artifactId>
<version>${project.version}</version>
+ <scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.2-beta-2</version>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <extensions>true</extensions>
<configuration>
- <descriptors>
- <descriptor>src/main/assembly/standalone.xml</descriptor>
- </descriptors>
- <archive>
- <manifest>
- <mainClass>org.apache.tika.cli.TikaCLI</mainClass>
- </manifest>
- </archive>
+ <instructions>
+ <Export-Package>org.apache.tika.*</Export-Package>
+ <Embed-Dependency>*;scope=provided;inline=javax/**|org/**|com/**|Resources/**|font_metrics.properties|repackage/**|schema*/**</Embed-Dependency>
+ <Embed-Transitive>true</Embed-Transitive>
+ <Bundle-DocURL>${project.url}</Bundle-DocURL>
+ <Main-Class>org.apache.tika.cli.TikaCLI</Main-Class>
+ </instructions>
</configuration>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
</plugin>
</plugins>
</build>