You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2024/10/07 14:30:00 UTC

[jira] [Created] (MNG-8294) Add a consistency check when loading parent

Guillaume Nodet created MNG-8294:
------------------------------------

             Summary: Add a consistency check when loading parent
                 Key: MNG-8294
                 URL: https://issues.apache.org/jira/browse/MNG-8294
             Project: Maven
          Issue Type: Improvement
            Reporter: Guillaume Nodet
             Fix For: 4.0.0-beta-5


MNG-2196 provides an IT which was failing, but for the wrong reason.  With the addition of GAV inference in Maven 4, we need to revisit this bit to:
 * move the default parent \{{relativePath}} \{{..}} as a default value when loading the parent, rather than as a default value in the model
 * this will allow checking consistency between the provided value (if there's one) and the loaded model and fail if not equals

In short, if the parent {{relativePath}} is provided, it should be correct, else Maven 4 can find it automatically in the reactor, else load it from repository. In the first case, we need to verify the correct GAV.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)