Skip to content

Commit

Permalink
Normalize paths for POM Model providers
Browse files Browse the repository at this point in the history
  • Loading branch information
aloubyansky committed Apr 19, 2023
1 parent eaf0e8d commit 66b06bb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ private LocalProject loadAndCacheProject(Path pomFile) throws BootstrapMavenExce
}

private Model rawModel(Path pomFile) throws BootstrapMavenException {
final Path moduleDir = pomFile.getParent();
var moduleDir = pomFile.getParent();
if (moduleDir != null) {
// the path might not be normalized, while the modelProvider below would typically recognize normalized absolute paths
moduleDir = moduleDir.normalize().toAbsolutePath();
}
Model rawModel = rawModelCache.get(moduleDir);
if (rawModel != null) {
return rawModel;
Expand Down

0 comments on commit 66b06bb

Please sign in to comment.