Chapter 4. Identify and Resolve Migration Issues


Follow these steps to use the Eclipse plugin to identify and resolve migration issues.

  1. Import the project to analyze into Eclipse.
  2. Create a run configuration. From the Issue Explorer, press the MTA button ( MTA button ).

    Select MTA button

    At a minimum, select the project to analyze. Set additional options as needed.

  3. Click Run to execute MTA.
  4. Review MTA issues listed in the Issue Explorer.
  5. Resolve MTA issues by manually updating code or by using quick fixes when available.
  6. Run MTA again as necessary. Use the drop down next to the Run button ( Run button ) to run an existing configuration.

4.1. Create an MTA Run Configuration

MTA run configurations can be created using the MTA button ( MTA button ). A run configuration specifies the project to analyze, migration path, and additional options for the execution. You can create multiple run configurations, and each must have a unique name.

Input

Migration Path
Select a migration path, which determines which MTA rulesets are used. The migration path defaults to Anything to EAP 7, but can be changed to any supported migration path.
Projects
Select one or more projects to analyze. Hold the Ctrl key to select multiple projects in the list.
Packages
Select one or more packages to scan. It is recommended to select only those packages that you need to analyze to reduce the overall MTA execution time. If no packages are selected, all packages in the project will be scanned. Hold the Ctrl key to select multiple packages in the list.

Options

Report
Check the Generate Report checkbox if you want to generate the MTA HTML report. The report will be shown in the MTA Report tab and can be found in the Issue Explorer when you group by File.
Options
Set additional MTA options. Any option that is a boolean flag, such as enableTattletale, should use true as the value. See the MTA Command-line Arguments section of the CLI Guide for a description of each MTA argument.

Rules

Custom Rules Repositories
Select custom rulesets to include during analysis if you have imported or created any custom MTA rules in the Eclipse plugin. See Add Custom Rules for more information.

4.2. Execute MTA

Once a run configuration has been created, you can execute MTA using that configuration in one of the following ways:

  • Select the run configuration from the Run Configurations dialog and click Run.
  • Select a recent run configuration from the drop down next to the Run button ( Run button ).

If the MTA server is not currently running, it will start once a run configuration is executed.

Note

If you do not plan on running MTA in the near future, it is recommended to stop the MTA server to conserve memory on your machine.

Once execution is complete, the Issue Explorer will be populated with MTA issues.

4.3. Review MTA Issues

Use the Issue Explorer to review migration issues identified by MTA. Different icons indicate the issue’s severity and state.

Change how issues are grouped by adjusting the Group By selections: Severity, Migration Rule, and File.

Issue Explorer group by options

Double-click the MTA issue in the Issue Explorer to open the associated line of code in an editor. Right-click and select Issue Details to view information about the MTA issue, including its severity and how to address it.

4.4. Resolve MTA Issues

You can resolve MTA issues by updating the code manually or by applying a quick fix when available.

4.4.1. Resolve an Issue Manually

Review the MTA issue details and additional resources and update the source code as necessary. When you update a line of code marked as an MTA issue, the MTA issue will be marked with the stale icon ( Stale issue icon ) until the next time that MTA is run on the project.

You can also manually mark an MTA issue as fixed, which will mark the issue with the resolved icon ( Resolved issue icon ) until the next time that MTA is run on the project. To mark an issue as fixed, right-click the MTA issue in the Issue Explorer and select Mark as Fixed.

4.4.2. Resolve an Issue Using a Quick Fix

Some MTA issues provide a quick fix, which assists in making the necessary edits to address the issue. See the icon legend to see the icons that indicate the MTA issue has a quick fix available.

Preview a Quick Fix
Right-click the issue and select Preview Quick Fix. This will bring up a window that allows you to preview the change. From here, you can apply the fix or close the window.
Apply a Quick Fix
Right-click the issue and select Apply Quick Fix. This will update the source code as required and will mark the MTA issue as resolved.
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat