#Maven Mule REST Plugin#
This is a project to utilize the RESTful interface that is provided for the Management console on Mule ESB's Enterprise Edition.
This plugin assumes that you have configured the maven-mule-plugin to generated the mule application archive
This is a personal project and is not affiliated with MuleSoft or the maven mule plugin in any way.
Example:
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.mule.tools</groupId>
<artifactId>mule-mmc-rest-plugin</artifactId>
<version>1.4.2-SNAPSHOT</version>
</plugin>
</plugins>
</build>
...
</project>
There is only one goal, deploy. To call the plugin, do the following
-
With a pom.xml containing all required parameters:
mvn mule-mmc-rest-plugin:deploy -
With a pom.xml missing MMC parameters:
mvn com.github.nicholasastuart:mule-mmc-rest-plugin:[ARTIFACT_VERSION]:deploy -DmmcUsername=[USERNAME] -DmmcPassword=[PASSWORD] -DmmcApiUrl=[MMC_URL] -DtargetDeploymentServer=[SERVER_OR_GROUP] -
Without pom.xml
mvn com.github.nicholasastuart:mule-mmc-rest-plugin:[ARTIFACT_VERSION]:deploy -DmmcUsername=[USERNAME] -DmmcPassword=[PASSWORD] -DmmcApiUrl=[MMC_URL] -DtargetDeploymentServer=[SERVER_OR_GROUP] -DcustomMuleAppFilePath=[PATH_TO_MULE_PACKAGE]
This goal will
- delete an existing mule application archive from the MMC Repository if version contains "SNAPSHOT"
- upload the mule application archive to the MMC Repository
- delete an existing deployment having the same application name
- upload application to the MMC repository
- perform a deploy request to make MMC deploy into target server or server group
In order to post to the Mule Repository, you need only these permissions:
- Repository Read
- Repository Modify
| Property | Description | Default | Mandatory
|
|---|