Contact Us 1-800-596-4880

Packaging a Custom Policy

You can use the Mule Maven Plugin to package your custom policy into a deployable JAR file that you can later apply to an API.

  1. Make sure you added the Mule Maven Plugin to your pom.xml file. This is done automatically by custom policy’s Archetype

  2. From the command line in your project’s folder, run the package phase:

    > mvn clean package

The packager then packages your application and creates the deployable JAR file into the target directory within your project’s folder.

It will also verify that all the necessary files were provided for the packaging, and that the information provided in the mule-artifact and in the policy yaml are valid.