Environment:
Red Hat Enterprise Linux release 8.9 (Ootpa)
openjdk version "11.0.16" 2022-07-19 LTS
I have downloaded the MTA mta-6.0.0.GA-cli-offline.zip and follow the windup-cli command from the KCS: https://access.redhat.com/articles/6987195
windup-cli --openrewrite "-DactiveRecipes=org.jboss.windup.JavaxToJakarta" "-Drewrite.configLocation=/path-to-mta-cli/rules/openrewrite/jakarta/javax/imports/rewrite.yml" --input /path-to-local-source-project>/my-application/ --goal run
I tried above command but its giving me error. i am using the application that is provided in MTA zip distribution ,under sample folder application source code is not there only ear and war file is there.
[mopatil@mopatil bin]$ ./windup-cli --openrewrite "-DactiveRecipes=org.jboss.windup.JavaxToJakarta" "-Drewrite.configLocation=/home/mopatil/Downloads/eap8/mta/mta-cli-6.0.2.GA-redhat-00001/rules/openrewrite/jakarta/javax/imports/rewrite.yml" --input /home/mopatil/Downloads/eap8/mtr-web-distribution-1.2.0.GA-redhat-00001/samples/jee-example-app-1.0.0.ear --goal run Increasing the maximum of open files to 10000. Using the CLI at /home/mopatil/Downloads/eap8/mta/mta-cli-6.0.2.GA-redhat-00001 ./windup-cli: line 273: cd: /home/mopatil/Downloads/eap8/mtr-web-distribution-1.2.0.GA-redhat-00001/samples/jee-example-app-1.0.0.ear: Not a directory [INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for org.windup.example:jee-example-web:1.0.0: Could not transfer artifact org.windup.example:jee-example:pom:1.0.0 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [jboss-earlyaccess-repository (http://maven.repository.redhat.com/earlyaccess/all/, default, releases), jboss-ga-repository (http://maven.repository.redhat.com/techpreview/all, default, releases)] and 'parent.relativePath' points at wrong local POM @ line 3, column 11 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.windup.example:jee-example-web:1.0.0 (/home/mopatil/Downloads/eap8/mta/mta-cli-6.0.2.GA-redhat-00001/bin/pom.xml) has 1 error [ERROR] Non-resolvable parent POM for org.windup.example:jee-example-web:1.0.0: Could not transfer artifact org.windup.example:jee-example:pom:1.0.0 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [jboss-earlyaccess-repository (http://maven.repository.redhat.com/earlyaccess/all/, default, releases), jboss-ga-repository (http://maven.repository.redhat.com/techpreview/all, default, releases)] and 'parent.relativePath' points at wrong local POM @ line 3, column 11 -> [Help 2] [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. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
we have build one application and point --input to project source code ,now its failed with below error
windup-cli --openrewrite "-DactiveRecipes=org.jboss.windup.JavaxToJakarta" "-Drewrite.configLocation=/path-to-mta-cli/rules/openrewrite/jakarta/javax/imports/rewrite.yml" --input ~/Downloads/DeadlockApplication/ --goal run 6:09 [ERROR] Failed to execute goal org.openrewrite.maven:rewrite-maven-plugin:4.44.0:run (default-cli) on project DeadlockApplication: Execution default-cli of goal org.openrewrite.maven:rewrite-maven-plugin:4.44.0:run failed: Recipes not found: org.jboss.windup.JavaxToJakarta [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. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
we have tried to add maven plugin. attaching the application .
Kindly helps us to resolve it.
Also in MTA 7 there is mta-cli command instead of windup-cli , please provide us complete command for mta-cli .