You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by ju...@apache.org on 2009/01/13 00:21:37 UTC

svn commit: r733963 - /jackrabbit/commons/jcr-rmi/trunk/pom.xml

Author: jukka
Date: Mon Jan 12 15:21:37 2009
New Revision: 733963

URL: http://svn.apache.org/viewvc?rev=733963&view=rev
Log:
JCRRMI-1: Copy the JCR-RMI component to the new JCR Commons subproject

Updated the JCR-RMI POM to work outside the main Jackrabbit project.

Modified:
    jackrabbit/commons/jcr-rmi/trunk/pom.xml

Modified: jackrabbit/commons/jcr-rmi/trunk/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/commons/jcr-rmi/trunk/pom.xml?rev=733963&r1=733962&r2=733963&view=diff
==============================================================================
--- jackrabbit/commons/jcr-rmi/trunk/pom.xml (original)
+++ jackrabbit/commons/jcr-rmi/trunk/pom.xml Mon Jan 12 15:21:37 2009
@@ -20,29 +20,53 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
-                             http://maven.apache.org/maven-v4_0_0.xsd ">
+                             http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
-
-  <!-- ====================================================================== -->
-  <!-- P R O J E C T  D E S C R I P T I O N                                   -->
-  <!-- ====================================================================== -->
   <parent>
     <groupId>org.apache.jackrabbit</groupId>
-    <artifactId>jackrabbit-parent</artifactId>
-    <version>1.6-SNAPSHOT</version>
-    <relativePath>../jackrabbit-parent/pom.xml</relativePath>
+    <artifactId>parent</artifactId>
+    <version>2.0-SNAPSHOT</version>
   </parent>
-  <artifactId>jackrabbit-jcr-rmi</artifactId>
-  <name>Jackrabbit JCR-RMI</name>
-  <!--
-   Keep the description on a single line. Otherwise Maven might generate
-   a corrupted MANIFEST.MF (see http://jira.codehaus.org/browse/MJAR-4)
-  -->
-  <description>JCR-RMI is a transparent Remote Method Invocation (RMI) layer for the Content Repository for Java Technology API (JCR). The layer makes it possible to remotely access JCR content repositories. JCR-RMI is developed as a part of the Apache Jackrabbit project, but the implementation is compatible with all JCR content repositories.</description>
+
+  <!-- =================================================================== -->
+  <!-- P R O J E C T  D E S C R I P T I O N                                -->
+  <!-- =================================================================== -->
+  <artifactId>jcr-rmi</artifactId>
+  <version>2.0-SNAPSHOT</version>
   <packaging>bundle</packaging>
 
+  <name>Jackrabbit JCR-RMI</name>
+  <description>
+    JCR-RMI is a transparent Remote Method Invocation (RMI) layer for the
+    Content Repository for Java Technology API (JCR). The layer makes it
+    possible to remotely access JCR content repositories.
+  </description>
+
+  <!-- =================================================================== -->
+  <!-- B U I L D   S E T T I N G S                                         -->
+  <!-- =================================================================== -->
   <build>
     <plugins>
+      <!-- Use Java 1.4 for now -->
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <target>1.4</target>
+          <source>1.4</source>
+        </configuration>
+      </plugin>
+      <!-- JCR-704: Enable maven-source-plugin -->
+      <plugin>
+        <artifactId>maven-source-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>attach-sources</id>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
       <plugin>
         <artifactId>maven-antrun-plugin</artifactId>
         <executions>
@@ -63,15 +87,32 @@
         </executions>
       </plugin>
       <plugin>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <systemProperties>
+            <property>
+              <name>derby.system.durability</name>
+              <value>test</value>
+            </property>
+            <property>
+              <name>derby.stream.error.file</name>
+              <value>target/derby.log</value>
+            </property>
+          </systemProperties>
+        </configuration>
+      </plugin>
+      <plugin>
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>
+        <version>1.2.0</version>
         <extensions>true</extensions>
         <configuration>
           <instructions>
+            <Bundle-Category>jcr,jackrabbit</Bundle-Category>
+            <Bundle-DocURL>http://jackrabbit.apache.org/</Bundle-DocURL>
             <Export-Package>
               org.apache.jackrabbit.rmi.*;version=${pom.version}
             </Export-Package>
-            
             <!-- optional resolution XA -->
             <Import-Package>
               javax.transaction.xa;resolution:=optional,*
@@ -82,48 +123,87 @@
     </plugins>
   </build>
 
+  <profiles>
+    <!-- JCR-661: The antrun tools.jar dependency is not needed on macs -->
+    <profile>
+      <id>non-mac</id>
+      <activation>
+        <os>
+          <family>!mac</family>
+        </os>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <dependencies>
+              <dependency>
+                <groupId>sun</groupId>
+                <artifactId>tools</artifactId>
+                <version>1.0</version>
+                <scope>system</scope>
+                <systemPath>${java.home}/../lib/tools.jar</systemPath>
+              </dependency>
+            </dependencies>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
+  <!-- =================================================================== -->
+  <!-- D E P E N D E N C I E S                                             -->
+  <!-- =================================================================== -->
   <dependencies>
-    <!-- Test dependencies -->
-    <dependency>
-      <groupId>easymock</groupId>
-      <artifactId>easymock</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.slf4j</groupId>
-      <artifactId>slf4j-log4j12</artifactId>
-      <scope>test</scope>
-    </dependency>
+    <!-- Hard dependencies -->
     <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <scope>test</scope>
+      <groupId>javax.jcr</groupId>
+      <artifactId>jcr</artifactId>
+      <version>1.0</version>
     </dependency>
     <dependency>
       <groupId>org.apache.jackrabbit</groupId>
-      <artifactId>jackrabbit-core</artifactId>
-      <version>1.6-SNAPSHOT</version>
-      <scope>test</scope>
+      <artifactId>jackrabbit-jcr-commons</artifactId>
+      <version>1.5.0</version>
     </dependency>
-    <!-- Runtime dependencies -->
     <dependency>
-      <groupId>javax.jcr</groupId>
-      <artifactId>jcr</artifactId>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+      <version>1.5.3</version>
     </dependency>
+
+    <!-- Optional dependencies -->
     <dependency>
       <groupId>org.apache.jackrabbit</groupId>
       <artifactId>jackrabbit-api</artifactId>
       <version>1.6-SNAPSHOT</version>
       <optional>true</optional>
     </dependency>
+
+    <!-- Test dependencies -->
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.2</version>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>org.apache.jackrabbit</groupId>
-      <artifactId>jackrabbit-jcr-commons</artifactId>
+      <artifactId>jackrabbit-core</artifactId>
       <version>1.6-SNAPSHOT</version>
+      <scope>test</scope>
     </dependency>
     <dependency>
       <groupId>org.slf4j</groupId>
-      <artifactId>slf4j-api</artifactId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <version>1.5.3</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>easymock</groupId>
+      <artifactId>easymock</artifactId>
+      <version>1.1</version>
+      <scope>test</scope>
     </dependency>
   </dependencies>