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:
- links to
-
RHBA-2025:145205 Migration Toolkit for Applications bug fix and enhancement update