RE: Re: [picocontainer-dev] [NanoContainer] Maven 2 Multiproject Build Error?

Jörg Schaible <[email protected]>
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
Mauro Talevi wrote on Thursday, April 13, 2006 10:06 AM:

> Michael Rimov wrote:
> 
>> 
>> Followup -- Just did a Clean install on a Powerbook G4 running OS X
>> 10.3 
>> 
>> trunk/nanocontainer$ mvn clean test
>> 
>> Same results, test case failure in
> ScriptedContainerBuilderFactoryTestCase
>> 
>> Here's the portion that is failing the test case:
>> 
>> ScriptedContainerBuilderFactoryTestCase: 49
>> 
>>         File resource = new
>> File("src/test/org/nanocontainer/nanocontainer.groovy");
>>         assertNotNull("Could not find script resource '+
>> TEST_SCRIPT_PATH + '.", resource); 
>> 
>> 
>> The problem is that using mvn test, the current working directory is
>> always: 
>> 
>> trunk/nanocontainer
>> 
>> instead of:
>> 
>> trunk/nanocontainer/container
>> 
>> So the code that depends on the current working directory be
>> trunk/nanocontainer/container fails.
>> 
> 
> Yep - I can reproduce it as well now.
> 
> This behaviour must have changed in m2.

Fixed the POM, see configuration of workingDirectory.

[snip]

- Jörg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.