{{announcement.body}}
{{announcement.title}}

How To Publish Mule Custom Connector to Anypoint Exchange Using Maven

DZone 's Guide to

How To Publish Mule Custom Connector to Anypoint Exchange Using Maven

This article describes the steps to publish Mule custom connector created via Java SDK to Anypoint Exchange using Maven.

· Integration Zone ·
Free Resource

Steps to Publish the Custom Connector

To construct the elements of a Maven POM file, you need to determine your organization ID:

  1. Log into Anypoint Platform and click Access Management.
  2. Click the organization name for the top level or a business group, and view your Organization ID in the Organization Info screen.
  3. Copy the organization ID.
  4. Modify the groupId of the Maven project to be your Organization ID in your Java SDK project's pom.xml.



  5.   Add the Maven facade as a repository in the distribution management section of your project’s POM file. The ORGANIZATION_ID should be the one copied in step 3.



  6. Update the settings.xml file in your Maven .m2 directory to add the Anypoint Platform credentials. The Maven client reads the settings file when Maven runs.



  7. Publish your asset to Exchange using this Maven command:

mvn deploy

Common Errors While Publishing the Connector

Java libraries and POM files cannot currently be published as Exchange assets.

Mule 4 Extensions that declare dependencies that don’t exist in Maven Central or the MuleSoft Maven repositories are not currently supported.

Declaring dependencies which are not present in Maven central or Mulesoft Maven repositories will result in 400 error.

        

Once the maven deploy command is successful, the connector will be published and can be seen in Anypoint Exchange.                                      

Topics:
anypoint exchange ,anypoint platform ,integration ,maven ,mule ,mule 4 custom connector ,tutorial

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}