Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.19, 2.19.1, 2.20
-
None
-
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