ascheman opened a new pull request, #11505: URL: https://github.com/apache/maven/pull/11505
## Summary - Automatically inject module-aware resource roots for projects using modular `<sources>` layout - Resources are picked up from `src/<module>/main/resources` and `src/<module>/test/resources` - Issue warnings when explicit legacy `<resources>` configuration is ignored in favor of modular defaults ## Problem Projects using Maven 4.x modular sources (`<source><module>org.foo.bar</module></source>`) had to manually configure `maven-resources-plugin` for each module. Resources from the modular layout paths were not automatically discovered. ## Solution When a project defines at least one module in `<sources>`: 1. Modular resource roots are automatically injected for each module 2. Legacy `<resources>` from Super POM defaults are silently replaced 3. Explicit legacy `<resources>` configuration triggers a `ModelProblem` warning ## Test plan - [x] `testModularSourcesInjectResourceRoots` - verifies resource injection for multi-module projects - [x] `testModularSourcesWithExplicitResourcesIssuesWarning` - verifies warnings are issued when legacy resources are ignored -- 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]
