gnodet opened a new pull request, #12311:
URL: https://github.com/apache/maven/pull/12311

   ## Problem\n\n`Path.of(\".\").normalize()` returns an empty path, which 
causes `NoSuchFileException` when Maven tries to copy resources with 
`targetPath=\".\"`.\n\n## Fix\n\nNormalize `targetPath` in `DefaultSourceRoot` 
so that `\".\"` becomes absent (`null`) and `\"./subdir\"` becomes 
`\"subdir\"`. This matches the behavior users expect — a targetPath of `\".\"` 
means \"copy to the output root\", which is the default when no targetPath is 
set.\n\n- Adds normalization logic in `DefaultSourceRoot`\n- Adds unit tests 
for `\".\"` and `\"./subdir\"` targetPath behavior\n\nSplit out from #12308 as 
suggested by Copilot review.\n\nFixes #12306\n\nšŸ¤– Generated with [Claude 
Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to