Skip to content

Consumer POM of multi-module project should exclude <build> and <dependencies> elements#11764

Open
desruisseaux wants to merge 1 commit intoapache:maven-4.0.xfrom
Geomatys:backport/consumer-pom-of-modular-project
Open

Consumer POM of multi-module project should exclude <build> and <dependencies> elements#11764
desruisseaux wants to merge 1 commit intoapache:maven-4.0.xfrom
Geomatys:backport/consumer-pom-of-modular-project

Conversation

@desruisseaux
Copy link
Contributor

This is a backport of #11639. It modifies the code that already exists in Maven core for deriving consumer POM. The modification consists in excluding <build> and <dependencies> when the project is a multi-module project. The rational is explained in #11639. Note that for classical Maven projects, nothing change.

…ndencies> elements (apache#11639)

* Move some of the codes needed by `ProjectSourcesHelper` in an utility class that we can reuse in other packages.
* Consumer POM of multi-module project should exclude <build> and <dependencies> elements.
* Add a test that verifies that `<build>` is preserved when `preserveModelVersion=true`.

Co-authored-by: Gerd Aschemann <gerd@aschemann.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant