Reputation: 81
Now theres a conflict in my pom, we already have the jersery-container-servlet and I'm using the dependency from paymill in my pom which is this one:
<dependency>
<groupId>com.paymill</groupId>
<artifactId>paymill-java</artifactId>
<version>5.0.0</version>
</dependency>
now theres a conflict between those two and at the end it seems like all h2k-locator and h2k-api is ommited and therefore I get multiple errors.....
is there a way in eclipse I could solve this because I want to use the h2k-locator and h2k-api from my jersey-container-servlet since its a newer version
Upvotes: 0
Views: 204
Reputation: 69470
You can use the maven exclude mechanism.
<dependency>
<groupId>com.paymill</groupId>
<artifactId>paymill-java</artifactId>
<version>5.0.0</version>
<exclusions>
<exclusion> <!-- declare the exclusion here -->
<groupId>org.glassfish.hk2</groupId>
<artifactId>hk2-locator</artifactId>
</exclusion>
<exclusion> <!-- declare the exclusion here -->
<groupId>org.glassfish.hk2</groupId>
<artifactId>hk2-api</artifactId>
</exclusion>
</exclusions>
</dependency>
Upvotes: 1