0

I have this dependency tree: A->B->C->D. A is the main project. I would like to know if it’s possible to exclude only D from A without needing to add explicitly C to A? Thanks

akuma8
  • 4,160
  • 5
  • 46
  • 82

1 Answers1

0

Please refer following maven documentation which contains an example and covers your use case:

https://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html

Following is example snapshot for quick reference:

enter image description here

Anshul Singhal
  • 1,983
  • 20
  • 25