You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/10/01 19:35:46 UTC
[PR] fix: log debug message when root directory is unavailable in fast clean fallback [maven-clean-plugin]
gnodet opened a new pull request, #364:
URL: https://github.com/apache/maven-clean-plugin/pull/364
## Summary
When `session.getRootDirectory()` throws `IllegalStateException` (embedded/standalone usage without a root directory), log a debug message before falling back to the system temp directory. Also initialises `rootDir` to `null` explicitly for clarity.
Note: in a standard Maven 4 CLI build, `getRootDirectory()` never throws — the root directory is always resolved before mojo execution. This fallback path is only reachable from embedded usage.
Addresses review feedback from @desruisseaux on #362.
--
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: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org