Skip to content

Commit 92f5c8b

Browse files
committed
[bugfix] Avoid transient dependency issue with Hamcrest
1 parent bef9cab commit 92f5c8b

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

exist-core/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,13 @@
456456
<artifactId>junit</artifactId>
457457
<scope>compile</scope>
458458
<!-- scope>test</scope --> <!-- not just test scope, as needed for org.exist.test -->
459+
<exclusions>
460+
<exclusion>
461+
<!-- we ourselves have a test scoped dependency on a newer hamcrest... see below! -->
462+
<groupId>org.hamcrest</groupId>
463+
<artifactId>hamcrest-core</artifactId>
464+
</exclusion>
465+
</exclusions>
459466
</dependency>
460467
<dependency>
461468
<groupId>org.hamcrest</groupId>

exist-parent/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,13 @@
432432
<groupId>org.xmlunit</groupId>
433433
<artifactId>xmlunit-matchers</artifactId>
434434
<version>${xmlunit.version}</version>
435+
<exclusions>
436+
<exclusion>
437+
<!-- we ourselves have a test scoped dependency on a newer hamcrest... see below! -->
438+
<groupId>org.hamcrest</groupId>
439+
<artifactId>hamcrest-core</artifactId>
440+
</exclusion>
441+
</exclusions>
435442
</dependency>
436443
<dependency>
437444
<groupId>org.xmlunit</groupId>
@@ -444,6 +451,13 @@
444451
<artifactId>junit</artifactId>
445452
<version>4.13.1</version>
446453
<!-- scope>test</scope --> <!-- not just test scope, as needed for org.exist.test -->
454+
<exclusions>
455+
<exclusion>
456+
<!-- we ourselves have a test scoped dependency on a newer hamcrest... see below! -->
457+
<groupId>org.hamcrest</groupId>
458+
<artifactId>hamcrest-core</artifactId>
459+
</exclusion>
460+
</exclusions>
447461
</dependency>
448462
<dependency>
449463
<groupId>org.hamcrest</groupId>

0 commit comments

Comments
 (0)