That is exactly what I think.. http://people.apache.org/repo/m2-snapshot-repository/org/apache/openejb/server/3.0-incubating-SNAPSHOT/server-3.0-incubating-20070206.122738-24.pom The above pom gets added to classpaths during dependency resolution phase in mojos that use @dependencyResolutionRequired, e.g. xmlbeans plugin. The schemaCompiler never suspected that it will get a .pom in the classpath and tries to find a class in it! The requirement that the container should not depend on anything in the server, can easily be met by this code in the top openejb pom:
<modules> <module>itests</module> <module>container</module> <module>server</module> <module>examples</module> </modules> If the container does not depend on anything in the server, the container and all its children will be built before server. When ever a new dependency is added one can visually see if that is still the case. I think this is a non standard use of the pom, and has already cause problems. Thanks Anita >From a discussion on another thread: --- Jason Dillon <[EMAIL PROTECTED]> wrote: > Not sure I understand the question. > > If you have a jar module which depends on another pom module, while > valid, the jar module does not get any of the dependencies > transitively from the pom module, nor does it ensure that any of the > > pom module's children build before the jar module is built. > > So... I don't see any reason why a dependency to a pom module would > ever be done... but perhaps I'm missing something? > > --jason > > > On Feb 6, 2007, at 8:13 PM, anita kulshreshtha wrote: > > > Does anyone know if it is a recommended practice to use a pom as > a > > dependency? > > > > Thanks > > Anita > > > > --- David Blevins <[EMAIL PROTECTED]> wrote: > > > >> > >> On Feb 6, 2007, at 6:38 PM, David Jencks wrote: > >> > >>> Offhand I'd guess this is related to the problem we had with the > >>> openejb container pom recently.... haven't kept up with whether > the > >> > >>> maven guys have done anything about it. > >>> > >>> Has everyone voted for > >>> > >>>> http://jira.codehaus.org/browse/MNG-2796 > >> > >> Voted. And as I vote for the readers, I know for a fact the maven > >> guys monitor/fix the issues with the highest votes -- i wrote the > >> script they use to do that reporting. > >> > >> Rock the vote. > >> > >> -David ____________________________________________________________________________________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121
