Skip to content

Latest commit

 

History

History
184 lines (147 loc) · 7.65 KB

int-import-mule-project.adoc

File metadata and controls

184 lines (147 loc) · 7.65 KB

Importing Projects into the IDE

reuse::partial$beta-banner.adoc

Import a project JAR file or folder into a workspace in your IDE. A project directory contains a Mule application for an integration or implementation.

If you encounter an import issue, check for workarounds in Known Issues in the Anypoint Code Builder Release Notes or in troubleshooting.adoc.

To export a JAR file that packages a project with resources from your application, see int-export-mule-project.adoc.

Before You Begin

Import and Open a Project in the Desktop IDE

Use the desktop IDE to upload a project directory or shareable JAR file into a project workspace.

Import a Shareable Project JAR File into the Desktop IDE

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. partial$acb-open-packaged-sources.adoc partial$acb-open-packaged-sources.adoc

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

Import a Project Folder into the Desktop IDE

Although it is more common to import a shareable JAR file or to open a project workspace from file directory, you can also drag a Mule project folder into the Explorer view and open the project in a VS Code workspace.

Open any valid project folder, including a project from Anypoint Studio (Studio) that’s stored on your desktop. Alternatively, use the procedure in Open a Project Folder from the Desktop or Cloud IDE to open the project from your file directory instead of dragging and dropping the folder into the IDE.

To import a project folder to the desktop IDE:

  1. Ensure that no project is open in the IDE. partial$acb-open-packaged-sources.adoc

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

Import and Open a Project in the Cloud IDE

The cloud IDE enables you to upload a project directory or JAR file into a workspace.

Import a Shareable Project JAR File into the Cloud IDE

Import a JAR file for a Mule project and load the unpacked project into a workspace in the IDE.

  1. Ensure that no project is open in the cloud IDE. partial$acb-open-packaged-sources.adoc

    If prompted, trust the authors of the files in the directory.

    Anypoint Code Builder loads your directory.

  2. Drag your shareable JAR file from your computer to the Explorer view in the cloud IDE, for example:

    Drag a JAR file to the Explorer view in the cloud IDE

    If prompted, trust the authors of your file or directory.

    Important
    Do not click Open Anyway in response to this warning in the IDE: This file is not displayed in the text editor because it is either binary or uses an unsupported encoding.

    If the imported folder is large, Anypoint Code Builder displays an upload progress bar that you can click to expand.

  3. Open the Command Palette.

    Show me how
    • Use the keyboard shortcuts:

      • Mac: Cmd+Shift+p

      • Windows: Ctrl+Shift+p

    • Click the (menu) icon, and select View > Command Palette.

  4. Select the following command:

    MuleSoft: Import a Mule Project
  5. Navigate to and select the shareable JAR file to import.

  6. Navigate to a destination folder for your unpacked project, such as your home directory or any folder outside of a Mule project folder, and click OK.

    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.

Import a Project Folder into the Cloud IDE

  1. Ensure that no project is open in the cloud IDE. partial$acb-open-packaged-sources.adoc

    If prompted, trust the authors of the files in the directory.

    Anypoint Code Builder loads your directory.

  2. Drag your project folder from your computer to the Explorer view in the cloud IDE, for example:

    Drag a project folder to the Explorer view in the cloud IDE

    If prompted, trust the authors of your file or directory.

    If the imported folder is large, Anypoint Code Builder displays an upload progress bar that you can click to expand.

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

Open a Project Folder from the Desktop or Cloud IDE

Open or reopen a project workspace folder for your application. This procedure works for projects built in Anypoint Code Builder and for projects stored on your desktop that are built in Anypoint Studio (Studio).

To import a project folder from Studio into your cloud IDE, use the procedure in Import a Project Folder into the Cloud IDE.