Artifacts from dependencies can be excluded by declaring an element inside a But in this case it\'s needed to
Best bet is to make the dependencies you don't always want to inherit intransitive.
You can do this by marking them in the parent pom with scope provided.
If you still want the parent to manage versions of these deps, you can use the tag to setup the versions you want without explicitly inheriting them, or passing that inheritance along to children.