openrewrite / openrewrite/rewrite
Cannot upgrade to 3.38.0
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3.7k
- Forks
- 570
- Avg merge
- 13h 12m
- Merged PRs (30d)
- 261
Description
When trying to upgrade our Maven project to OpenRewrite 3.38.0, I get the following:
[ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.openrewrite:rewrite-bom:pom:8.91.0 (absent): Could not find artifact org.openrewrite:rewrite-bom:pom:8.91.0 in central (https://repo.maven.apache.org/maven2) @ org.openrewrite.recipe:rewrite-recipe-bom:3.38.0, /home/runner/.m2/repository/org/openrewrite/recipe/rewrite-recipe-bom/3.38.0/rewrite-recipe-bom-3.38.0.pom, line 29, column 19
And indeed, org.openrewrite:rewrite-bom:pom:8.91.0 does not exist in Maven Central, only 8.90.x:
https://mvnrepository.com/artifact/org.openrewrite/rewrite-bom/versions
This is how we use OpenRewrite in our project, and it has worked for years, until now:
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-recipe-bom</artifactId>
<version>${version.org.openrewrite.recipe}</version> <!-- Currently has to be set to 3.37.0 -->
<type>pom</type>
<scope>import</scope>
</dependency>
Please let me know if you need any more information.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Maven resolution failure with org.openrewrite.recipe:rewrite-recipe-bom:3.38.0 and inspect its referenced rewrite-bom version. Compare that dependency with the versions available in Maven Central; done means the 3.38.0 BOM resolves successfully for a Maven project.
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
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100