mulemulesoftmule4mule-esb

How can I configure mule standalone so that it picks up property files from MULE_HOME/lib/user?


Where can I configure mule standalone v 4.6.2, so that deployed apps will fetch property files from MULE_HOME/lib/user folder rather than the project folder src/main/resources

In the global elements I would define these

<global-property doc:name="Global Property" doc:id="bce2118a-923f-49c6-96e8-0eea496a0a12" name="mule.env" value="dev" />
    <configuration-properties doc:name="Configuration properties" doc:id="f66c26b0-f63c-4176-bdaa-ceb79f352062" file="${mule.env}-properties.yaml" />

And place dev-properties.yaml in MULE_HOME/lib/user and remove it from the project src/main/resources folder.

This works in older version 4.5.3. But I don't know where it is actually configured to allow such behavior.


Solution

  • It turned out to be a bug in the mule runtime.

    Mule Runtime is unable to find properties files at $MULE_HOME/lib/user