Skip to content

[MPH-175] mvn help:effective-pom leaves <parent> pom in place #306

Description

@jira-importer

Georg Lippold opened MPH-175 and commented

When executing mvn help:effective-pom, the <parent> XML node is left intact. The <parent> should be removed in the effective POM.

If you generate the effective pom to modify the project, e.g. to remove or override settings that are present in the parent pom, then including the <parent> node in the resulting XML re-introduces the settings that you wanted to modify.

Example: <parent> specifies a setting, e.g.

<project>
  <properties>
    <format>HTML</format>
  </properties>
</project>

If the <format> node is now removed from the effective POM, then it is re-introduced by including the <parent> in every maven run. The parent POM should not be required anymore in an effective POM, because all its settings should already be included in the effective POM.


Affects: 3.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:minorMinor loss of function, or other problem where easy workaround is present

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions