Operaton migrate-from-camunda-recipe Recipe(s) not found

Hello, I have a project in Java 17 with Spring Boot 3.3.13 using Camunda 7.22.0, and we are testing the possibility of migrating to Operaton.

When following the instructions from the repository GitHub - operaton/migrate-from-camunda-recipe: An Open Rewrite Recipe to migrate a Camunda 7 Instance to Operaton, I was unable to complete the migration due to some errors.

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?

Snapshots won’t be deployed to Maven Central. But maybe we should release a next alpha.

You should be able to build easily local.

  1. Check out GitHub - operaton/migrate-from-camunda-recipe: An Open Rewrite Recipe to migrate a Camunda 7 Instance to Operaton
  2. Run ./mvnw install

This will install version 1.0.0-alpha-2-SNAPSHOT locally and then you should be able to use it.

I have asked in our Slack channel for further assistance.

Hi abacelli :waving_hand:
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.

My build.gradle with rewrite


plugins {
  id 'org.springframework.boot' version "3.3.13"
  id 'io.spring.dependency-management' version '1.1.6'
  id 'java'
  id 'jacoco'
  id 'org.openrewrite.rewrite' version '7.0.4'
}

sourceCompatibility = 17
targetCompatibility = 17
ext {
  set('springCloudVersion', '2023.0.4')
}

repositories {
  mavenCentral()
  maven {
    url 'https://central.sonatype.com/repository/maven-snapshots/'
  }

dependencies {
  rewrite 'org.operaton:migrate-camunda-recipe:1.0.0-alpha-1'
  //others dependencies
}

rewrite {
  activeRecipe 'org.operaton.rewrite.spring.MigrateSpringBootApplication'
}

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.

1 Like

Hi @abacelli

thanks again for bringing this up! We have just released the recipes in version 1.0.0-beta-1 to Maven Central:

migrate-from-camunda-recipe

Could you give it another try? Everything should work according to documentation, now.

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

migrate-from-camunda-recipe/camunda-to-operaton-mapping.md at main · operaton/migrate-from-camunda-recipe · GitHub.

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

Thanks for help :grinning_face:

Maybe something to ask in the OpenRewrite project?