You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (Jira)" <ji...@apache.org> on 2020/04/21 11:19:00 UTC

[jira] [Assigned] (SUREFIRE-1750) Wrong resolution of JUnit5 Provider artifacts

     [ https://issues.apache.org/jira/browse/SUREFIRE-1750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tibor Digana reassigned SUREFIRE-1750:
--------------------------------------

    Assignee: Tibor Digana

> Wrong resolution of JUnit5 Provider artifacts
> ---------------------------------------------
>
>                 Key: SUREFIRE-1750
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1750
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: JUnit 5.x support, Maven Failsafe Plugin, Maven Surefire Plugin
>            Reporter: Tibor Digana
>            Assignee: Tibor Digana
>            Priority: Major
>
> It seems like Surefire 3.0.0-M4 loaded JUnit Platform artifacts version 1.3.2 into it's classpath. That seems to conflict with the version 1.6.0 the user requested by using JUnit Jupiter 5.6.0
> See also: https://github.com/junit-team/junit5/issues/2178
> {noformat}
> [DEBUG] – end configuration –
> [DEBUG] Surefire report directory: /home/hheg/git/junit_fail/target/surefire-reports
> [DEBUG] Setting system property [user.dir]=[/home/hheg/git/junit_fail]
> [DEBUG] Setting system property [localRepository]=[/home/hheg/.m2/repository]
> [DEBUG] Setting system property [basedir]=[/home/hheg/git/junit_fail]
> [DEBUG] Using JVM: /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/jre/bin/java with Java version 1.8
> [DEBUG] Adding to surefire booter test classpath: /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-booter/3.0.0-M4/surefire-booter-3.0.0-M4.jar Scope: compile
> [DEBUG] Adding to surefire booter test classpath: /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-api/3.0.0-M4/surefire-api-3.0.0-M4.jar Scope: compile
> [DEBUG] Adding to surefire booter test classpath: /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-logger-api/3.0.0-M4/surefire-logger-api-3.0.0-M4.jar Scope: compile
> [DEBUG] Adding to surefire test classpath: /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-junit-platform/3.0.0-M4/surefire-junit-platform-3.0.0-M4.jar Scope: null
> [DEBUG] Adding to surefire test classpath: /home/hheg/.m2/repository/org/apache/maven/surefire/common-java5/3.0.0-M4/common-java5-3.0.0-M4.jar Scope: compile
> [DEBUG] Adding to surefire test classpath: /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-api/3.0.0-M4/surefire-api-3.0.0-M4.jar Scope: compile
> [DEBUG] Adding to surefire test classpath: /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-logger-api/3.0.0-M4/surefire-logger-api-3.0.0-M4.jar Scope: compile
> [DEBUG] Adding to surefire test classpath: /home/hheg/.m2/repository/org/junit/platform/junit-platform-launcher/1.3.2/junit-platform-launcher-1.3.2.jar Scope: compile
> [DEBUG] Adding to surefire test classpath: /home/hheg/.m2/repository/org/apiguardian/apiguardian-api/1.0.0/apiguardian-api-1.0.0.jar Scope: compile
> [DEBUG] Adding to surefire test classpath: /home/hheg/.m2/repository/org/junit/platform/junit-platform-engine/1.3.2/junit-platform-engine-1.3.2.jar Scope: compile
> [DEBUG] Adding to surefire test classpath: /home/hheg/.m2/repository/org/junit/platform/junit-platform-commons/1.3.2/junit-platform-commons-1.3.2.jar Scope: compile
> [DEBUG] Adding to surefire test classpath: /home/hheg/.m2/repository/org/opentest4j/opentest4j/1.1.1/opentest4j-1.1.1.jar Scope: compile
> [DEBUG] Test dependencies contain org.junit.platform:junit-platform-engine
> [DEBUG] Resolving artifact org.junit.platform:junit-platform-engine:1.6.0
> [DEBUG] Resolved artifact org.junit.platform:junit-platform-engine:1.6.0 to [org.junit.platform:junit-platform-engine:jar:1.6.0, org.apiguardian:apiguardian-api:jar:1.1.0:compile, org.opentest4j:opentest4j:jar:1.2.0:compile, org.junit.platform:junit-platform-commons:jar:1.6.0:compile]
> [DEBUG] Removed artifact org.junit.platform:junit-platform-engine:jar:1.6.0 from provider. Already appears in test classpath.
> [DEBUG] Removed artifact org.apiguardian:apiguardian-api:jar:1.1.0:compile from provider. Already appears in test classpath.
> [DEBUG] Removed artifact org.opentest4j:opentest4j:jar:1.2.0:compile from provider. Already appears in test classpath.
> [DEBUG] Removed artifact org.junit.platform:junit-platform-commons:jar:1.6.0:compile from provider. Already appears in test classpath.
> [DEBUG] Resolving artifact org.junit.platform:junit-platform-launcher:1.6.0
> [DEBUG] Resolved artifact org.junit.platform:junit-platform-launcher:1.6.0 to [org.junit.platform:junit-platform-launcher:jar:1.6.0, org.apiguardian:apiguardian-api:jar:1.1.0:compile, org.junit.platform:junit-platform-engine:jar:1.6.0:compile, org.opentest4j:opentest4j:jar:1.2.0:compile, org.junit.platform:junit-platform-commons:jar:1.6.0:compile]
> [DEBUG] test classpath: /home/hheg/git/junit_fail/target/test-classes /home/hheg/git/junit_fail/target/classes /home/hheg/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.6.0/junit-jupiter-api-5.6.0.jar /home/hheg/.m2/repository/org/apiguardian/apiguardian-api/1.1.0/apiguardian-api-1.1.0.jar /home/hheg/.m2/repository/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar /home/hheg/.m2/repository/org/junit/platform/junit-platform-commons/1.6.0/junit-platform-commons-1.6.0.jar /home/hheg/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.6.0/junit-jupiter-engine-5.6.0.jar /home/hheg/.m2/repository/org/junit/platform/junit-platform-engine/1.6.0/junit-platform-engine-1.6.0.jar /home/hheg/.m2/repository/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.jar
> [DEBUG] provider classpath: /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-junit-platform/3.0.0-M4/surefire-junit-platform-3.0.0-M4.jar /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-api/3.0.0-M4/surefire-api-3.0.0-M4.jar /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-logger-api/3.0.0-M4/surefire-logger-api-3.0.0-M4.jar /home/hheg/.m2/repository/org/apache/maven/surefire/common-java5/3.0.0-M4/common-java5-3.0.0-M4.jar
> [DEBUG] test(compact) classpath: test-classes classes junit-jupiter-api-5.6.0.jar apiguardian-api-1.1.0.jar opentest4j-1.2.0.jar junit-platform-commons-1.6.0.jar junit-jupiter-engine-5.6.0.jar junit-platform-engine-1.6.0.jar junit-platform-launcher-1.6.0.jar
> [DEBUG] provider(compact) classpath: surefire-junit-platform-3.0.0-M4.jar surefire-api-3.0.0-M4.jar surefire-logger-api-3.0.0-M4.jar common-java5-3.0.0-M4.jar
> [DEBUG] in-process classpath: /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-junit-platform/3.0.0-M4/surefire-junit-platform-3.0.0-M4.jar /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-api/3.0.0-M4/surefire-api-3.0.0-M4.jar /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-logger-api/3.0.0-M4/surefire-logger-api-3.0.0-M4.jar /home/hheg/.m2/repository/org/apache/maven/surefire/common-java5/3.0.0-M4/common-java5-3.0.0-M4.jar /home/hheg/.m2/repository/org/apache/maven/surefire/maven-surefire-common/3.0.0-M4/maven-surefire-common-3.0.0-M4.jar /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-extensions-api/3.0.0-M4/surefire-extensions-api-3.0.0-M4.jar
> [DEBUG] in-process(compact) classpath: surefire-junit-platform-3.0.0-M4.jar surefire-api-3.0.0-M4.jar surefire-logger-api-3.0.0-M4.jar common-java5-3.0.0-M4.jar maven-surefire-common-3.0.0-M4.jar surefire-extensions-api-3.0.0-M4.jar
> [INFO]
> [INFO] -------------------------------------------------------
> [INFO] T E S T S
> [INFO] -------------------------------------------------------
> [DEBUG] Determined Maven Process ID 12066
> [DEBUG] boot classpath: /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-booter/3.0.0-M4/surefire-booter-3.0.0-M4.jar /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-api/3.0.0-M4/surefire-api-3.0.0-M4.jar /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-logger-api/3.0.0-M4/surefire-logger-api-3.0.0-M4.jar /home/hheg/git/junit_fail/target/test-classes /home/hheg/git/junit_fail/target/classes /home/hheg/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.6.0/junit-jupiter-api-5.6.0.jar /home/hheg/.m2/repository/org/apiguardian/apiguardian-api/1.1.0/apiguardian-api-1.1.0.jar /home/hheg/.m2/repository/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar /home/hheg/.m2/repository/org/junit/platform/junit-platform-commons/1.6.0/junit-platform-commons-1.6.0.jar /home/hheg/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.6.0/junit-jupiter-engine-5.6.0.jar /home/hheg/.m2/repository/org/junit/platform/junit-platform-engine/1.6.0/junit-platform-engine-1.6.0.jar /home/hheg/.m2/repository/org/junit/platform/junit-platform-launcher/1.6.0/junit-platform-launcher-1.6.0.jar /home/hheg/.m2/repository/org/apache/maven/surefire/surefire-junit-platform/3.0.0-M4/surefire-junit-platform-3.0.0-M4.jar /home/hheg/.m2/repository/org/apache/maven/surefire/common-java5/3.0.0-M4/common-java5-3.0.0-M4.jar
> [DEBUG] boot(compact) classpath: surefire-booter-3.0.0-M4.jar surefire-api-3.0.0-M4.jar surefire-logger-api-3.0.0-M4.jar test-classes classes junit-jupiter-api-5.6.0.jar apiguardian-api-1.1.0.jar opentest4j-1.2.0.jar junit-platform-commons-1.6.0.jar junit-jupiter-engine-5.6.0.jar junit-platform-engine-1.6.0.jar junit-platform-launcher-1.6.0.jar surefire-junit-platform-3.0.0-M4.jar common-java5-3.0.0-M4.jar
> [DEBUG] Forking command line: /bin/sh -c cd /home/hheg/git/junit_fail && /usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/jre/bin/java -jar /home/hheg/git/junit_fail/target/surefire/surefirebooter1335223135765781073.jar /home/hheg/git/junit_fail/target/surefire 2020-02-10T14-11-42_186-jvmRun1 surefire2241776508346597516tmp surefire_01062025114292542072tmp
> [DEBUG] PpidChecker{ppid=12066, stopped=false, canExecuteLocalUnixPs=false, canExecuteStandardUnixPs=true}
> [INFO] Running junit_fail.JunitFailTest
> [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 s - in junit_fail.JunitFailTest
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)