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

Converting Studio into Maven

You may wish to convert a Mule project that was created in Mule Studio into a[Maven] project. This page describes how to use Studio’s native support for the "mavenization" of a Mule project. 

Mavenizing an Existing Mule Project

If you have an existing Studio project that was created without Maven support enabled, you can now convert it into a "Mavenized" Mule project. 

  1. Left-click the name of your project in the Package Explorer.

  2. Select Maven Support in Studio > Mavenize.

  3. Studio presents a confirmation dialog, warning that although Maven support can later be disabled, this will not reset your project’s classpath. Click Yes to confirm.

  4. Studio creates a pom.xml file for your project. You can observe the progress in the Console. 

  5. When the mavenization process is complete, the pom.xml file for your project appears in the Package Explorer underneath the mule-project.xml file.

Running a Mavenized Project

You can now run your project on the embedded server in Mule Studio either as a Mule Application or as a Mule Application with Maven. You can also package your Mule project from the command line by executing the following syntax:

mvn package

The maven-mule-plugin packages the project in a .zip file.  Deploy the .zip file in the apps folder to your standalone Mule ESB instance to run the application.

See Also 

  • Read about the[Maven-Mule Plugin] to learn more about using Maven and packaging a Maven project as a Mule application.

  • Learn how to convert a Maven project into Studio.