Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 41595 invoked from network); 1 Feb 2008 14:53:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2008 14:53:30 -0000 Received: (qmail 90749 invoked by uid 500); 1 Feb 2008 14:53:20 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 90668 invoked by uid 500); 1 Feb 2008 14:53:20 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 90659 invoked by uid 99); 1 Feb 2008 14:53:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 06:53:20 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2008 14:53:01 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 41131714046 for ; Fri, 1 Feb 2008 06:53:08 -0800 (PST) Message-ID: <22570495.1201877588253.JavaMail.jira@brutus> Date: Fri, 1 Feb 2008 06:53:08 -0800 (PST) From: "James Carman (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (VFS-197) Maven2 Build Fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Maven2 Build Fails ------------------ Key: VFS-197 URL: https://issues.apache.org/jira/browse/VFS-197 Project: Commons VFS Issue Type: Bug Affects Versions: 1.1 Reporter: James Carman Fix For: 1.1 On my machine, the maven2 build fails with the following exception: ------------------------------------------------------------------------------- Test set: org.apache.commons.vfs.test.FileSystemManagerFactoryTestCase ------------------------------------------------------------------------------- Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.056 sec <<< FAILURE! testDefaultInstance(org.apache.commons.vfs.test.FileSystemManagerFactoryTestCase) Time elapsed: 0.018 sec <<< FAILURE! junit.framework.AssertionFailedError: Test file "C:\Users\jcarman\IdeaProjects\commons-vfs-clean\core\target\test-classes\test-data\test.jar" does not exist. at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at org.apache.commons.AbstractVfsTestCase.getTestResource(AbstractVfsTestCase.java:85) at org.apache.commons.AbstractVfsTestCase.getTestResource(AbstractVfsTestCase.java:71) at org.apache.commons.vfs.test.FileSystemManagerFactoryTestCase.testDefaultInstance(FileSystemManagerFactoryTestCase.java:45) at org.apache.commons.vfs.test.FileSystemManagerFactoryTestCase.testDefaultInstance(FileSystemManagerFactoryTestCase.java:45) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125) at org.apache.maven.surefire.Surefire.run(Surefire.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818) The problem is that the maven build isn't copying the test data over into the target folder. I can fix this, but it will mean moving the test data around a bit by putting it in the src/main/resources (the standard place for testing resources for m2). I'll attach a patch illustrating my changes. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.