Skip to content

Commit 4b1a992

Browse files
committed
[MDEPLOY-247] - Version 3.0.0-M1 breaks deploy using alt*DeploymentRepository with old syntax on Windows
- Enhanced docs
1 parent 539fcc7 commit 4b1a992

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

src/main/java/org/apache/maven/plugins/deploy/DeployMojo.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ public class DeployMojo
101101

102102
/**
103103
* The alternative repository to use when the project has a snapshot version.
104-
*
104+
*
105+
* <b>Note:</b> In version 2, the format was <code>id::layout::url</code>, but since 3.0.0 the layout part has been
106+
* removed because Maven 3 only supports <code>default</code> (ie. Maven 2) layout and not <code>legacy</code>
107+
* (Maven 1) layout.</b>
105108
* @since 2.8
106109
* @see DeployMojo#altDeploymentRepository
107110
*/
@@ -110,7 +113,10 @@ public class DeployMojo
110113

111114
/**
112115
* The alternative repository to use when the project has a final version.
113-
*
116+
*
117+
* <b>Note:</b> In version 2, the format was <code>id::layout::url</code>, but since 3.0.0 the layout part has been
118+
* removed because Maven 3 only supports <code>default</code> (ie. Maven 2) layout and not <code>legacy</code>
119+
* (Maven 1) layout.</b>
114120
* @since 2.8
115121
* @see DeployMojo#altDeploymentRepository
116122
*/

src/site/apt/index.apt.vm

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,16 @@ ${project.name}
8080
Please note that the following parameter has been completely removed from the plugin configuration:
8181

8282
* uniqueVersion
83-
83+
84+
* The syntax of the following parameters for the plugin has been changed:
85+
86+
* altDeploymentRepository
87+
* altReleaseDeploymentRepository
88+
* altSnapshotDeploymentRepository
89+
90+
The old format was: <<<id::layout::url>>>
91+
The new format is: <<<id::url>>>
92+
8493
[]
8594

8695
As of Maven 3, snapshot artifacts will always be deployed using a timestamped version.

0 commit comments

Comments
 (0)