In mvn, how do I pass the object store key command?

135 views Asked by At

How can we pass the persistent object store 'true' value through mvn command to get the trick mark in runtime manager for RTF applications? As of now, we are not passing objectstore through the pom file, but we need to do so through Jenkins script.

CMD: mvn deploy –DmuleDeploy -DobjectStore = true

Will this cmd -DobjectStore = true work or are there any other options?

1

There are 1 answers

8
aled On

Using the Mule Maven Plugin for Mule 4 in the <deployementSetting> section add the element <persistentObjectStore>. Its value will be the property that you are defining in the command line. For example:

  <persistentObjectStore>${objectStore}</persistentObjectStore>

Then you can define the property value in the command line to set it to true or false: mvn deploy -DobjectStore=true ...