On Sat, 2003-06-28 at 08:49, Brendan Lawlor wrote: > Hi, > I have a problem: I want to make a 'main' project made up of sub projects > or component projects (following the excellent article by Charles Chan of > IBM). I would like to record the dependencies of this main project on its > component parts in the POM. If I do this, then I cannot build the main > project as none of the component libraries are installed yet. But the whole > point of this main project is to build and install its component parts > (using reactor). > > This is a real chicken-and-egg situation. The only way to break the cycle is > to remove the dependencies, and if I do that, then my main project's POM > doesn't reflect its component parts. > > Am I missing a point somewhere?
Maven checks to make sure that all your binary dependencies are present before building so what you are attempting needs to be altered slightly. If you you have a directory that contains all your projects (i.e. your main project and the projects it depends on) then the reactor will see that your main project depends on your other projects and build it last. So as part of your reactor build you might specify the 'jar:install' goal which will build and install the JARs. When at last your main project is encountered all its dependencies will have been built and installed and the build for your main project should work. If this is what you are attempting and it's not working then you must check to make sure you have your dependencies stated correctly. Unfortunately we have no lint type mechanism to check for common problems yet. > Regards, > Brendan. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl [EMAIL PROTECTED] http://tambora.zenplex.org In short, man creates for himself a new religion of a rational and technical order to justify his work and to be justified in it. -- Jacques Ellul, The Technological Society --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
