desruisseaux opened a new pull request, #11639: URL: https://github.com/apache/maven/pull/11639
Maven 4 automatically generates a consumer POM after a successful build. This consumer POM already excludes some elements from the original POM such as the list of sub-projects. However, when building a modular project (in Java sense), there are two more elements that need to be excluded: * `<build>` because it contains (in the modular case) the `<sources>` element which is not compatible with the Maven 4.0.0 model. This pull request removes the full `<build>` element instead of only the `<sources>` child element because the build configuration is invalid without the sources, and I think that information about how the project was built is not really necessary for consumers anyway. * `<dependencies>` because the effective dependencies will be dispatched in the POM files generated by `maven-jar-plugin` for each Java module from the content of `module-info.class`. -- 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]
