gnodet opened a new pull request, #496:
URL: https://github.com/apache/maven-resources-plugin/pull/496

   ## Summary
   
   Experimental branch migrating maven-resources-plugin to use the new Maven 4 
`BuildContext` API (from 
[apache/maven#12576](https://github.com/apache/maven/pull/12576)) via the 
updated maven-filtering library 
([apache/maven-filtering#363](https://github.com/apache/maven-filtering/pull/363)).
   
   - **Inject `BuildContext`** into `ResourcesMojo` to support incremental 
resource processing
   - **Simplify mojo logic**: delegate incremental file selection to 
maven-filtering's `BuildContext`-aware processing, removing duplicated 
include/exclude logic
   - **Use `markSkipExecution()`** when execution is skipped (e.g., `skip=true`)
   - **Fix test DI**: provide `BuildContext` and `PathMatcherFactory` via 
`@Provides @Priority(10)` in each test class to avoid `MojoExecutionScoped` 
resolution failure
   - **All 24 tests pass**
   
   ### Depends on
   - [apache/maven#12576](https://github.com/apache/maven/pull/12576) — Add 
incremental build context API and implementation
   - 
[apache/maven-filtering#363](https://github.com/apache/maven-filtering/pull/363)
 — Migrate maven-filtering to Maven 4 BuildContext API
   
   ## Test plan
   - [x] All 24 maven-resources-plugin tests pass
   - [ ] Integration test with a real Maven build
   
   🤖 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