1

I am new to Mule4.x features. Get to realize that mule-app and mule-deploy has been deprecated. Where and how to provide information about deployment configurations? I can see mule-artifact.json is there but no where I am able to find how to use it with example. Mule docs only talks about elements and it's description but don't have any examples.

Any pointers would be greatly appreciated! Thanks in advance!

Maddy
  • 11
  • 1
  • 6

1 Answers1

0

A very short description of mule-artifact.json is available here.

mule-deploy.properties of Mule 3 has auto generated list of config resources, same thing is now available in mule-artifact.json as "configs" for Mule 4. This section will be automatically updated when new mule xml file is added under src/main/mule. Similarly redeploymentEnabled flag is also available in this file.

On the other hand, key-value pairs from mule-app.properties must be specified in Run Configurations section in AnypointStudio and in Properties section on CloudHub.

AnypointStudio Run Configurations: AnypointStudio Run Configurations

CloudHub Properties: CloudHub Properties

  • Many thanks Sagar for providing pointers in detail.It's really helpful. – Maddy May 22 '18 at 16:02
  • To add to the Sagar answer, you don't need to actually modify the mule-artifact.json except you have very specific requirements. Just be sure to use the latest available version of the Mule Maven Plugin. – aled Mar 31 '19 at 16:40
  • Another point you might like to know is, adding properties here as "secureProperties" will help you to hide the properties in the CloudHub. – Lijin Oct 07 '19 at 22:06