summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2016-09-28 13:52:11 +0300
committerPekka Hyvönen <pekka@vaadin.com>2016-10-18 12:51:58 +0300
commit8b2de181c37ee855608153fdff9a58474bf945cc (patch)
treeb5deed73f9d94afa942beef946e500b139936f28 /pom.xml
parent8d56ae55ede761d4392ead96b1e11f5602892629 (diff)
downloadvaadin-framework-8b2de181c37ee855608153fdff9a58474bf945cc.tar.gz
vaadin-framework-8b2de181c37ee855608153fdff9a58474bf945cc.zip
Fix Mockito/Hamcrest build classpath conflict
* Fixes issue with Mockito classes not found on the vaadin-client test classpath * Fixes Mockito/Hamcrest dependency conflict described in https://tedvinke.wordpress.com/2013/12/17/mixing-junit-hamcrest-and-mockito-explaining-nosuchmethoderror/ Reapplying after dependency leaking from root project to bom module has been fixed. Change-Id: I0f2f368ccc6acb303f693aa34ace9e893ab7b573
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml16
1 files changed, 14 insertions, 2 deletions
diff --git a/pom.xml b/pom.xml
index e82cbac4a4..6848b88c8b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -161,6 +161,12 @@
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
+ <exclusions>
+ <exclusion>
+ <artifactId>hamcrest-core</artifactId>
+ <groupId>org.hamcrest</groupId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
@@ -199,8 +205,14 @@
</dependency>
<dependency>
<groupId>org.mockito</groupId>
- <artifactId>mockito-all</artifactId>
+ <artifactId>mockito-core</artifactId>
<version>1.9.5</version>
+ <exclusions>
+ <exclusion>
+ <artifactId>hamcrest-core</artifactId>
+ <groupId>org.hamcrest</groupId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
@@ -274,7 +286,7 @@
</dependency>
<dependency>
<groupId>org.mockito</groupId>
- <artifactId>mockito-all</artifactId>
+ <artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>