<plugin>
<groupId>org.mule.tools.maven</groupId>
<artifactId>mule-maven-plugin</artifactId>
<version>3.3.2</version>
<extensions>true</extensions>
</plugin>
Deploy an Application to Runtime Fabric using Maven (Mule 4)
Runtime Fabric supports using Mule Maven Plugin 3.x to manage and deploy Mule applications. The information in this topic is specific to deploying a Mule application to Mule runtime engine 4.x.
To deploy Mule 3 applications using Mule Maven Plugin 2.x, see Deploy an Application to Runtime Fabric using Maven (Mule 3)
Prerequisites
-
The application must be published in Exchange.
-
To do this from Studio, see Publishing a Project to Exchange.
-
To do this using Maven, see Publish and Deploy Exchange Assets Using Maven.
-
Studio allows you to select only two project types when uploading an application to Exchange: example and template . To specify a different project type, publish your application using Maven.
|
Add the Mule Maven Plugin to a Mule Project
To add the Mule Maven Plugin, you need to add its maven dependency to the project:
Enable extensions. If <extensions>true</extensions> is not present, the plugin does not work.
|
From this repository:
<pluginRepositories>
<pluginRepository>
<id>mule-public</id>
<url>https://repository.mulesoft.org/nexus/content/repositories/releases</url>
</pluginRepository>
</pluginRepositories>
This enables the Mule Maven Plugin in your project.
Deployment and Reference Information.
For deployment instructions using Mule Maven Plugin 3.x and complete reference information, see Deploy a Mule Application to Runtime Fabric.