I think that's exactly what Yann said :) if it is only a dependency but not a module, maven will NOT build it. It will download from repository (either local or remote) instead.
Adrian Shum -----Original Message----- From: Lakshman Srilakshmanan [mailto:[EMAIL PROTECTED] Sent: Thursday, September 28, 2006 11:13 AM To: Maven Users List Subject: RE: Dependency management Hi Alexander & Yann I believe if you declare a dependency and don't have it specified as a module, maven will try and download it from the repository. Thanks Lakshman > -----Original Message----- > From: Yann Le Du [mailto:[EMAIL PROTECTED] > Sent: Thursday, 28 September 2006 3:05 AM > To: Maven Users List > Subject: Re: Dependency management > > Hi Alexander, > > 2006/9/27, Morgovsky, Alexander (US - Glen Mills) <[EMAIL PROTECTED]>: > > > > Hi, I have a few questions about modules and dependencies. Does the > > order of modules listed in the parent pom.xml matter? For example, if C > > depends on A and B depends on C, then the correct order would be:A, C B > > <module>A</module> > > <module>C</module> > > <module>B</module> > > > > If I specify instead > > <module>A</module> > > <module>B</module> > > <module>C</module>, will Maven pick up the right dependency order and > > build as if I had written A,C,B? > > > Order doesn't matter, Maven does well. But you could simply try. ^_^ > > As for my second question, if I declare a dependency in a project, will > > that artifact be automatically built and deployed to maven repo so that > > it would be picked up for build? For example, if I declare: > > > > <dependency> > > <groupId>b</groupId> > > <artifactId>a</artifactId> > > <version>1.0</version> > > </dependency> > > > > Will Maven go and build a for me or do I need to include a as a > > submodule? Thanks. > > > Maven won't build it - if your dependency was Spring, Maven wouldn't build > Spring. So, yes, you need to include a as a submodule. > > HTH, > - Yann > > This message (including any attachments) contains confidential information > > intended for a specific individual and purpose, and is protected by law. If > > you are not the intended recipient, you should delete this message. > > > > > > Any disclosure, copying, or distribution of this message, or the taking of > > any action based on it, is strictly prohibited. [v.E.1] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email is confidential. If you are not the intended recipient, please delete it from your system and notify the sender immediately. Any unauthorized use, disclosure, dissemination or copying of this email is prohibited. Taifook Securities Group, its group companies and their content providers ("Parties") shall not be responsible for the accuracy or completeness of this email or its attachment, if any, which could contain virus, be corrupted, destroyed, incomplete, intercepted, lost or arrive late. The Parites do not accept liability for any damage caused by this email. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
