Commit 83bd388
authored
Fix URISyntaxException in MavenPomDownloader for unresolved version placeholders (#7313)
* Fix URISyntaxException in MavenPomDownloader for unresolved property placeholders
When a parent POM version contains unresolved placeholders like ${revision}
and the parent isn't found locally, the download method would construct a URI
with illegal { } characters, causing URISyntaxException. Added an early check
to throw MavenDownloadingException instead, which callers already handle
gracefully by falling through to property resolution.
* Apply suggestion from @timtebeek1 parent b0f88bc commit 83bd388
2 files changed
Lines changed: 11 additions & 4 deletions
File tree
- rewrite-maven/src
- main/java/org/openrewrite/maven/internal
- test/java/org/openrewrite/maven/internal
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
561 | 567 | | |
562 | 568 | | |
563 | 569 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1108 | 1108 | | |
1109 | 1109 | | |
1110 | 1110 | | |
1111 | | - | |
| 1111 | + | |
1112 | 1112 | | |
1113 | 1113 | | |
1114 | 1114 | | |
| |||
1197 | 1197 | | |
1198 | 1198 | | |
1199 | 1199 | | |
1200 | | - | |
1201 | | - | |
1202 | | - | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
1203 | 1204 | | |
1204 | 1205 | | |
1205 | 1206 | | |
| |||
0 commit comments