Skip to content

Maven 4: flatten goal fails for multi module project when parent uses defaults #499

@radughiorma

Description

@radughiorma

If the child modules don't declare anymore the groupId, artifactId and version the flatten goal will fail to create the effective pom.

[ERROR] Failed to execute goal org.codehaus.mojo:flatten-maven-plugin:1.7.3:flatten (flatten) on project module2: failed to create the effective pom: 3 problems were encountered while building the effective model for [unknown-group-id]:module2:[unknown-version]
[ERROR] [FATAL] 'parent.groupId' is missing. @
[ERROR] [FATAL] 'parent.artifactId' is missing. @
[ERROR] [FATAL] 'parent.version' is missing. @
[ERROR] -> [Help 1]

<parent/> <artifactId>module2</artifactId>
<parent> <relativePath>../pom.xml</relativePath> </parent> <artifactId>module3</artifactId>

maven-flatten-plugin-multimodule-issue

maven-flatten-plugin-multimodule-issue-master.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions