summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2016-09-28 13:52:11 +0300
committerVaadin Code Review <review@vaadin.com>2016-10-05 08:49:04 +0000
commit2ae14ad9affca86448ac1003280b7852354d8a6b (patch)
tree67df1b2f39387be8a5fbd62afad00ae0a3139a4e /pom.xml
parente5c64043ec14f16e431c7d804c244a1abca46b1f (diff)
downloadvaadin-framework-2ae14ad9affca86448ac1003280b7852354d8a6b.tar.gz
vaadin-framework-2ae14ad9affca86448ac1003280b7852354d8a6b.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/ Change-Id: I946c464118e3b9365bb8da4fb337fd45e6073f5e
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 0092f32b63..f25f81fbaf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -183,6 +183,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>
@@ -221,8 +227,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>
@@ -291,7 +303,7 @@
</dependency>
<dependency>
<groupId>org.mockito</groupId>
- <artifactId>mockito-all</artifactId>
+ <artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>