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 2010/05/17 19:20:09 UTC

svn commit: r945247 - in /jackrabbit/trunk/jackrabbit-core/src/test/compatibility: ./ base/ base/src/main/java/org/apache/jackrabbit/harness/compatibility/ create10/ create11/ create12/ create13/ create14/ create15/ create16/ parent/

Author: jukka
Date: Mon May 17 17:20:09 2010
New Revision: 945247

URL: http://svn.apache.org/viewvc?rev=945247&view=rev
Log:
JCR-2631: Move backwards compatibility tests to trunk

Streamline the old repository creation process. Work in progress.

Added:
    jackrabbit/trunk/jackrabbit-core/src/test/compatibility/parent/
    jackrabbit/trunk/jackrabbit-core/src/test/compatibility/parent/pom.xml   (with props)
Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/compatibility/assembly.xml
    jackrabbit/trunk/jackrabbit-core/src/test/compatibility/base/pom.xml
    jackrabbit/trunk/jackrabbit-core/src/test/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java
    jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create10/pom.xml
    jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create11/pom.xml
    jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create12/pom.xml
    jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create13/pom.xml
    jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create14/pom.xml
    jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create15/pom.xml
    jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create16/pom.xml
    jackrabbit/trunk/jackrabbit-core/src/test/compatibility/pom.xml

