Execution failed for task ':rewriteRun'.
> Could not resolve all files for configuration ':detachedConfiguration499'.
> Could not find org.operaton:migrate-camunda-recipe:1.0.0-alpha-2-SNAPSHOT.
Required by:
project :
The recipe was not found in the repositories, and when I changed it to migrate-camunda-recipe:1.0.0-alpha-1 , which exists in Maven Central, I get an error.
Execution failed for task ':rewriteRun'.
> org.openrewrite.RecipeException: Recipe(s) not found: org.operaton.rewrite.spring.MigrateSpringBootApplication
I also tried using the individual recipes, but I got the same error. I also created the init.gradle file, but had the same result.
Could anyone help me understand how to resolve this issue?
Hi abacelli
Could you please share with which command you triggered the OpenRewrite integration and your Maven/Gradle configuration of the OpenRewrite plugin?
For me it looks like the dependency to org.operaton:migrate-camunda-recipe is not configured correctly.
Seems configured correctly, but know that org.operaton:migrate-camunda-recipe:1.0.0-alpha-1 does not have the org.operaton.rewrite.spring.MigrateSpringBootApplicationrecipe. What you need is the 1.0.0-alpha-2-SNAPSHOTversion as configured here.
Because SNAPSHOTS are not yet published to Maven Central (working on it), you need to build the repository locally as Karsten describes in his comment.
Please know that we are planning to create a new release in the next days.
To solve the migration issue, I used Cursor IDE to make all the package and import changes. I used the mapping between Camunda and Operaton provided on GitHub as a reference
Another error that occurred when using OpenRewrite is that it searches for the GitHub repository origin URL through the .gitconfig file. However, in our company, we use a proxy for the repositories, and OpenRewrite was not able to find the repository because of this proxy, which caused the error.
java.lang.IllegalArgumentException: Origin: https://github.com does not match the clone url: https://github.com-emu/repo/my_project