Exclude all parental dependency

Parent pom has the following dependencies

<dependencies> <dependency> <groupId>tv.my</groupId> <artifactId>cable</artifactId> </dependency> <dependency> <groupId>tv.my</groupId> <artifactId>sat</artifactId> </dependency> </dependencies> 

In the child pom, I want to eliminate all the tv.my:sat dependency. Maybe with something like this:

 <dependencies> <excludes> <exlude> <dependency> <groupId>tv.my</groupId> <artifactId>cable</artifactId> </dependency> <exlude> <excludes> </dependencies> 

How is this possible?

+4
source share
1 answer

You have no choice but to restore the parent POM to use dependencyManagement correctly. Dependencies in parental mentions are almost never a good idea, and once you use a parent who has them you are stuck.

+2
source

All Articles