Install the Connector on you Design Center by adding an asset with the Mulesoft Extension to Anypoint Exchange. The following provides instructions on how to publish the Connector asset on Anypoint Exchange and consequently deploy the Connector to your Design Center.
Before following the guidelines below, make sure that the following requirements are met:
In addition, note that is required to provide your organization ID. Access the required identifier as described below.
Locate your organization identifier to modify the required elements of the Maven POM file and successfully publish your asset to Anypoint Exchange. The following steps showcase how to access your organization ID:
Therefore, you can use your organization ID for the following POM file configuration.
Access the POM file that should be obtained from the GitHub repository or Maven Central Repository. Thereafter, follow the steps below to successfully configure the POM file:
1. Paste your organization ID to the
element as follows:
<groupId>[organizationID]</groupId> <artifactId>connect-mulesoft-extension</artifactId> <version>23.0.0</version>
2. Specify your organization ID within the
element of the POM file:
<distributionManagement> <snapshotRepository> <id>exchange-repository</id> <name>Exchange Repository</name> <url>https://maven.anypoint.mulesoft.com/api/v1/organizations/[organizationID]/maven</url> <layout>default</layout> </snapshotRepository> <repository> <id>exchange-repository</id> <name>Exchange Repository</name> <url>https://maven.anypoint.mulesoft.com/api/v1/organizations/[organizationID]/maven</url> <layout>default</layout> </repository> </distributionManagement>
Once all required adjustments are saved, it is necessary to update the settings file within your Maven .m2 directory.
Once you install Apache Maven, the
command creates the .m2 directory. The directory is located at
on macOS and Linux. Windows users can find this folder at:
. This folder should contain a settings file that is read by the Maven client.
Specify your Anypoint Platform credentials within the settings file as follows:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <servers> <server> <id>Repository</id> <username>myusername</username> <password>mypassword</password> </server> </servers> </settings>
Once your credentials are successfully updated, execute the following command to compile the source code:
mvn clean deploy
Therefore, the Connector can be successfully published on Anypoint Exchange. You can download, share and use the Connector in your Design Center.