Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-1362

[CLI] [KANTRA] Openrewrite Jakarta transformation fails depending on the targets order

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • MTA 7.0.0
    • upstream
    • MTA CLI
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • No

      Description of problem:

      When transforming the attached application to Jakarta targets, they function correctly when executed individually.

      They also work as expected when executed sequentially, provided that the 'jakarta-imports' target is run last.

      However, if the transformation is executed in any other order, all targets executed after 'jakarta-imports' will fail.

      Version-Release number of selected component (if applicable): upstream 

      How reproducible: always 

      Steps to Reproduce:
      1. execute a transformation using the following command

      kantra transform openrewrite --input ~/Desktop/complete-duke2 --target jakarta-imports

      2. execute a tranformation on the same application using now a different jakarta target (./kantra transform openrewrite --input ~/Desktop/complete-duke2 --target jakarta-imports or jakarta-xml)

      Actual results:

       Any transformation executed after jakarta-imports will fail

      Expected results:

      If the 'jakarta-imports' transformation is successful, and the code builds without errors, and all other combinations of Jakarta targets also work, executing the 'jakarta-imports' transformation first and then the others should work as well

      Additional info:

              emcmulla@redhat.com Emily McMullan
              rh-ee-abrugaro Alejandro Brugarolas
              Alejandro Brugarolas Alejandro Brugarolas
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: