redfish4ktc created SUREFIRE-1393:
-------------------------------------
Summary: Failsafe generates "URI is not hierarchical" error
Key: SUREFIRE-1393
URL: https://issues.apache.org/jira/browse/SUREFIRE-1393
Project: Maven Surefire
Issue Type: Bug
Components: Maven Failsafe Plugin
Affects Versions: 2.20, 2.19.1, 2.19
Environment: Windows / Linux
Reporter: redfish4ktc
Attachments: failsafe_getResource_uri_not_hierarchical.zip
When testing the following code, I got a "URI is not hierarchical" error when
calling {{url.toURI()}}
{code:java}
URL url = this.getClass().getResource( "/messages.properties" );
File file = new File( url.toURI() );
{code}
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
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)