Open philippe-granet opened 2 months ago
Setting the parameter -Drewrite.pomCacheEnabled=false
may solve the problem
Same problem with -Drewrite.pomCacheEnabled=false
parameter
Hi @philippe-granet ; Appreciate the level of detail in your report. Is there any way to reproduce the problem in a smaller example? Since 14 poms is quite a bit to wrap my head around. Ideally this is reproduced in a unit test. Note that we have mechanisms to reproduce this in unit tests in openrewrite/rewrite in our Assertions classes
@timtebeek I have reproduce the problem with only 3 simples poms: openrewrite-bug.zip
I'm running into this issue as well, I'm a multi-module project, follow this doc :https://docs.openrewrite.org/running-recipes/multi-module-maven When I add skipMavenParsing = true, everything works fine, but it seems that the maven recipe doesn't work.
Do you happen to have any news on this one, by chance? I'm doing a huge tech stack migration, and having this fix would help significantly. 🙏
What version of OpenRewrite are you using?
I am using latest maven plugin version v5.40.2
How are you running OpenRewrite?
I am using the Maven plugin in CLI
What is the smallest, simplest way to reproduce the problem?
When I run
mvn dependency:tree
, I see my app depends onorg.jetbrains:annotations:jar:24.1.0:compile
:But when I run openrewrite on my app with this command:
it failed with this error:
MavenDownloadingException: org.jetbrains:annotations failed. No version provided
To reproduce the problem, I create an exemple from my project. Unzip this (only poms inside): openrewrite-bug.zip
and run these commands:
What did you expect to see?
No errors :-)
What did you see instead?
This error, it can't find version of org.jetbrains:annotations dependency:
What is the full stack trace of any errors you encountered?