How to use Red Hat Migration Toolkit (MTA 7+) for Applications for Auto-Migration of an Application to the Jakarta EE 10 Namespace

Solution Verified - Updated

Environment

  • Migration Toolkit for Applications 7+
    • MTA cli

Issue

  • How to migrate an application from Java EE to Jakarta EE 10?
  • Migrate application to Jakarta EE 10?

Resolution

  • For MTA CLI 7+, Run mta-cli command to migrate the javax to jakarta:
mta-cli analyze --input < war name> --output ./report-output-war/ --source eap7 --target eap8 --overwrite
  • For MTA Operator select the EAP 8 target, similar to above.

Root Cause

MTA 7 does not have a specific Maven plugin and it is not based on Windup.
The article This content is not included.How to use Red Hat Migration Toolkit for Auto-Migration of an Application to the Jakarta EE 10 Namespace describes this for Windup/MTA 6, but it was retired because the fact the MTA 6 is End of Life.

Notes about EAP 7.4 Using Maven Repo.

Related Articles

Diagnostic Steps

Standard due diligence should be done in case of not returning results:
MTA-Cli:

  • analysis log file
  • details on Maven and Java collections

MTA Operator:

  • Collect the Inspect
  • Collect the Tackle Custom Resource
  • Collect the analysis yaml with the merged view

In both cases: report (in case it was generated).

Components
Category
Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.