VOOZH about

URL: https://dzone.com/articles/how-to-publish-mule-custom-connector-to-anypoint-e

⇱ How To Publish Mule Custom Connector to Anypoint Exchange Using Maven


Related

  1. DZone
  2. Coding
  3. Java
  4. How To Publish Mule Custom Connector to Anypoint Exchange Using Maven

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.

By May. 20, 20 Β· Tutorial
Likes
Comment
Save
13.9K Views

Join the DZone community and get the full member experience.

Join For Free

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.

    πŸ‘ Image


  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.

    πŸ‘ Image


  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.

    πŸ‘ Image


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

mvn deploy

πŸ‘ Image

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.

        πŸ‘ Image

Once the maven deploy command is successful, the connector will be published and can be seen in Anypoint Exchange.                                      πŸ‘ Image

Apache Maven Connector (mathematics)

Opinions expressed by DZone contributors are their own.

Related

  • OpenAPI From Code With Spring and Java: A Recipe for Your CI
  • Tracking Dependencies Beyond the Build Stage
  • Automating Maven Dependency Upgrades Using AI
  • Web App Load Testing Using Maven Plugins for Apache JMeter, and Analyzing the Results

Partner Resources

Γ—

Comments

The likes didn't load as expected. Please refresh the page and try again.

Let's be friends: