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

[CLI] Openwrite CMD doesn't mount settings file properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • MTA 7.2.1
    • MTA 7.2.0
    • MTA CLI
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Customer Facing, QE Confirmed
    • None

      Description of problem:

      Openwrite CMD doesn't mount settings file properly

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

      7.2.0 GA 

      How reproducible:

      100% 

      Steps to Reproduce:
      1. Run command like

      mta-cli  transform openrewrite --input ./event_management/evtmgmt-parent/ --target eap8-xml --maven-settings ./settings.xml
      

      Actual results:

      Transform fails with error

      INFO[0000] executing openrewrite recipe                  args="-U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.configLocation=/opt/openrewrite/eap8/xml/rewrite.yml -Drewrite.activeRecipes=org.jboss.windup.eap8.FacesWebXml" input=/home/sunil/Personal_Folder/Repository/Event_Management/event_management/evtmgmt-parent recipe=eap8-xml
      
      INFO[0000] using custom maven settings file              path=./settings.xml
      
      /usr/bin/podman run --rm --name tyLJtokfbgmZqnKY --entrypoint /usr/bin/openrewrite_entrypoint.sh --workdir /tmp/source-app/input -v /home/sunil/Personal_Folder/Repository/Event_Management/event_management/evtmgmt-parent:/opt/input:z registry.redhat.io/mta/mta-cli-rhel9:7.2.0 -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.configLocation=/opt/openrewrite/eap8/xml/rewrite.yml -Drewrite.activeRecipes=org.jboss.windup.eap8.FacesWebXml -s ./settings.xml+ cp -r /opt/input /tmp/source-app
      
      + /usr/bin/mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.configLocation=/opt/openrewrite/eap8/xml/rewrite.yml -Drewrite.activeRecipes=org.jboss.windup.eap8.FacesWebXml -s ./settings.xml
      
      [ERROR] Error executing Maven.
      
      [ERROR] The specified user settings file does not exist: /tmp/source-app/input/./settings.xml
      
      + cp -r /tmp/source-app/input /opt
      

      Expected results:

      Should mount settings.xml file and work 

      Additional info:

              emcmulla@redhat.com Emily McMullan
              ibragins@redhat.com Igor Braginsky
              Igor Braginsky Igor Braginsky
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: