Import a Studio workspace
Migrating Mule Projects from Anypoint Studio to Anypoint Code Builder
Migrate your Mule projects from Anypoint Studio to Anypoint Code Builder to 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.
Choose a Migration Approach
Anypoint Code Builder provides three ways to bring your Studio projects over.
| Approach | When to Use It |
|---|---|
Bring over an existing Studio workspace and keep working against the same project files. Anypoint Code Builder creates a workspace that references your Studio projects, and changes stay in sync. See Import an Anypoint Studio Workspace. |
|
Export and import a JAR file |
Package a single Mule project as a sharable JAR file in Studio and import it into Anypoint Code Builder by following the steps on this page. |
Open the project folder directly |
Open an existing Studio project folder in Anypoint Code Builder without packaging it, which is the fastest path when the project is already on your machine. See Importing Projects into Anypoint Code Builder. |
Set Run and Debug Configurations
In Anypoint Studio, you configure run and debug settings through the UI with tabs for arguments, environment, and other settings. In Anypoint Code Builder, you manage these configurations by editing the launch.json file in your project’s .vscode folder.
| Studio UI | Anypoint Code Builder |
|---|---|
Run Configurations > Arguments tab > VM arguments |
|
Run Configurations > Environment tab |
Environment variables passed via |
Run Configurations > Port settings (if available) |
|
Configuration dropdown in toolbar |
Configuration dropdown in Run and Debug view |
For a reference of launch.json properties, see Launch Configuration Properties Reference.
Export Your Mule Project to a Sharable JAR File in Anypoint Studio
-
Open the project to export in Anypoint Studio.
-
Select Export from the File menu.
-
Click to expand the Mule folder.
-
Select Anypoint Studio Project to Mule Deployable Archive (includes Studio metadata) and click Next.
-
Select the project to export and click Next.
-
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.
-
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 Anypoint Code Builder.
To create a shareable JAR, see Export Mule Project.
To import a shareable JAR file into Anypoint Code Builder:
-
Make sure that no project is open.
-
Open the Command Palette.
Show me how
-
Use the keyboard shortcuts:
-
Mac: Cmd+Shift+p
-
Windows: Ctrl+Shift+p
-
-
Select View > Command Palette.
-
-
Provide the following command:
MuleSoft: Import a Mule Project -
Navigate to the shareable JAR file to import, and click Select jar file to import.
-
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.
-
Click Select project folder.
Anypoint Code Builder unpacks the shareable JAR file for your project into the selected folder.
-
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, Anypoint Code Builder also loads dependencies defined in the
pom.xmlfor the project. If a Mule runtime or Java configuration is missing, set the versions to use from the canvas.Libraries load to the
target/repositoriesdirectory within the project folder. -
Test your project:
-
In the open project, check for errors and make sure that the canvas and code editor load correctly, which indicates that component dependencies resolved.
-
Check for any configurations to modify, such as ports or file paths in the configuration XML.
-
Run and debug your project:
For guidance, see Run Your Application in Debug Mode.
-
Set Up Your Development Environment
After your project is in Anypoint Code Builder, set up your development environment:
-
Organize your projects in a workspace so that all Anypoint Code Builder features work correctly. See Working with Workspaces.
-
Manage the folders that store your projects. See Adding Folders to Your Home Directory.
-
Connect your project to a Git repository for source control. See Controlling Source Files.



