Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-2211

additionalClasspathElement with UNC path not working with Maven Failsafe Plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-M2, 3.2.2
    • 3.2.3
    • Maven Failsafe Plugin
    • None
    • Windows JDK17.0.5+8

    Description

      We are using the configuration parameter additionalClasspathElements (https://maven.apache.org/surefire/maven-failsafe-plugin/integration-test-mojo.html#additionalClasspathElements) to provide a log4j2 xml configuration during tests. There is configured an UNC path like this //our-server/build/failsafe containing the file.
      Until version 3.0.0-M2 everything was fine, the ressource could be found within the class loader and log4j was configured correctly (so 3.0.0-M1 was ok).
      However since the Milestone 2 of version 3 and with all later versions, the ressource could not be found within the classpath, leaving log4j unconfigured.
      From the reporting xml the classpath is configured the same, but the class loader behaves differently.
      When using a normal path like c:/build/failsafe the ressource can be found without issues.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              robert.seidel@aeb.com Robert Seidel
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: