Skip to content

[MNG-8294] Add a consistency check when loading parent #9567

@jira-importer

Description

@jira-importer

Guillaume Nodet opened MNG-8294 and commented

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.


Issue Links:

  • MNG-8340 Staged 4.0.0-beta5 broken by maven-shade-plugin
    ("causes")

Remote Links:

Backported to: 4.0.0-beta-5

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions