You can set the build-and-deploy mode of automation plug-ins for each cartridge in your workspace. Setting the build-and-deploy mode for an individual cartridge overrides the build-and-deploy mode set as a global preference; that is, OSM uses the mode you set at the cartridge level at run time.
To set automation plug-in build-and-deploy mode preferences for a specific cartridge in your workspace:
From the Studio menu, select Show Design Perspective.
In the Studio Projects view, double-click the Project entity for which you want to set the build-and-deploy mode preference.
The project opens in the Project editor.
Click the Cartridge Management Variables tab.
In the Name column, click the BUILD_DEPLOY_MODE variable.
In the Default Value column, do one of the following:
To build and deploy this cartridge so that automation plug-ins are run in a common EAR file (deploys and executes automation plug-ins more efficiently), enter optimized.
To build and deploy this cartridge so that each automation plug-in is run in its own EAR file (deploys and executes the automation plug-in in a manner consistent with previous OSM releases), enter legacy.
To build and deploy the automation components for both Optimized and Legacy modes, enter both.
If you set this option, OSM uses the automation plug-in dispatch mode defined on the OSM server at run time.
Click Save.
Setting Automation Plug-in Build-and-Deploy Modes for All Cartridges
Defining Build-and-Deploy Modes for Automation Plug-ins