gnodet opened a new pull request, #363: URL: https://github.com/apache/maven-filtering/pull/363
## Summary Experimental branch migrating maven-filtering from the legacy plexus-build-api to the new Maven 4 `BuildContext` API (from [apache/maven#12576](https://github.com/apache/maven/pull/12576)). - **Replace plexus-build-api** with `org.apache.maven.api.build.context.BuildContext` from `maven-api-core` - **Incremental per-file processing**: use `registerAndProcessInputs()` to only process changed/new files and clean up stale outputs automatically - **Use PathMatcherFactory** for Ant-style include/exclude pattern matching instead of hand-rolled glob conversion - **Fix edge cases**: path normalization for mixed relative/absolute paths, skip `associateOutput()` when flattening (multiple inputs → same output) - **Add 9 incremental tests** (`IncrementalResourceFilteringTest`) exercising: initial build, no-change skip, modified input, deleted input cleanup, include/exclude patterns, new file detection, filtering, and subdirectory structure - **All 77 tests pass** (68 existing + 9 new) ### Depends on - [apache/maven#12576](https://github.com/apache/maven/pull/12576) — Add incremental build context API and implementation ## Test plan - [x] All 77 maven-filtering tests pass (including 9 new incremental tests) - [x] maven-resources-plugin tests pass with this version installed - [ ] Integration test with a real Maven build using the resources plugin 🤖 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]
