DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

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

Trending

  • DZone's Article Submission Guidelines
  • How to Submit a Post to DZone
  • Architecting Zero-Trust AI Agents: How to Handle Data Safely
  • A Deep Dive into Tracing Agentic Workflows (Part 1)
  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 
Ravneet Bhardwaj user avatar
Ravneet Bhardwaj
·
May. 20, 20 · Tutorial
Likes (1)
Comment
Save
Tweet
Share
13.7K 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.



  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.                                      

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.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook