You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2026/10/13 12:42:11 UTC
(maven) branch master updated: [MNG-13349] Deprecate DistributionManagement.status in API model
This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new 0626123ea8 [MNG-13349] Deprecate DistributionManagement.status in API model
0626123ea8 is described below
commit 0626123ea838dfaf1514039fde1dec826ec4f6e0
Author: HARSHA B <ha...@gmail.com>
AuthorDate: Tue Oct 13 18:12:05 2026 +0530
[MNG-13349] Deprecate DistributionManagement.status in API model
Add @Deprecated(since = "4.0.0") annotation to the DistributionManagement.status field in maven.mdo.
The field has been rejected by the model validator since Maven 2 and is never read or acted on by Maven itself. The existing Javadoc already marked it deprecated; this adds the formal Java annotation so IDEs and tooling get a machine-readable deprecation signal.
---
api/maven-api-model/src/main/mdo/maven.mdo | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/api/maven-api-model/src/main/mdo/maven.mdo b/api/maven-api-model/src/main/mdo/maven.mdo
index 779076f2b4..a941b429f8 100644
--- a/api/maven-api-model/src/main/mdo/maven.mdo
+++ b/api/maven-api-model/src/main/mdo/maven.mdo
@@ -1553,9 +1553,13 @@
{@code partner}
(directly synced from a partner Maven 2 repository), {@code deployed} (was deployed from a Maven 2
instance), {@code verified} (has been hand verified as correct and final).
+ @deprecated This field is obsolete, not used by Maven, and must not be set in project POMs.
</description>
<required>false</required>
<type>String</type>
+ <annotations>
+ <annotation>@Deprecated(since = "4.0.0")</annotation>
+ </annotations>
</field>
</fields>
</class>