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

Failsafe generates "URI is not hierarchical" error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.19, 2.19.1, 2.20
    • None
    • Maven Failsafe Plugin
    • None
    • Windows / Linux

    Description

      When testing the following code, I got a "URI is not hierarchical" error when calling url.toURI()

      URL url = this.getClass().getResource( "/messages.properties" );
      File file = new File( url.toURI() );
      

      This only occurs with the failsafe maven plugin, not with surefire. This was working with version 2.18.1 (and before) but not anymore with version 2.19 (and superior).

      I have attached the failsafe_getResource_uri_not_hierarchical.zip project that shows the issue (it tests both failsafe and surefire plugins).
      The problem may be related to SUREFIRE-855 introduced in version 2.19

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            redfish4ktc Thomas Bouffard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: