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 fa42171ca2 fix: Profile schema codeSegments - 4.1.0+ has clean 
toString, remove redundant 4.2.0+ block (#14075)
fa42171ca2 is described below

commit fa42171ca281c9c1f05bd5927a1f39e721fc6460
Author: Guillaume Nodet <[email protected]>
AuthorDate: Thu Nov 19 08:55:11 2026 +0100

    fix: Profile schema codeSegments - 4.1.0+ has clean toString, remove 
redundant 4.2.0+ block (#14075)
    
    getSource/setSource were removed from the 4.1.0 schema (backport #14069),
    so the 4.1.0/4.1.99 block re-introducing them on master is wrong.
    Collapse to 4.1.0+ with the clean toString; the 4.2.0+ block is redundant.
    
    Co-authored-by: Guillaume Nodet <[email protected]>
---
 api/maven-api-model/src/main/mdo/maven.mdo | 31 +-----------------------------
 1 file changed, 1 insertion(+), 30 deletions(-)

diff --git a/api/maven-api-model/src/main/mdo/maven.mdo 
b/api/maven-api-model/src/main/mdo/maven.mdo
index 8cdb64bc51..b65d532c81 100644
--- a/api/maven-api-model/src/main/mdo/maven.mdo
+++ b/api/maven-api-model/src/main/mdo/maven.mdo
@@ -3046,36 +3046,7 @@
           </code>
         </codeSegment>
         <codeSegment>
-          <version>4.1.0/4.1.99</version>
-          <code>
-            <![CDATA[
-    public static final String SOURCE_POM = "pom";
-
-    public static final String SOURCE_SETTINGS = "settings.xml";
-
-    // We don't want this to be parseable...it's sort of 'hidden'
-    // default source for this profile is in the pom itself.
-    private String source = SOURCE_POM;
-
-    public void setSource(String source) {
-        this.source = source;
-    }
-
-    public String getSource() {
-        return source;
-    }
-
-    /**
-     * @see java.lang.Object#toString()
-     */
-    public String toString() {
-        return "Profile {id: " + getId() + ", source: " + getSource() + "}";
-    }
-            ]]>
-          </code>
-        </codeSegment>
-        <codeSegment>
-          <version>4.2.0+</version>
+          <version>4.1.0+</version>
           <code>
             <![CDATA[
     /**

Reply via email to