On Mon, May 4, 2020 at 6:45 PM Romain Manni-Bucau <rmannibu...@gmail.com>
wrote:

> Le lun. 4 mai 2020 à 18:30, Stephane Nicoll <stephane.nic...@gmail.com> a
> écrit :
>
> ...

> OK. Why is our build failing with that error if we're importing the JUnit
> > 5.5.2 bom and it does not fail if we're importing the JUnit 5.6.2 bom?
> Our
> > test dependencies have "junit-jupiter" in test scope which brings the
> > engine.
> >
> > That looks like Surefire is using the user version to me. Anyway, if it
> > wasn't we wouldn't have the error above, wouldn't we?
> >
>
> AFAIK you don't import junit-platform-launcher in 1.5.2 so it fails.
> So surefire uses user version but misses one dep which takes in its own
> pom.
>
>
https://repo.maven.apache.org/maven2/org/junit/junit-bom/5.5.2/junit-bom-5.5.2.pom


contains

<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>1.5.2</version>
</dependency>

Reply via email to