desruisseaux opened a new pull request, #11700: URL: https://github.com/apache/maven/pull/11700
This is a combination of pull requests #11505 and #11632 on master branch. **Summary:** Maven 4.x introduces a unified `<sources>` element that supports modular project layouts (`src/<module>/<scope>/<lang>`). However, resource handling did not follow the modular layout - resources were always loaded from the legacy `<resources>` element which defaults to `src/main/resources`. This change implements automatic module-aware resource injection. - For modular projects without resource configuration in `<sources>`, automatically inject resource roots following the modular layout: `src/<module>/main/resources` and `src/<module>/test/resources`. - Resources configured via `<sources>` take priority over legacy `<resources>`. - Issue warnings (as `ModelProblem`) when explicit 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]
