Quoting Oleg Kalnichevski <[EMAIL PROTECTED]>: > On Mon, 2005-01-31 at 06:44 +0800, Brett Porter wrote: > > Yuck :) Can we help fix this? > > > > IIRC, other people having problems have corrected them by using > > "/org/apache/commons/..." (note leading /). > > Brett, > > Unfortunately this doesn't help. The trouble is that junit resource > files do not seem to be copied to <HOME>/target/test-classes/
If you declare the resources inside your unit test element they should be: <unitTest> <includes> ... </includes> <resources> <resource> <directory>src/test</directory> <includes> <include>**/*.properties</include> </includes> </resource> </resources> </unitTest> Does that help? Cheers, Brett > > If I manually copy the required resources to <HOME>/target/test-classes/ > test cases perform as expected > > Oleg > > > > It's been a while since I read the > > spec on this but it is because no / has a different classloader search > criteria > > which doesn't work inside Maven. I think another alternative is to fork the > unit > > tests. > > > > If these resolutions are correct, its probably time for a FAQ entry... > > > > - Brett > > > > Quoting "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>: > > > > > Author: olegk > > > Date: Sun Jan 30 13:02:40 2005 > > > New Revision: 149154 > > > > > > URL: http://svn.apache.org/viewcvs?view=rev&rev=149154 > > > Log: > > > Maven workaround > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]