mavendependencies

Including specific transitive dependencies in Maven


I know how to exclude transitive properties. What I want to do is the reverse - I want to exclude all, except for a very specific set of dependencies. How does one do that?


Solution

  • To solve problems with conflicting versions of transitive dependencies, you do NOT use exclusions. Instead, you use <depencencyManagement> to set the transitive version that you need.