Why maven module got the dependencies from the parent automatically? -


i've created parent project , 3 maven module projects. when added dependencies in parent project, dependencies added module projects automatically. not want. want parent pom holds dependencies defined , add actual dependencies module project needed providing groupid , artifactid. how can stop m2eclipse automatically including dependencies parent project.

there difference between build.dependencies , build.dependencymanagement.dependencies.

dependencies define actual dependencies, whereas dependency management defines dependency versions (to be) used dependencies.

either of inherited, that's fine. allows perform dependency management within parent while dependencies (that being managed) defined in child projects.

note there trend steer away maven dependency management through inheritance, , use composition instead ("importing dependencies").


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -