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
Post a Comment