Contact Us 1-800-596-4880

Packaging Connectors

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.

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] ------------------------------------------------------------------------
    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.