Modified: jackrabbit/trunk/jackrabbit-core/src/test/compatibility/assembly.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/compatibility/assembly.xml?rev=945247&r1=945246&r2=945247&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/compatibility/assembly.xml (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/compatibility/assembly.xml Mon May 17 17:20:09 2010
@@ -20,12 +20,36 @@
 <assembly>
   <id>repository</id>
   <formats>
-    <format>jar</format>
+    <format>zip</format>
   </formats>
   <includeBaseDirectory>false</includeBaseDirectory>
   <fileSets>
     <fileSet>
-      <directory>target/repository</directory>
+      <directory>create10/target/repository</directory>
+      <outputDirectory></outputDirectory>
+    </fileSet>
+    <fileSet>
+      <directory>create11/target/repository</directory>
+      <outputDirectory></outputDirectory>
+    </fileSet>
+    <fileSet>
+      <directory>create12/target/repository</directory>
+      <outputDirectory></outputDirectory>
+    </fileSet>
+    <fileSet>
+      <directory>create13/target/repository</directory>
+      <outputDirectory></outputDirectory>
+    </fileSet>
+    <fileSet>
+      <directory>create14/target/repository</directory>
+      <outputDirectory></outputDirectory>
+    </fileSet>
+    <fileSet>
+      <directory>create15/target/repository</directory>
+      <outputDirectory></outputDirectory>
+    </fileSet>
+    <fileSet>
+      <directory>create16/target/repository</directory>
       <outputDirectory></outputDirectory>
     </fileSet>
   </fileSets>

Modified: jackrabbit/trunk/jackrabbit-core/src/test/compatibility/base/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/compatibility/base/pom.xml?rev=945247&r1=945246&r2=945247&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/compatibility/base/pom.xml (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/compatibility/base/pom.xml Mon May 17 17:20:09 2010
@@ -25,11 +25,13 @@
 
   <parent>
     <groupId>org.apache.jackrabbit</groupId>
-    <artifactId>jackrabbit-bc</artifactId>
+    <artifactId>jackrabbit-bc-parent</artifactId>
     <version>SNAPSHOT</version>
+    <relativePath>../parent/pom.xml</relativePath>
   </parent>
 
   <artifactId>jackrabbit-bc-base</artifactId>
+  <version>SNAPSHOT</version>
   <name>Jackrabbit Backwards Compatibility Test Utilities</name>
 
   <dependencies>

Modified: jackrabbit/trunk/jackrabbit-core/src/test/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java?rev=945247&r1=945246&r2=945247&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/compatibility/base/src/main/java/org/apache/jackrabbit/harness/compatibility/AbstractRepositoryTest.java Mon May 17 17:20:09 2010
@@ -16,29 +16,20 @@
  */
 package org.apache.jackrabbit.harness.compatibility;
 
-import static org.testng.AssertJUnit.assertEquals;
-import static org.testng.AssertJUnit.assertFalse;
-import static org.testng.AssertJUnit.assertTrue;
 import static org.testng.AssertJUnit.fail;
 
 import java.io.ByteArrayInputStream;
 import java.io.File;
-import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
-import java.io.StringReader;
 import java.util.Arrays;
 import java.util.Calendar;
 import java.util.Random;
 
 import javax.jcr.Node;
-import javax.jcr.PathNotFoundException;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 import javax.jcr.SimpleCredentials;
-import javax.jcr.Value;
-import javax.jcr.ValueFormatException;
-import javax.jcr.nodetype.NodeTypeManager;
 import javax.jcr.version.Version;
 import javax.jcr.version.VersionHistory;
 
@@ -47,7 +38,6 @@ import org.apache.commons.io.IOUtils;
 import org.apache.jackrabbit.api.JackrabbitNodeTypeManager;
 import org.apache.jackrabbit.core.RepositoryImpl;
 import org.apache.jackrabbit.core.config.RepositoryConfig;
-import org.xml.sax.InputSource;
 
 public class AbstractRepositoryTest {
 
@@ -107,7 +97,6 @@ public class AbstractRepositoryTest {
                         new SimpleCredentials("admin", "admin".toCharArray()));
                 try {
                     createTestData(session);
-                    verifyTestData(session);
                 } finally {
                     session.logout();
                 }
@@ -120,36 +109,6 @@ public class AbstractRepositoryTest {
         }
     }
 
-    /**
-     * Verifies that the given test repository can be opened and accessed.
-     *
-     * @param directory the repository directory
-     * @throws Exception if the repository could not be created
-     */
-    protected void doVerifyRepository(File directory) throws Exception {
-        File configuration = new File(directory, "repository.xml");
-
-        try {
-            RepositoryConfig config = RepositoryConfig.create(
-                    configuration.getPath(), directory.getPath());
-            RepositoryImpl repository = RepositoryImpl.create(config);
-            try {
-                Session session = repository.login(
-                        new SimpleCredentials("admin", "admin".toCharArray()));
-                try {
-                    verifyTestData(session);
-                } finally {
-                    session.logout();
-                }
-            } finally {
-                repository.shutdown();
-            }
-        } catch (RepositoryException e) {
-            e.printStackTrace();
-            fail("Access repository " + directory.getName());
-        }
-    }
-
     protected void createTestData(Session session) throws Exception {
         JackrabbitNodeTypeManager manager = (JackrabbitNodeTypeManager)
             session.getWorkspace().getNodeTypeManager();
@@ -170,18 +129,6 @@ public class AbstractRepositoryTest {
         createUsers(session);
     }
 
-    protected void verifyTestData(Session session) throws Exception {
-        Node root = session.getRootNode();
-
-        assertTrue(root.hasNode("test"));
-        Node test = root.getNode("test");
-
-        Node versionable = verifyVersionable(test);
-        verifyProperties(test, versionable);
-        verifyVersionableCopy(test, versionable);
-        verifyUsers(session);
-    }
-
     protected Node createVersionable(Node parent) throws RepositoryException {
         Node versionable = parent.addNode("versionable", "nt:myversionable");
         versionable.setProperty("foo", "A");
@@ -198,27 +145,6 @@ public class AbstractRepositoryTest {
         return versionable;
     }
 
-    protected Node verifyVersionable(Node test) throws RepositoryException {
-        assertTrue(test.hasNode("versionable"));
-        Node versionable = test.getNode("versionable");
-        assertTrue(versionable.isNodeType("nt:myversionable"));
-        assertTrue(versionable.isNodeType("nt:unstructured"));
-        assertTrue(versionable.isNodeType("mix:versionable"));
-        assertFalse(versionable.isCheckedOut());
-
-        VersionHistory history = versionable.getVersionHistory();
-        Version versionB = versionable.getBaseVersion();
-        String[] labels = history.getVersionLabels(versionB);
-        assertEquals(1, labels.length);
-        assertEquals("labelB", labels[0]);
-        Version versionA = history.getVersionByLabel("labelA");
-        versionable.restore(versionA, true);
-        assertEquals("A", versionable.getProperty("foo").getString());
-        versionable.restore(versionB, true);
-        assertEquals("B", versionable.getProperty("foo").getString());
-        return versionable;
-    }
-
     protected void createProperties(Node parent, Node reference)
             throws RepositoryException {
         Node properties = parent.addNode("properties", "nt:unstructured");
@@ -241,55 +167,7 @@ public class AbstractRepositoryTest {
         parent.save();
     }
 
-    protected void verifyProperties(Node test, Node versionable)
-            throws RepositoryException, PathNotFoundException,
-            ValueFormatException, IOException {
-        assertTrue(test.hasNode("properties"));
-        Node properties = test.getNode("properties");
-        assertTrue(properties.isNodeType("nt:unstructured"));
-
-        assertEquals(true, properties.getProperty("boolean").getBoolean());
-        assertEquals(0.123456789, properties.getProperty("double").getDouble());
-        assertEquals(1234567890, properties.getProperty("long").getLong());
-        Node reference = properties.getProperty("reference").getNode();
-        assertTrue(reference.isSame(versionable));
-        assertEquals("test", properties.getProperty("string").getString());
-
-        Value[] multiple = properties.getProperty("multiple").getValues();
-        assertEquals(3, multiple.length);
-        assertEquals("a", multiple[0].getString());
-        assertEquals("b", multiple[1].getString());
-        assertEquals("c", multiple[2].getString());
-
-        Calendar calendar = properties.getProperty("date").getDate();
-        assertEquals(1234567890, calendar.getTimeInMillis());
-
-        InputStream stream = properties.getProperty("binary").getStream();
-        try {
-            byte[] binary = new byte[100 * 1000];
-            new Random(1234567890).nextBytes(binary);
-            assertEquals(binary, IOUtils.toByteArray(stream));
-        } finally {
-            stream.close();
-        }
-    }
-
-    protected void verifyVersionableCopy(Node test, Node versionable)
-            throws RepositoryException, IOException {
-        // System.out.println(versionable.getProperty("jcr:isCheckedOut").getDefinition().getDeclaringNodeType().getName());
-        test.getSession().getWorkspace().copy(
-                versionable.getPath(),
-                versionable.getPath() + "-copy");
-        Node copy = test.getNode(versionable.getName() + "-copy");
-        // System.out.println(copy.getProperty("jcr:isCheckedOut").getDefinition().getDeclaringNodeType().getName());
-        copy.remove();
-        test.save();
-    }
-
     protected void createUsers(Session session) throws RepositoryException {
     }
 
-    protected void verifyUsers(Session session) throws RepositoryException {
-    }
 }
-

Modified: jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create10/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create10/pom.xml?rev=945247&r1=945246&r2=945247&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create10/pom.xml (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create10/pom.xml Mon May 17 17:20:09 2010
@@ -25,12 +25,13 @@
 
   <parent>
     <groupId>org.apache.jackrabbit</groupId>
-    <artifactId>jackrabbit-bc</artifactId>
+    <artifactId>jackrabbit-bc-parent</artifactId>
     <version>SNAPSHOT</version>
+    <relativePath>../parent/pom.xml</relativePath>
   </parent>
 
   <artifactId>jackrabbit-bc-create10</artifactId>
-  <name>Create Jackrabbit 1.0 Repository</name>
+  <name>Jackrabbit 1.0 Repositories</name>
 
   <dependencies>
     <dependency>
@@ -53,27 +54,5 @@
     </dependency>
   </dependencies>
 
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
-        <configuration>
-          <descriptors>
-            <descriptor>../assembly.xml</descriptor>
-          </descriptors>
-        </configuration>
-        <executions>
-          <execution>
-            <id>make-assembly</id>
-            <phase>package</phase>
-            <goals>
-              <goal>single</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-
 </project>
 

Modified: jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create11/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create11/pom.xml?rev=945247&r1=945246&r2=945247&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create11/pom.xml (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create11/pom.xml Mon May 17 17:20:09 2010
@@ -25,12 +25,13 @@
 
   <parent>
     <groupId>org.apache.jackrabbit</groupId>
-    <artifactId>jackrabbit-bc</artifactId>
+    <artifactId>jackrabbit-bc-parent</artifactId>
     <version>SNAPSHOT</version>
+    <relativePath>../parent/pom.xml</relativePath>
   </parent>
 
   <artifactId>jackrabbit-bc-create11</artifactId>
-  <name>Create Jackrabbit 1.1 Repository</name>
+  <name>Jackrabbit 1.0 Repositories</name>
 
   <dependencies>
     <dependency>
@@ -53,27 +54,5 @@
     </dependency>
   </dependencies>
 
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
-        <configuration>
-          <descriptors>
-            <descriptor>../assembly.xml</descriptor>
-          </descriptors>
-        </configuration>
-        <executions>
-          <execution>
-            <id>make-assembly</id>
-            <phase>package</phase>
-            <goals>
-              <goal>single</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-
 </project>
 

Modified: jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create12/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create12/pom.xml?rev=945247&r1=945246&r2=945247&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create12/pom.xml (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create12/pom.xml Mon May 17 17:20:09 2010
@@ -25,12 +25,13 @@
 
   <parent>
     <groupId>org.apache.jackrabbit</groupId>
-    <artifactId>jackrabbit-bc</artifactId>
+    <artifactId>jackrabbit-bc-parent</artifactId>
     <version>SNAPSHOT</version>
+    <relativePath>../parent/pom.xml</relativePath>
   </parent>
 
   <artifactId>jackrabbit-bc-create12</artifactId>
-  <name>Create Jackrabbit 1.2 Repository</name>
+  <name>Jackrabbit 1.2 Repositories</name>
 
   <dependencies>
     <dependency>
@@ -47,27 +48,5 @@
     </dependency>
   </dependencies>
 
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
-        <configuration>
-          <descriptors>
-            <descriptor>../assembly.xml</descriptor>
-          </descriptors>
-        </configuration>
-        <executions>
-          <execution>
-            <id>make-assembly</id>
-            <phase>package</phase>
-            <goals>
-              <goal>single</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-
 </project>
 

Modified: jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create13/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create13/pom.xml?rev=945247&r1=945246&r2=945247&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create13/pom.xml (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create13/pom.xml Mon May 17 17:20:09 2010
@@ -25,12 +25,13 @@
 
   <parent>
     <groupId>org.apache.jackrabbit</groupId>
-    <artifactId>jackrabbit-bc</artifactId>
+    <artifactId>jackrabbit-bc-parent</artifactId>
     <version>SNAPSHOT</version>
+    <relativePath>../parent/pom.xml</relativePath>
   </parent>
 
   <artifactId>jackrabbit-bc-create13</artifactId>
-  <name>Create Jackrabbit 1.3 Repository</name>
+  <name>Jackrabbit 1.3 Repositories</name>
 
   <dependencies>
     <dependency>
@@ -53,27 +54,5 @@
     </dependency>
   </dependencies>
 
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
-        <configuration>
-          <descriptors>
-            <descriptor>../assembly.xml</descriptor>
-          </descriptors>
-        </configuration>
-        <executions>
-          <execution>
-            <id>make-assembly</id>
-            <phase>package</phase>
-            <goals>
-              <goal>single</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-
 </project>
 

Modified: jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create14/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create14/pom.xml?rev=945247&r1=945246&r2=945247&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create14/pom.xml (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create14/pom.xml Mon May 17 17:20:09 2010
@@ -25,12 +25,13 @@
 
   <parent>
     <groupId>org.apache.jackrabbit</groupId>
-    <artifactId>jackrabbit-bc</artifactId>
+    <artifactId>jackrabbit-bc-parent</artifactId>
     <version>SNAPSHOT</version>
+    <relativePath>../parent/pom.xml</relativePath>
   </parent>
 
   <artifactId>jackrabbit-bc-create14</artifactId>
-  <name>Create Jackrabbit 1.4 Repository</name>
+  <name>Jackrabbit 1.4 Repositories</name>
 
   <dependencies>
     <dependency>
@@ -53,27 +54,5 @@
     </dependency>
   </dependencies>
 
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
-        <configuration>
-          <descriptors>
-            <descriptor>../assembly.xml</descriptor>
-          </descriptors>
-        </configuration>
-        <executions>
-          <execution>
-            <id>make-assembly</id>
-            <phase>package</phase>
-            <goals>
-              <goal>single</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-
 </project>
 

Modified: jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create15/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create15/pom.xml?rev=945247&r1=945246&r2=945247&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create15/pom.xml (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create15/pom.xml Mon May 17 17:20:09 2010
@@ -25,12 +25,13 @@
 
   <parent>
     <groupId>org.apache.jackrabbit</groupId>
-    <artifactId>jackrabbit-bc</artifactId>
+    <artifactId>jackrabbit-bc-parent</artifactId>
     <version>SNAPSHOT</version>
+    <relativePath>../parent/pom.xml</relativePath>
   </parent>
 
   <artifactId>jackrabbit-bc-create15</artifactId>
-  <name>Create Jackrabbit 1.5 Repository</name>
+  <name>Jackrabbit 1.5 Repositories</name>
 
   <dependencies>
     <dependency>
@@ -53,27 +54,5 @@
     </dependency>
   </dependencies>
 
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
-        <configuration>
-          <descriptors>
-            <descriptor>../assembly.xml</descriptor>
-          </descriptors>
-        </configuration>
-        <executions>
-          <execution>
-            <id>make-assembly</id>
-            <phase>package</phase>
-            <goals>
-              <goal>single</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-
 </project>
 

Modified: jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create16/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create16/pom.xml?rev=945247&r1=945246&r2=945247&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create16/pom.xml (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/compatibility/create16/pom.xml Mon May 17 17:20:09 2010
@@ -25,12 +25,13 @@
 
   <parent>
     <groupId>org.apache.jackrabbit</groupId>
-    <artifactId>jackrabbit-bc</artifactId>
+    <artifactId>jackrabbit-bc-parent</artifactId>
     <version>SNAPSHOT</version>
+    <relativePath>../parent/pom.xml</relativePath>
   </parent>
 
   <artifactId>jackrabbit-bc-create16</artifactId>
-  <name>Create Jackrabbit 1.6 Repository</name>
+  <name>Jackrabbit 1.6 Repositories</name>
 
   <dependencies>
     <dependency>
@@ -53,27 +54,5 @@
     </dependency>
   </dependencies>
 
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
-        <configuration>
-          <descriptors>
-            <descriptor>../assembly.xml</descriptor>
-          </descriptors>
-        </configuration>
-        <executions>
-          <execution>
-            <id>make-assembly</id>
-            <phase>package</phase>
-            <goals>
-              <goal>single</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-
 </project>
 

Added: jackrabbit/trunk/jackrabbit-core/src/test/compatibility/parent/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/compatibility/parent/pom.xml?rev=945247&view=auto
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/compatibility/parent/pom.xml (added)
+++ jackrabbit/trunk/jackrabbit-core/src/test/compatibility/parent/pom.xml Mon May 17 17:20:09 2010
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+  -->
+
+<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 ">
+  <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>parent</artifactId>
+    <version>5</version>
+  </parent>
+
+  <artifactId>jackrabbit-bc-parent</artifactId>
+  <name>Jackrabbit Backwards Compatibility Test Parent</name>
+  <version>SNAPSHOT</version>
+  <packaging>pom</packaging>
+
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <artifactId>maven-compiler-plugin</artifactId>
+          <configuration>
+            <source>1.5</source>
+            <target>1.5</target>
+          </configuration>
+        </plugin>
+        <plugin>
+          <artifactId>maven-surefire-plugin</artifactId>
+          <configuration>
+            <systemProperties>
+              <property>
+                <name>derby.stream.error.file</name>
+                <value>target/derby.log</value>
+              </property>
+            </systemProperties>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+
+</project>
+

Propchange: jackrabbit/trunk/jackrabbit-core/src/test/compatibility/parent/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jackrabbit/trunk/jackrabbit-core/src/test/compatibility/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/compatibility/pom.xml?rev=945247&r1=945246&r2=945247&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/compatibility/pom.xml (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/compatibility/pom.xml Mon May 17 17:20:09 2010
@@ -29,16 +29,17 @@
 
   <parent>
     <groupId>org.apache.jackrabbit</groupId>
-    <artifactId>parent</artifactId>
-    <version>5</version>
+    <artifactId>jackrabbit-bc-parent</artifactId>
+    <version>SNAPSHOT</version>
+    <relativePath>parent/pom.xml</relativePath>
   </parent>
 
   <artifactId>jackrabbit-bc</artifactId>
   <name>Jackrabbit Backwards Compatibility Tests</name>
-  <version>SNAPSHOT</version>
   <packaging>pom</packaging>
 
   <modules>
+    <module>parent</module>
     <module>base</module>
     <module>create10</module>
     <module>create11</module>
@@ -72,6 +73,25 @@
         </plugin>
       </plugins>
     </pluginManagement>
+    <plugins>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <configuration>
+          <descriptors>
+            <descriptor>assembly.xml</descriptor>
+          </descriptors>
+        </configuration>
+        <executions>
+          <execution>
+            <id>make-assembly</id>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
   </build>
 
 </project>