You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ju...@apache.org on 2009/09/25 09:24:52 UTC

svn commit: r818753 - /incubator/pdfbox/fontbox/trunk/pom.xml

Author: jukka
Date: Fri Sep 25 07:24:52 2009
New Revision: 818753

URL: http://svn.apache.org/viewvc?rev=818753&view=rev
Log:
PDFBOX-499: Maven pom.xml & directory structure incorrect for the FontBox 0.8-incubating release

Use the bundle plugin to automatically set up the OSGi bundle.

Modified:
    incubator/pdfbox/fontbox/trunk/pom.xml

Modified: incubator/pdfbox/fontbox/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/pdfbox/fontbox/trunk/pom.xml?rev=818753&r1=818752&r2=818753&view=diff
==============================================================================
--- incubator/pdfbox/fontbox/trunk/pom.xml (original)
+++ incubator/pdfbox/fontbox/trunk/pom.xml Fri Sep 25 07:24:52 2009
@@ -30,6 +30,7 @@
   <groupId>org.apache.pdfbox</groupId>
   <artifactId>fontbox</artifactId>
   <version>1.0-SNAPSHOT</version>
+  <packaging>bundle</packaging>
 
   <name>Apache FontBox</name>
   <description>
@@ -70,74 +71,10 @@
         </configuration>
       </plugin>
       <plugin>
-        <artifactId>maven-jar-plugin</artifactId>
-        <configuration>
-          <archive>
-            <manifestFile>target/osgi/MANIFEST.MF</manifestFile>
-            <manifestEntries>
-              <Specification-Title>${project.name}</Specification-Title>
-              <Specification-Version>${project.version}</Specification-Version>
-              <Specification-Vendor>${project.organization.name}</Specification-Vendor>
-              <Implementation-Title>${project.name}</Implementation-Title>
-              <Implementation-Version>${project.version}</Implementation-Version>
-              <Implementation-Vendor>${project.organization.name}</Implementation-Vendor>
-              <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
-            </manifestEntries>
-          </archive>
-        </configuration>
-      </plugin>
-      <plugin>
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>
         <version>2.0.0</version>
-        <configuration>
-          <excludeDependencies>true</excludeDependencies>
-          <manifestLocation>target/osgi</manifestLocation>
-          <instructions>
-            <!-- stops the "uses" clauses being added to "Export-Package" manifest entry -->
-            <_nouses>true</_nouses>
-            <Bundle-SymbolicName>org.apache.fontbox</Bundle-SymbolicName>
-            <Export-Package>org.apache.fontbox.*;version=${pom.version}</Export-Package>
-            <Import-Package>*</Import-Package>
-            <Bundle-DocURL>${project.url}</Bundle-DocURL>
-          </instructions>
-        </configuration>
-        <executions>
-          <execution>
-            <id>bundle-manifest</id>
-            <phase>process-classes</phase>
-            <goals>
-              <goal>manifest</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <!--
-          - Copy LICENSE.txt and NOTICE.txt so that they are included
-          - in the -javadoc jar file for the component.
-          -->
-        <artifactId>maven-antrun-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>javadoc.resources</id>
-            <phase>generate-sources</phase>
-            <goals>
-              <goal>run</goal>
-            </goals>
-            <configuration>
-              <tasks>
-                <copy todir="${project.build.directory}/apidocs/META-INF">
-                  <fileset dir="${basedir}">
-                    <include name="LICENSE.txt" />
-                    <include name="NOTICE.txt" />
-                    <include name="README.txt" />
-                  </fileset>
-                </copy>
-              </tasks>
-            </configuration>
-          </execution>
-        </executions>
+        <extensions>true</extensions>
       </plugin>
       <plugin>
         <artifactId>maven-javadoc-plugin</artifactId>