Nav

To Add Custom Modules to Your Project (Anypoint Studio)

You can add your custom Mule module to your Mule projects in Anypoint Studio.

These instructions assume that you coded your Mule module using the Mule SDK, and that you followed the proper set up steps.
See the Mule SDK introductory instructions for more details.

Mule modules are developed as Maven projects, therefore your custom Mule module must be installed in a local or online Maven repository.

  1. In your Anypoint Studio project, edit the pom.xml file with the groupId, artifactId, and version of your Mule module.
    This information is available in your module’s pom.xml file. For example:

    
                
             
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    
    <parent>
        <groupId>org.mule.extensions</groupId>
        <artifactId>mule-ee-core-modules-parent</artifactId>
        <version>1.1.0-SNAPSHOT</version>
    </parent>
    
    <groupId>com.mulesoft.mule.modules</groupId>
    <artifactId>mule-secure-configuration-property-module</artifactId>
    <packaging>mule-extension</packaging>
    <version>1.0.0-SNAPSHOT</version>
    
    <name>Mule Secure Configuration Property Extension</name>
    <description>Mule extension for loading encrypted properties</description>

    It is also reflected in the folder structure in which the Mule module was installed ($MAVEN_REPOS_HOME/groupID_path/artifactId/version).

    For the example above, your Anypoint Studio pom.xml file should add the following dependency:

    
                
             
    1
    2
    3
    4
    5
    6
    
    <dependency>
            <groupId>com.mulesoft.mule.modules</groupId>
            <artifactId>mule-secure-configuration-property-module</artifactId>
            <version>1.0.0-SNAPSHOT</version>
            <classifier>mule-plugin</classifier>
    </dependency>

    Note that the <classifier> element is set to mule-plugin. This automatically installs the mule-plugin into your project’s palette.

  2. Save your changes to your Studio project’s pom.xml file.

After Anypoint Studio downloads the new dependency, you’ll see your new Mule module in the Studio palette. In this example, there is a Secure Properties module listed in the Mule Palette view.
There’s also a new Secure Properties Config element available in the Global Elements editor, and the new XML namespace and XML tags are available in the XML configuration file editor.

In this topic:

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.

+