Reputation: 1593
I notice that m2eclipse doesn't automatically add transitive dependencies to a project's build path...
For instance, if "Project A" specifies "Library X" as a dependency which, in turn, depends on "Library Y", I cannot use "Library Y" in "Project A" unless I also explicitly specify "Library Y" as a dependency the pom.xml.
Is this by design? Or a flaw in m2eclipse?
Upvotes: 1
Views: 125
Reputation: 32397
It certainly does add transitive dependencies. Note it's now called m2e. Your dependencies need to be specified in the POM. If you're not used to Maven, you might be adding the dependencies by hand using Eclipse's build path tools. You don't need to do this any more. Just right click on the project and do Maven -> Update Project... and it will sort out the build path for you.
Upvotes: 2