Uploaded image for project: 'Serverless logic'
  1. Serverless logic
  2. SRVLOGIC-623

Kn workflow plugin conversion to Quarkus project is generating wrong maven repositories configurations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • 1.37.0
    • 1.36.0
    • Cloud:CLI
    • None
    • Test and Release 1.37
    • Critical

      Problem:

      The quarkus conversion of a project generates a pom.xml that has configured the maven community repositories instead of the RH GA maven repository.

       

       

      Steps to reproduce:

       

      Using the OSL 1.36.0 kn-workflow-plugin do:

       

      1) create a project: 

      kn workflow create -n maven-repo-issue

       

      2) convert the project to quarkus with:

      kn workflow quarkus  convert

      3) The conversion fails with the following error:

      full error:

      https://gist.github.com/wmedvede/5ae09a2ef42e974299d58d442778830d

       

      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  0.068 s
      [INFO] Finished at: 2025-07-07T11:02:12+02:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Plugin com.redhat.quarkus.platform:quarkus-maven-plugin:3.15.4.redhat-00001 or one of its dependencies could not be resolved: The following artifacts could not be resolved: com.redhat.quarkus.platform:quarkus-maven-plugin:jar:3.15.4.redhat-00001 (present, but unavailable): com.redhat.quarkus.platform:quarkus-maven-plugin:jar:3.15.4.redhat-00001 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.

       

      4) The conversion fails because the generated pom.xml has configured the community repositories instead of the RH GA repository.

       

      In the attached file, I have copied what the kn-workflow-plugin is generating, and what it really must generate for the case of the GA. 

      pom.xml

       

              dtikhomi@redhat.com Dmitrii Tikhomirov
              wmedvede@redhat.com Walter Medvedeo
              Dominik Hanak Dominik Hanak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: