4

The parent pom has got 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's pom I want to exclude the whole tv.my:sat dependency. Maybe with something like this:

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

Is this somehow possible?

Tunaki
  • 132,869
  • 46
  • 340
  • 423

1 Answers1

2

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

bmargulies
  • 97,814
  • 39
  • 186
  • 310