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
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Two Engines, One Query: DuckDB Inside Neo4j
  • Testing Java and Spring Applications With Kotlin: Low-Risk to Adoption
  • Wasm Inside Neo4j: Building the Example That Didn't Exist
  • OpenAPI From Code With Spring and Java: A Recipe for Your CI

Trending

  • Testing Java and Spring Applications With Kotlin: Low-Risk to Adoption
  • Google Cloud KMS vs. AWS KMS: Java Encryption Guide
  • SSRF Prevention in C#: Securing File Imports From User-Supplied URLs
  • How to Migrate From LangChainGo to Genkit Go

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  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
·
May. 20, 20 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
14.1K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

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

  • Two Engines, One Query: DuckDB Inside Neo4j
  • Testing Java and Spring Applications With Kotlin: Low-Risk to Adoption
  • Wasm Inside Neo4j: Building the Example That Didn't Exist
  • OpenAPI From Code With Spring and Java: A Recipe for Your CI

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • 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