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/10/20 17:49:10 UTC

svn commit: r827708 - /incubator/pdfbox/jempbox/trunk/pom.xml

Author: jukka
Date: Tue Oct 20 15:49:10 2009
New Revision: 827708

URL: http://svn.apache.org/viewvc?rev=827708&view=rev
Log:
PDFBOX-500: Update the JempBox POM file.

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

Modified: incubator/pdfbox/jempbox/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/pdfbox/jempbox/trunk/pom.xml?rev=827708&r1=827707&r2=827708&view=diff
==============================================================================
--- incubator/pdfbox/jempbox/trunk/pom.xml (original)
+++ incubator/pdfbox/jempbox/trunk/pom.xml Tue Oct 20 15:49:10 2009
@@ -24,18 +24,19 @@
   <parent>
     <groupId>org.apache</groupId>
     <artifactId>apache</artifactId>
-    <version>4</version>
-
+    <version>6</version>
   </parent>
 
   <groupId>org.apache.pdfbox</groupId>
   <artifactId>jempbox</artifactId>
-  <version>0.8.0-incubating</version>
-
-  <name>Jempbox - Java library for XMP</name>
-  <!-- Keep on a single line, see http://jira.codehaus.org/browse/MJAR-39 -->
+  <version>1.0-SNAPSHOT</version>
+  <packaging>bundle</packaging>
 
-  <description>JempBox is an open source Java library that implements Adobe's XMP(TM) specification.</description>
+  <name>Apache Jempbox</name>
+  <description>
+    JempBox is an open source Java library that implements Adobe's XMP(TM)
+    specification. JempBox is a subproject of Apache PDFBox.
+  </description>
 
   <inceptionYear>2008</inceptionYear>
   <url>http://incubator.apache.org/pdfbox/</url>
@@ -43,7 +44,6 @@
   <issueManagement>
     <system>jira</system>
     <url>http://issues.apache.org/jira/browse/PDFBOX</url>
-
   </issueManagement>
 
   <scm>
@@ -54,176 +54,98 @@
 
   <dependencies>
     <dependency>
-        <groupId>junit</groupId>
-        <artifactId>junit</artifactId>
-        <version>4.5</version>
-        <scope>test</scope>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.2</version>
+      <scope>test</scope>
     </dependency>
-
   </dependencies>
 
   <build>
-    <resources>
-      <resource>
-        <directory>${basedir}</directory>
-        <targetPath>META-INF</targetPath>
-        <includes>
-
-          <include>NOTICE.txt</include>
-          <include>LICENSE.txt</include>
-          <include>README.txt</include>
-        </includes>
-      </resource>
-    </resources>
     <plugins>
-
       <plugin>
         <artifactId>maven-compiler-plugin</artifactId>
-        <version>2.0.2</version>
         <configuration>
           <source>1.4</source>
           <target>1.4</target>
         </configuration>
-
-      </plugin>
-      <plugin>
-        <artifactId>maven-jar-plugin</artifactId>
-        <version>2.2</version>
-        <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.jempbox</Bundle-SymbolicName>
-            <Export-Package>org.apache.jempbox.*;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.
-          -->
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-antrun-plugin</artifactId>
-
-        <version>1.3</version>
-        <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>
-      </plugin>
-      <plugin>
-        <artifactId>maven-source-plugin</artifactId>
-
-        <version>2.1</version>
-        <executions>
-          <execution>
-            <id>create-source-jar</id>
-            <goals>
-              <goal>jar</goal>
-            </goals>
-
-            <phase>package</phase>
-          </execution>
-        </executions>
+        <extensions>true</extensions>
       </plugin>
       <plugin>
         <artifactId>maven-javadoc-plugin</artifactId>
-        <version>2.6</version>
-
-        <executions>
-          <execution>
-            <id>create-javadoc-jar</id>
-            <goals>
-              <goal>jar</goal>
-            </goals>
-            <phase>package</phase>
-
-            <configuration>
-              <source>${maven.compile.source}</source>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
-
-        <version>2.2-beta-4</version>
         <configuration>
-          <descriptors>
-            <descriptor>src/assembly/bin.xml</descriptor>
-            <descriptor>src/assembly/src.xml</descriptor>
-          </descriptors>
-          <tarLongFileMode>gnu</tarLongFileMode>
-
+          <source>${maven.compile.source}</source>
+          <links>
+            <link>http://java.sun.com/j2se/1.4.2/docs/api/</link>
+          </links>
         </configuration>
-        <executions>
-          <execution>
-            <goals>
-              <goal>attached</goal>
-            </goals>
-            <phase>package</phase>
-          </execution>
-
-        </executions>
       </plugin>
     </plugins>
   </build>
 
+  <profiles>
+    <profile>
+      <id>apache-release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-assembly-plugin</artifactId>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>single</goal>
+                </goals>
+                <phase>package</phase>
+                <configuration>
+                  <descriptors>
+                    <descriptor>src/assembly/src.xml</descriptor>
+                  </descriptors>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
+      <id>ikvm</id>
+      <activation>
+        <property>
+          <name>ikvm</name>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+                <phase>package</phase>
+                <configuration>
+                  <tasks>
+                    <exec executable="${ikvm}/bin/ikvmc.exe">
+                      <arg value="-reference:${ikvm}/bin/IKVM.OpenJDK.ClassLibrary.dll" />
+                      <arg value="-reference:${ikvm}/bin/IKVM.AWT.WinForms.dll" />
+                      <arg value="-target:library" />
+                      <arg value="-out:${project.build.directory}/${project.build.finalName}.dll" />
+                      <arg value="${project.build.directory}/${project.build.finalName}.jar" />
+                    </exec>
+                  </tasks>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
 </project>