Skip to content

[MNG-8708] Maven 4 inaccurate error and warning with parent relative path of ../.. #10377

Description

@jira-importer

Brian Demers opened MNG-8708 and commented

Maven 4 (rc3) has inaccurate related path warnings (possibly behavior) when the relative path is ../..
(I assume the relative path issue effects any path to parent that is not the default (up one directory (..)

In all cases below assume the parent pom is located at two levels above the child.

If the child pom points to the parent using only a relativePath, this results in a warning of:

 

 [WARNING] 'parent.relativePath' only specify relativePath or groupId/artifactId in modelVersion 4.1.0

 

Expected behavior, no warning message.

 

If the child pom points to the parent using a relative path AND groupId and artifactId, this results in the same warning (expected behavior)

[WARNING] 'parent.relativePath' only specify relativePath or groupId/artifactId in modelVersion 4.1.0

 

If the child pom points to the parent pom using ONLY the groupId and artifactId, this results in an error:

[ERROR]     'parent.version' is missing.

 

Expected behavior, POM to be resolved from the reactor (without needing a relative path or version)

 

See demo for current behavior:

https://github.com/bdemers/maven4-non-default-parent-path


Affects: 4.0.0-rc-3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions