Commit 5a79346
authored
When UpdateMavenModel re-resolved a POM after XML changes (e.g. parent
version bump), the projectPoms map was built from the original marker
hierarchy and still contained the old requested Pom. Child modules
resolved recursively would therefore look up the stale root Pom and
inherit dependency management from the old grandparent.
Update the projectPoms map with the current requested Pom before passing
it to updateResult(), so recursive child resolution sees the updated
parent reference.
1 parent fcbae1c commit 5a79346
2 files changed
Lines changed: 22 additions & 2 deletions
File tree
- rewrite-maven/src
- main/java/org/openrewrite/maven
- test/java/org/openrewrite/maven
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
142 | 147 | | |
143 | | - | |
| 148 | + | |
144 | 149 | | |
145 | 150 | | |
146 | 151 | | |
| |||
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2429 | 2429 | | |
2430 | 2430 | | |
2431 | 2431 | | |
2432 | | - | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
2433 | 2441 | | |
2434 | 2442 | | |
2435 | 2443 | | |
| |||
2474 | 2482 | | |
2475 | 2483 | | |
2476 | 2484 | | |
| 2485 | + | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
| 2490 | + | |
| 2491 | + | |
2477 | 2492 | | |
2478 | 2493 | | |
2479 | 2494 | | |
| |||
0 commit comments