Hi, On Mon, Dec 8, 2008 at 5:34 PM, Mario-Leander Reimer <[EMAIL PROTECTED]> wrote: > I have tried to compile from source using Maven 2.0.8 under Windows XP with > JDK 1.5.0_14. > Unfortunately a test in the "Jackrabbit Object Content Mapping" project fails:
This is most likely the JCR-1905 issue [1] that a few people have reported. There's some random failure in the OCM tests. The error doesn't occur on all runs so a clean rebuild may just work. [1] https://issues.apache.org/jira/browse/JCR-1905 > When I then re-run "mvn install" without doing a prior "mvn clean" the build > will fail again, but this time in the module "Jackrabbit SPI to JCR": Some of our tests aren't cleaned up properly, so you need to use "mvn clean" between successive builds. > Any ideas how I can get the build to succeed with tests? If you don't need the OCM components you can exclude them from the Jackrabbit build by removing the <jdk>!1.4</jdk> activation line from the root POM. Alternatively you can use the patch below to selectively exclude just the troublesome tests. BR, Jukka Zitting Index: jackrabbit-ocm/pom.xml =================================================================== --- jackrabbit-ocm/pom.xml (revision 722448) +++ jackrabbit-ocm/pom.xml (working copy) @@ -66,6 +66,9 @@ <artifactId>maven-surefire-plugin</artifactId> <configuration> <argLine>-Xmx256m</argLine> + <excludes> + <exclude>**/collectionconverter/*.java</exclude> + </excludes> </configuration> </plugin> <plugin>
