This module can be used in several different ways depending on your needs and requirements. The following sections details how to use and install this module under different scenarios / environments.

As a Shared Mule Module

Download the connector from the MuleForge and place the resulting ZIP file in /plugins directory of the Mule installation folder. For more information about how the Mule Plugin System works see this link.

As a Maven Dependency

To make the module available to a Mavenized Mule application, first add the following repositories to your POM:

<repositories>
    <repository>
        <id>mule-ee-releases</id>
        <name>MuleEE Releases Repository</name>
        <url>https://repository-master.mulesoft.org/nexus/content/repositories/releases-ee/</url>
        <layout>default</layout>
    </repository>
    <repository>
        <id>mule-ee-snapshots</id>
        <name>MuleEE Snapshots Repository</name>
        <url>https://repository-master.mulesoft.org/nexus/content/repositories/ci-snapshots/</url>
        <layout>default</layout>
    </repository>
</repositories>
Then add the module as a dependency to your project. This can be done by adding the following under the dependencies element your POM:
<dependency>
    <groupId>com.modus</groupId>
    <artifactId>mule-connector-as2</artifactId>
    <version>RELEASE</version>
</dependency>
or if you want to be on the bleeding edge
<dependency>
    <groupId>com.modus</groupId>
    <artifactId>mule-connector-as2</artifactId>
    <version>LATEST</version>
</dependency>
If you plan to use this module inside a Mule application, you need add it to the packaging process. That way the final ZIP file which will contain your flows and Java code will also contain this module and its dependencies. Add an special inclusion to the configuration of the Mule Maven plugin for this module as follows:
<plugin>
    <groupId>org.mule.tools</groupId>
    <artifactId>maven-mule-plugin</artifactId>
    <extensions>true</extensions>
    <configuration>
        <excludeMuleDependencies>false</excludeMuleDependencies>
        <inclusions>
            <inclusion>
                <groupId>com.modus</groupId>
                <artifactId>mule-connector-as2</artifactId>
            </inclusion>
        </inclusions>
    </configuration>
</plugin>