RE: [picocontainer-dev] [NanoContainer] Maven 2 Multiproject Build Error?
"Michael Rimov" <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Organization | Centerline Computers, Inc |
| Message-ID | <013e01c659c1$e2aa4e50$0202fea9@prosperity> |
> > -PicoContainer Multiproject Build Works Fine > > > > > > > > -If I cd into each nanocontainer directory and manually use mvn install > > for each component everything works fine. > > > > > > > > -Nanocontainer mutiproject build fails. > > > > > > > > I took a look into it and for some reason when doing a multiproject > > build, the main container source is getting compiled into: > > > > *nanocontainer/target* > > > > while the test code is getting compiled into > > > > *nanocontainer/container/target* > > > > Can't reproduce with maven 2.0.3 Mac JDK 1.5.0_05. > > I've committed a new parent pom which takes into account the missing > dependency on proxytoys. > > Also the javadoc reports seem to be failing with 2.0.3 - I've commented it > out pending investigation. > > Perhaps your problem is windows specific. But I'm puzzled that it works > for pico and not nano! > > Have you tried a mvn clean install? > > Can someone on Windows reproduce this problems? New information. It looks like the real culprit here is that when surefire is running on windows that the "current working directory" is the parent nanocontainer directory (as opposed to the "container" subdirectory). So one of the unit test fails that gets a "src/java/...." resource. I tried playing with the basedir setting for surefire, but no go there. I did see other windows-specfic issues in Surefire's Jira that have been resolved so it is conceivable to me that it could be windows specific. -Mike