Open kevinbourne75 opened 4 years ago
Note this issue is with 2.3.1. Not able to try a more recent version.
But, the issue is in FileSystemUtils.relativize(String path. File parentDir). It does the following:
if (path.toLowerCase().startsWith(basedirPath.toLowerCase())) {
toReturn = path.substring(basedirPath.length());
}
With my example you can see that it is entering this if statement and cutting off the myProj prefix by doing the substring operation.
My issues is similar to #115 but that had no resolution.
During SchemaGen there are errors. With debug I can see that the wrong path to the XSDs is being provided as XJC arguments. This is the path being used:
when it shoud be:
So it is cutting off the "myProj-" prefix.
Using -X option I see the XJC Arguments are:
The XJC Errors have the correct path though:
NOTE: When I run maven from the myProj-commons directory or the myProj-schemas directory, everything compiles fine. This only happens from running from the directory where the parent project is, the myProj directory.