goutamadwant opened a new pull request, #12958: URL: https://github.com/apache/maven/pull/12958
Fixes #9196 ### Summary Add explicit generated-source metadata to Maven 4's source model and APIs so plugins can distinguish generated files without relying on directory naming conventions. ### Implementation - Add the `generated` attribute to `org.apache.maven.api.model.Source`. - Expose generated state through `SourceRoot`. - Add explicit generated-source registration through `ProjectManager`. - Preserve the value through model XML, consumer POM, and legacy resource adapter paths. - Keep existing and legacy source registration defaulting to non-generated. - Preserve first-registration-wins behavior for duplicate source roots. ### Verification - `mvn --batch-mode verify` - Focused API, implementation, and core module verification - XML round-trip and consumer POM coverage - Generated registration, duplicate registration, and legacy resource mutation coverage Following this checklist to help us incorporate your contribution quickly and easily: - [x] This pull request addresses one issue without unrelated changes. - [x] The description explains what the change does, how, and why. - [x] The commit has a meaningful subject and DCO sign-off. - [x] Unit tests cover the behavioral changes. - [x] `mvn verify` passes. - [ ] The Core IT suite has been run successfully. - [x] I hereby declare this contribution to be licenced under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0) - [ ] In any other case, please file an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). -- 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]
