apache / apache/maven

[MNG-6748] Aggregate pom to set properties for all modules

Open
#8,511 1 comment 0 reactions 0 assignees View on GitHub
enhancement priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

**[Allyn Tobey](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=snappy88)** opened **[MNG-6748](https://issues.apache.org/jira/browse/MNG-6748?redirect=false)** and commented

It would be nice to be able to pass properties from an aggregate pom to module poms during a build.

Example: A project with 2 modules with different parent poms from the aggregate and want to share a version of a common dependency. The dependency is not available from the parent perspective. Each module would have to have a full GAV for a dependency, but could share the version so they will match.

 

Proposed Solution: Any property given in the aggregate pom would be available (and overwrite matching child module properties) to the child modules during build process.

 

Another [example](https://stackoverflow.com/questions/52379013/how-to-set-environment-variable-in-maven-aggregator-without-inheritance-to-be-re) with similar expectations.

---
No further details from [MNG-6748](https://issues.apache.org/jira/browse/MNG-6748?redirect=false)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.