---
schema_version: "1"
id: 2e2eb2a9af7c8db2bee73bef1da56dfbd45046694b447593148538d710b74420
title: Packaging Connectors
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/connector-builder/packaging-connectors.md
canonical_url: https://docs.mulesoft.com/connector-builder/packaging-connectors
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 2278d7b6c97cba45eb81e6c69fa2eeac7fff0aa2281626e7f46bac2612777062
description: MuleSoft Documentation Site
latest: true
---
---
product: Connector Builder
version: master
---

# Packaging Connectors

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Learn how to package your connector. Packaging is the process of compiling and preparing your
connector for release.

You can package your connector via the UI, MCP tools, or the terminal.

## Package Connectors via the UI

1.  Open your IDE and go to **Connector Builder - Editor**.

2.  Click **Build Project**.

If the build completes successfully, a success message appears. If the build doesn’t complete
successfully, an error message appears. In either case, you can click **View output** to review the
output.

## Package Connectors with MCP Tools (Cursor)

1.  Open the Connector Builder extension in Cursor.

2.  Select **Settings** and ensure **Enable Mcp Tools** is enabled.

3.  Open the Cursor chat window (if not already open).

4.  Ask the agent to build the connector. For example, enter `Build this connector`. This calls the
    `uc_connector_lifecycle` MCP tool with `type='build'`, which runs `mvn install` using the
    extension’s bundled Maven.

5.  Enter the required inputs when prompted.

6.  Confirm your inputs. Connector Builder builds the connector.

For more information, see
[MuleSoft DX MCP Server Tool Reference](https://docs.mulesoft.com/mulesoft-mcp-server/reference-mcp-tools).

## Package Connectors via the Terminal

1.  Open your IDE and ensure that you have opened the root folder of your connector project.

    If necessary, go to **File** > **Open Folder** and select the appropriate folder. The Explorer
    view should display top-level items. Make sure you aren’t inside the `connectivity-model`,
    `anypoint-connector-model`, or `flow-connector-model` subfolders.

2.  Go to **Terminal** > **New Terminal**.

3.  In the terminal, run this command:

    mvn clean package

4.  Wait for the build process to complete. If the build completes successfully, an output similar
    to this appears:

    \[INFO\] ------------------------------------------------------------------------ \[INFO\]
    Reactor Summary for <your-connector-name> <version>: \[INFO\] \[INFO\] <your-connector-name>
    .............................. SUCCESS \[ x.xxx s\] \[INFO\]
    <your-connector-name>-connectivity-model ........... SUCCESS \[ x.xxx s\] \[INFO\]
    <your-connector-name>-flow-connector-model ......... SUCCESS \[ x.xxx s\] \[INFO\]
    ------------------------------------------------------------------------ \[INFO\] BUILD SUCCESS
    \[INFO\] ------------------------------------------------------------------------ \[INFO\] Total
    time: x.xxx s \[INFO\] Finished at: <timestamp> \[INFO\]
    ------------------------------------------------------------------------

    > [!NOTE] The names, numbers, and timestamps in the output will vary. The key indicator of a
    > successful build is the line: `BUILD SUCCESS`.

    If you don’t see `BUILD SUCCESS`, the build didn’t complete successfully. In this case, review
    the errors in the terminal output.
