Hear from Salesforce leaders on how to create and deploy Agentforce agents.
Contact Us 1-800-596-4880

Open Beta Release: The cloud IDE is in open beta. Any use of Anypoint Code Builder in its beta state is subject to the applicable beta services terms and conditions, available from the IDE.

Migrate Your Mule Project from Anypoint Studio to Anypoint Code Builder

logo cloud IDE Cloud IDE

logo desktop IDE Desktop IDE

Migrate your Mule project from Anypoint Studio to Anypoint Code Builder by creating a deployable Mule application archive (JAR file). With Anypoint Code Builder, you unlock a modern development experience with advantages like faster startup times, streamlined collaboration, and the integration of MuleSoft for Agentforce: Topic Center to enable API specifications for topics and agents.

Export Your Mule Project to a Sharable JAR File in Anypoint Studio

  1. Open the project to export in Anypoint Studio.

  2. Select Export from the File menu.

  3. Click to expand the Mule folder.

  4. Select Anypoint Studio Project to Mule Deployable Archive (includes Studio metadata) and click Next.

  5. Select the project to export and click Next.

  6. In the JAR file menu, click the ellipses (…​) button to explore your local drive, and select the folder to which you want to export your deployable JAR file.

  7. Click Finish.

Exporting Considerations

  • Select Attach Project Sources to include the project metadata if you plan to:

    • Reimport the deployable file as an open Mule project into your workspace

    • Import the JAR file into Anypoint Code Builder

    • Import the JAR file back into the same Studio workspace

Selecting Attach Project Sources flags the -DattachMuleSources parameter as if you would pack your Mule project with Mule Maven Plugin.
  • Select Include project module and dependencies if you plan to deploy your exported Mule project to CloudHub.

Import a Mule Project from a Sharable JAR File in Anypoint Code Builder

Import a shareable JAR file for a snapshot of a Mule project into the desktop IDE.

To create a shareable JAR file, see Export to a Shareable JAR File. The contents are lightweight because they don’t include dependencies. The IDE generates the dependencies configured in the pom.xml for the project.

To import a shareable JAR file in your desktop IDE:

  1. Ensure that no project is open in the IDE.

  2. Open the Command Palette.

  3. Provide the following command:

    MuleSoft: Import a Mule Project
    command
  4. Navigate to the shareable JAR file to import, and click Select jar file to import.

  5. Navigate to a folder to which to unpack the JAR file, such as your home directory or any folder outside of a Mule project folder.

  6. Click Select project folder.

    The IDE unpacks the shareable JAR file for your project into the selected folder.

  7. If your Mule project folder is closed, open a workspace for the project at the project’s root directory.

    In addition to loading the graphical canvas, the IDE also loads dependencies defined in the pom.xml for the project. If a Mule runtime or Java configuration is missing, set the versions to use from the canvas.

    Libraries load to the target/repositories directory within the project folder.

  8. Test your project:

    1. In the open project, check for errors and make sure that the configuration XML and canvas load correctly, which indicates that component dependencies resolved.

    2. Check for any configurations to modify, such as ports or file paths in the configuration XML.

    3. Run and debug your project: