openrewrite / openrewrite/rewrite

Error during resolving unused dependency

Open
#5,136 6 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

I am using

  • OpenRewrite v8.42.0
  • Mavenplugin v6.2.2

How are you running OpenRewrite?

I am using Maven plugin to run OpenRewrite

        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-rest-java-client-api</artifactId>
            <version>5.0.4</version>
        </dependency>

What did you expect to see?

Running normally.

What did you see instead?

Unable to resolve dependency of com.atlassian.httpclient:atlassian-httpclient-api:0.22.3, which is introduced by com.atlassian.platform:platform:3.1.7 in dependencyManagement.
jira-rest-java-client-api defined com.atlassian.httpclient:atlassian-httpclient-api:1.0.0 in its own pom.
And com.atlassian.httpclient:atlassian-httpclient-api:0.22.3 is not in our central.

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

Reproduce the report with OpenRewrite v8.42.0 and Maven plugin v6.2.2 using jira-rest-java-client-api 5.0.4. Trace dependency resolution for com.atlassian.httpclient:atlassian-httpclient-api and the versions introduced by dependencyManagement; done means the unavailable 0.22.3 dependency is no longer requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.