Skip to content

Commit

Permalink
[MNG-7726] Maven 3.9.0 resolves properties in file profile activation…
Browse files Browse the repository at this point in the history
… incorrectly (#1053)

There was a typo: the stream contains entries, so e.getKey and
e.getValue is needed.

---

https://issues.apache.org/jira/browse/MNG-7726
  • Loading branch information
cstamas authored Mar 11, 2023
1 parent 1498486 commit 5bc322a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public DefaultProfileActivationContext setProjectProperties(Properties projectPr
if (projectProperties != null) {
this.projectProperties = projectProperties.entrySet().stream()
.collect(collectingAndThen(
toMap(k -> String.valueOf(k.getKey()), v -> String.valueOf(v)),
toMap(e -> String.valueOf(e.getKey()), e -> String.valueOf(e.getValue())),
Collections::unmodifiableMap));
} else {
this.projectProperties = Collections.emptyMap();
Expand Down

0 comments on commit 5bc322a

Please sign in to comment.