This is excellent information, I've been wondering about this for so long but never knew an answer existed until now.
Of course this leads me to another question :) Does this only work for compile? If I run "mvn test" from the parent directory, will the unit tests have the correct classpath with all of the submodules's classes included? Thanks so much for this information, Sujan Wayne Fay wrote: > > Places to run "mvn compile": > > /projects/torsten/ -- success with nothing installed > /projects/torsten/submoduleA, no dependencies -- success with nothing > installed > /projects/torsten/submoduleB, depends on A -- A must be installed for > compile to be successful > /projects/torsten/submoduleC, depends on B -- B must be installed for > compile to be successful > > As a result, I generally run "mvn compile" from the parent directory, > so I don't have to worry about what's installed and what isn't. > > Wayne > > On 1/17/07, Dan Tran <[EMAIL PROTECTED]> wrote: >> When you are INSIDE a module/project, the only way that maven can locate >> the >> dependencies is via local repository. >> An therefor all your dependent module must be installed.. >> >> However if you use the parent to build all modules, you dont have to run >> "maven install" but "maven compile" would do >> since maven is aware of all module's classes directory >> >> -Dan >> >> On 1/17/07, Dipl.-Ing. Torsten Liermann <[EMAIL PROTECTED]> wrote: >> > >> > (Sorry, I can not speak english). >> > >> > My question: >> > >> > Must I install modules before compiling an other module with dependcies >> > to modules? Or is there a way without installing modules and start >> > compilation >> > within modules directory? The compilation from the parent directory >> > works fine... >> > >> > Thanks, >> > Torsten >> > >> > --------------------------------------------------------------------- >> > 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] > > > -- View this message in context: http://www.nabble.com/--Must-I-install-modules-before-compiling-an-other-modules-tf3027788s177.html#a8415795 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
