Upgrading Mule Runtime and Connectors
This guide walks you through upgrading your Mule projects, covering both intra-version upgrades within Mule 4 and major migrations from Mule 3 to Mule 4.
1. Upgrading Within Mule 4 (e.g., 4.4 to 4.9)
To upgrade a Mule project from one Mule 4 version to another:
-
Select Repository
- Open the repository selector and choose the one you want to upgrade.
-
Provide Upgrade Prompt
- In the description field, add a prompt like: “Upgrade the Mule flow from version 4.4 to 4.9.”
-
Configure Runtime Settings
- Choose your desired Mule version and runtime configurations.
-
Submit Upgrade
- Click Submit. The upgrade process will be handled automatically.
-
Review Upgrade Output
- Once processed, the tool shows the changes, including:
- Updates to the
mule-artifact.json
indicating new runtime version. - Updates in
pom.xml
covering dependencies and connectors.
- Updates to the
- Once processed, the tool shows the changes, including:
-
Approve or Provide Feedback
- You can review the diff and:
- Leave comments if changes are needed.
- Click Approve if satisfied with the update.
- You can review the diff and:
2. Migrating from Mule 3 to Mule 4
To migrate a Mule 3 project to Mule 4:
-
Access the Migration Accelerator
- Navigate to the Migration Agents tab.
- Select the repository and branch for migration.
-
Select Platform and Submit
- Choose
MuleSoft 3
from the platform dropdown. - Click Submit to start migration.
- Choose
-
Migration Automation
- The system upgrades your project for Mule 4 compatibility.
- Some input may be needed (e.g., endpoint selections).
-
Endpoint Configuration
- You’ll be asked to choose the endpoint (e.g.,
getServiceHealth
) to migrate.
- You’ll be asked to choose the endpoint (e.g.,
-
Code Generation
- After selection, Mule 4 compatible code is generated automatically.
- Example:
mule-artifact.json
updated with version4.9.0.3
.
-
Download Output
- You can download:
- Migrated code
- Updated
pom.xml
- Patch files
- Generated API spec and migration documentation
- You can download:
Summary
Both runtime upgrades and full-scale migrations are handled automatically, with options for feedback, manual approval, and final download. The upgrade system ensures your Mule projects stay up-to-date with minimal manual intervention, while preserving compatibility and version integrity.