This is obviously a bug and junit.version should be used. If you type "unpack().debugLogging()." in the IT you will see that the classpath contains junit-4.4 instead of the providing one. There are several such cases but not all ITs alter the version.
On Wed, Sep 7, 2016 at 9:10 PM, Benedikt Ritter [via Maven] < ml-node+s40175n5880159...@n5.nabble.com> wrote: > Hi surefire devs, > > I don't understand how the Junit4VersionsIT sets the JUnit version to use > during testing. The version is set as sysProp "junit.version" on > mavenLauncher, but the test pom.xml in the resources/junit4 folder > uses ${junitVersion} to set the JUnit version. How does this work? Does > maven automatically convert between the two property keys? > > Regards, > Benedikt > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://maven.40175.n5.nabble.com/SUREFIRE-How-does-Junit4VersionsIT-work- > tp5880159.html > To start a new topic under Maven Developers, email > ml-node+s40175n142166...@n5.nabble.com > To unsubscribe from Maven Developers, click here > <http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=142166&code=dGlib3JkaWdhbmFAYXBhY2hlLm9yZ3wxNDIxNjZ8LTI4OTQ5MjEwMg==> > . > NAML > <http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://maven.40175.n5.nabble.com/Re-SUREFIRE-How-does-Junit4VersionsIT-work-tp5880204.html Sent from the Maven Developers mailing list archive at Nabble.com.