Commit 02a055b
[MDEPLOY-265] Allow old alt*DeploymentRepository property format if default layout is used
The legacy format (<=2.x) of alt*DeploymentRepository is id::layout::url.
The new format (>= 3.x) of alt*DeploymentRepository is id::url which is
equivalent to id::default:url from the legacy format.
This change introduces backwards compatibility with 2.x by supporting
alt*DeploymentRepository values in the id::layout::url format if and only if
the layout is equal to "default". The "default" layout is the most commonly
used layout, so this should maintain backwards compatibility with the large
majority of projects using the alt*DeploymentRepository properties.
* Usage of the legacy format with the "default" layout will result in a warning
message being logged.
* Usage of the legacy format with layouts other than "default" will result in
an exception being thrown.
This closes #151 parent 92d7e74 commit 02a055b
2 files changed
Lines changed: 11 additions & 25 deletions
File tree
- src
- main/java/org/apache/maven/plugins/deploy
- test/java/org/apache/maven/plugins/deploy
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
266 | 265 | | |
267 | 266 | | |
268 | 267 | | |
| |||
Lines changed: 8 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
581 | 575 | | |
582 | 576 | | |
583 | 577 | | |
| |||
640 | 634 | | |
641 | 635 | | |
642 | 636 | | |
643 | | - | |
| 637 | + | |
644 | 638 | | |
645 | 639 | | |
646 | 640 | | |
| |||
649 | 643 | | |
650 | 644 | | |
651 | 645 | | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
662 | 649 | | |
663 | 650 | | |
664 | 651 | | |
| |||
0 commit comments