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

 

 
 
  • ... Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)
    • ... Brad Szabo
      • ... Rémy Sanlaville

Reply via email to