Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 6
    this dependency is really troublesome. I already had these exclusions. <exclusion> <groupId>junit</groupId> <artifactId>junit</artifactId> </exclusion> <exclusion> <groupId>com.vaadin.external.google</groupId> <artifactId>android-json</artifactId> </exclusion> Commented Jun 23, 2020 at 5:58
  • 1
    This is the only correct solution. The other solutions that suggest that you add a dependency with a specific version might work but the issue is that you get a transitive dependency with a wrong version. Therefore you must exclude it as mentioned here. If you want to understand the issue better, it may be also very useful to run maven in debug mode (mvn test -X) or print dependency tree (mvn dependency:tree). I used a different dependency and I had to exclude junit-jupiter-api, so try to check the dependency tree. Commented Mar 22, 2023 at 17:56