I'd like to use the Maven Resources Plugin to set the XML schema location within an XML resource file:
<root xsi:noNamespaceSchemaLocation="${env.myxsdpath}" ...>
This works except for one thing - the substituted path has double backslashes instead of a single blackslash, e.g:
<root xsi:noNamespaceSchemaLocation="C:\\mypath\\myschema.xsd" ...>
So two questions:
- Is this a valid format for specifying the XSD file?
- Is there a way to tell Maven to use a single backslash instead of double backslashes?
The environment variable myxsdpath
is C:\mypath\myschema.xsd
. The maven-resources-plugin
doesn't have any special configuration other than specifying the files that are to be included with filtering turned on.