Nav
You are viewing an older version of this section. Click here to navigate to the latest version.

Packaging Mule Extensions

The DevKit packages extensions using the Mule 3.2 way: a self-containing zip file with all the dependencies. Building and packaging connectors is as simple as running:


         
      
1
Federicos-MacBook-Pro:myproject federico$ mvn clean install

If you get an error because the documentation is incomplete but that is ok to you, you can skip the documentation check as follows:


         
      
1
Federicos-MacBook-Pro:myproject federico$ mvn clean install -Ddevkit.javadoc.check.skip

Using connectors in Mule applications

Follow these steps to use a Cloud Connector within a Mule application.

  1. Add a Maven dependency for the Cloud Connector:

    
                
             
    1
    2
    3
    4
    5
    
    <dependency>
                <groupId>my.group.id</groupId>
                <artifactId>my.artifact.id</artifactId>
                <version>my.version</version>
            </dependency>
  2. In the <build> section of the pom.xml look for the maven-mule-plugin and add the following configuration:


         
      
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<plugin>
              <groupId>org.mule.tools</groupId>
              <artifactId>maven-mule-plugin</artifactId>
              <version>${mule.plugin.version}</version>
              <extensions>true</extensions>
              <configuration>
                  <inclusions>
                      <inclusion>
                          <groupId>my.group.id</groupId>
                          <artifactId>my.artifact.id</artifactId>
                      </inclusion>
                  </inclusions>
              </configuration>
          </plugin>