It also matters the order of the dependencies. I've had the same issue. And basically I had to put first the scope test
and then scope compile
dependencies in the pom.xml
. If I put first the scope compile
and then the scope test
it will fail.