openrewrite / openrewrite/rewrite

Dependency duplicated within a child dependency from the parent was not removed with "Remove Duplicate Dependencies" recipe

Open
#3,095 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug maven
Dominant language
Java
Stars
3.7k
Forks
570
Avg merge
13h 12m
Merged PRs (30d)
261

Description

The Remove Duplicate Dependencies (https://docs.openrewrite.org/reference/recipes/maven/removeduplicatedependencies) tool is not able to recognize when a dependency is defined on a project's pom.xml and is again defined in a child pom.xml

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the Remove Duplicate Dependencies recipe linked in the issue and inspect how it handles dependencies in a parent pom.xml and child pom.xml. Reproduce the reported parent/child case, then verify that the child duplicate is removed while the parent declaration remains.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.