Nav

To Deploy a Mule Application to CloudHub (Mule Maven Plugin)

  1. Make sure you added the Mule Maven Plugin to your pom.xml file.

  2. Inside the plugin you element, add a configuration for your CloudHub deployment as shown below:

    
                
             
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    
    <plugin>
      ...
        <configuration>
            <cloudHubDeployment>
                <uri>https://anypoint.mulesoft.com</uri>
                <muleVersion>${mule.version}</muleVersion>
                <username>${username}</username>
                <password>${password}</password>
                <applicationName>${cloudhub.application.name}</applicationName>
                <environment>${environment}</environment>
                <properties>
                    <key>value</key>
                </properties>
            </cloudHubDeployment>
        </configuration>
    
    </plugin>

    The example is using placeholder values. Configure each value with your own CloudHub information.

  3. From the command line in your project’s folder, package the application and run the deploy goal:

    
                
             
    1
    
    > mvn clean package deploy -DmuleDeploy

In this topic: