Skip to content

Add advanced filtering features to Pom Editor Maven Plugin, including module filtering #23

@dellamas

Description

@dellamas

Problem Description:

Currently, the Pom Editor Maven Plugin has limited filtering capabilities for elements in the POM file. For large and complex projects with many dependencies and plugins, it can be difficult to manually manage the POM without the ability to filter elements based on specific criteria. Additionally, when a project has an original POM and POM templates in each module, manual editing can be even more cumbersome.
Proposed Solution:

Add advanced filtering features to the Pom Editor Maven plugin to allow users to filter POM elements based on specific criteria, including module filtering. The advanced filtering features would allow users to edit the POM more efficiently and accurately, saving time and reducing the risk of manual errors.
CLI Examples:

Filter dependencies by group and module

 mvn pom-editor:filter -DpomFile=pom.xml -DgroupId=com.example -Dmodule=core

Filter plugins by artifact ID and module

mvn pom-editor:filter -DpomFile=pom.xml -DartifactId=maven-compiler-plugin -Dmodule=webapp

Filter dependencies by scope and module

mvn pom-editor:filter -DpomFile=pom.xml -Dscope=runtime -Dmodule=core

Benefits:

Facilitates POM editing in large and complex projects.
Reduces the risk of manual errors when filtering POM elements.
Saves time for developers, making POM editing more efficient and accurate.

Acknowledgments:

We appreciate your consideration and feedback on this idea. We look forward to hearing your opinions and suggestions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions