This is an automated email from the ASF dual-hosted git repository.

desruisseaux 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 03809994a7 Document deprecation rationale in DefaultMaven (#11599)
03809994a7 is described below

commit 03809994a7f40c64a64320329b6c9b2ede384d1e
Author: Anukalp Pandey <[email protected]>
AuthorDate: Mon Dec 29 16:13:38 2025 +0530

    Document deprecation rationale in DefaultMaven (#11599)
---
 impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java 
b/impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
index 4a64c009a2..a7a09cf859 100644
--- a/impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
+++ b/impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
@@ -402,11 +402,11 @@ private void persistResumptionData(MavenExecutionResult 
result, MavenSession ses
     }
 
     /**
-     * Nobody should ever use this method.
-     *
-     * @deprecated If you use this method and your code is not in Maven Core, 
stop doing this.
+     * This method is part of Maven core internal infrastructure and was never
+     * intended for use outside of Maven Core itself. External consumers should
+     * not rely on this method, as it may change or be removed without notice.
      */
-    @Deprecated
+    @Deprecated(since = "4.0.0")
     public RepositorySystemSession newRepositorySession(MavenExecutionRequest 
request) {
         if 
(!Boolean.parseBoolean(System.getProperty("maven.newRepositorySession.warningsDisabled",
 "false"))) {
             if (logger.isDebugEnabled()) {

Reply via email to