mojohaus / jaxb2-maven-plugin

JAXB2 Maven Plugin
https://www.mojohaus.org/jaxb2-maven-plugin/
Apache License 2.0
105 stars 76 forks source link

There is a problem when using variables for WSDL location on Windows machines #164

Open JakesIV opened 4 years ago

JakesIV commented 4 years ago

When generating the JAXB objects on Windows and we used variables to locate the WSDL like ${project.basedir}, this is then replaced something like "C:\somefolder\", Backslashes then fails on "Could not create the URI from string" When I then hard code the folder replacing the backslahes with forward slashes then the process works. This is not best practice as each developer would have to change this variables on each build and this will also fail on our CI/CD pipeline as this builds are on Linux and not on windows. `

${project.basedir}/src/main/resources/templates/BureauEnqInfo.wsdl-->

`

if I change it to this then the build works `

C:/somefolder/src/main/resources/templates/BureauEnqInfo.wsdl-->

`

Surely the process that creates a URI from string should be Windows and Linux compliant. Is this not a bug?

andham commented 4 years ago

Or is this for the jaxws-maven-plugin? The issue lacks basic info like plugin and version.