No this will not error out. Transitive dependencies are added to the compile classpath, so compilation will succeed. However, it is best practice to explicitly declare all direct dependencies for a project.
I think the *typically* in your reference refers to just this case. Typically a project will not compile without direct dependencies explicitly declared, unless they are satisfied by the inclusion of a transitive dependency. -Brad On Fri, 2007-02-23 at 14:07 -0800, Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. at Cisco) wrote: > Hi > > Doesn't maven require all the direct dependencies to be mentioned > explicitly in the pom or parent poms. Direct dependency means those are > required for compilation. > But in my case, one of the dependency required for compilation is set as > transitive. > Example, my component A needs C to compile. But when I set in the > pom.xml, A depends on B, and B depends on C. the compilation went fine > with no errors. > > Shouldn't this error out ??? > > > >From this link, > http://www.developer.com/open/article.php/10930_3552026_1 > <http://www.developer.com/open/article.php/10930_3552026_1> > Transitive Dependencies > Maven 2 introduces the concept of Transitive dependencies. Direct > dependencies are those upon which a project explicitly depends. > Typically, a project will not compile without direct dependencies. > Transitive dependencies are those which direct dependencies themselves > depend upon. > > Thanks > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
