Query on dependency versioning #4214
Unanswered
DavidGerald-Milligan
asked this question in
Q&A
Replies: 1 comment 1 reply
-
https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven-bom
Perhaps some other dependency already refers to platform-commons and "locks the version to be used to 1.6.2"? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I add maven dependencies on org.junit.jupiter:junit-jupiter-api:jar:5.11.3 and org.junit.jupiter:junit-jupiter-engine:jar:5:11.3 and invoke assertThrows I get java.lang.NoClassDefFoundError: org/junit/platform/commons/util/UnrecoverableExceptions
UnrecoverableExceptions is present in org.junit.platform:junit-platform-commons:5.11.3 and mvnrepository.com lists this version as a dependency.
Yet when I query the dependency tree I get
[INFO] - org.junit.jupiter:junit-jupiter-api:jar:5.11.3:test
[INFO] +- org.opentest4j:opentest4j:jar:1.3.0:test
[INFO] +- org.junit.platform:junit-platform-commons:jar:1.6.2:test
[INFO] - org.apiguardian:apiguardian-api:jar:1.1.2:test
org.junit.platform:junit-platform-commons:jar:1.6.2 does not include UnrecoverableExceptions
Updating my dependencies to org.junit.jupiter:junit-jupiter:jar:5.11.3 and org.junit.jupiter:junit-jupiter-api:jar:5.11.3 resolves the issue but I am trying to understand why we have the difference in the tree and the documented dependencies.
Beta Was this translation helpful? Give feedback.
All reactions