开发者

dependencymanagement for multimodule maven project

I have a multimodule maven project, when dependencymanagament tag is provided in parent pom, then m2e fails to import any maven dependency, although maven build is successful. But when dependenctmanagement tag is removed m2e is able to fetch all the dependency jars and my proj开发者_Python百科ect becomes free from compilation error/ missing jars.

Now, if I remove the dependencymanagement tag from parent pom then all child poms need to be updated with version details which I dont want to do, and its a bd practice also.

So, what should i do to keep the dependencymanagement tag in parent pom, and as well as make elcipse fetch all dependency jars. Tried with enable dependency/disable dependency options in m2e, and even restarting eclipse, they seem not to work.


See Pascal's answer to this question m2Eclipse dependencyManagement section doesn't show graph.
Check that the dependencies are declared without version attributes in the sub-modules.
The version attributes from dependencyManagement will only be inherited by the child if the child declares the managed artifact as a dependency.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