Release and deploy your plugin
This page provides step-by-steps instructions to release and deploy a plugin developed for Semarchy xDM.
The plugin is released as a Jar file that will be deployed in a Semarchy xDM instance. Once deployed, the plugin becomes available for design and run-time.
Generate the plugin binary
When the plugin is tested, or when a new version is available, you can generate the plugin binary.
To generate the plugin binary:
-
Select the plugin project, right-click and select Export.
-
Select Plugin Development > Deployable plugins and fragments.
-
In the Destination tab, use the Browse button to select a target directory for your plugin. For example:
c:\temp
. -
Select the plugin to deploy. For example:
com.acme.phoneStandardizer
. -
Click Finish.
The jar for the plugin is created in a plugins
folder under the selected destination directory. The generated jar file is named after the plugin ID and version number.
When selecting the plugins and fragments to deploy, make sure to select only the plugin, and not the JUnit test case fragments as they are not needed for running the plugin. |
Increment the plugin version
If the plugin was modified or fixed, before generating the new version of the plugin binary, increment the plugin version
To increment the plugin version:
-
In the plugin project, double-click the
plugin.xml
file to edit it. -
In the overview tab, increment the Version number. For example, if the original plugin version is
1.0.0
, then the first patch for this plugin would be1.0.1
. -
Press Control+S (or Command+S on macOS) to save the editor.
You can re-generate the plugin binary.
As the generated jar file is named after the plugin ID and its version number, you can preserve in this directory the successive versions of the plugin. |
Deploy the plugin
To deploy a plugin in a Semarchy xDM instance, you must connect with a user that has the Platform Administration Read/Write privileges, or with an administrator user (semarchyAdmin role). |
To deploy the plugin binary:
-
Connect to the Semarchy Configuration.
-
Double-click the Plugins link.
-
Click the Install or Update Plugin button in the upper right corner of the Plugins editor. The Install/Update Plugins dialog opens.
-
Click the Browse button and select the plugin binary file. For example:
com.acme.phoneStandardizer_1.0.0.jar
. -
Click OK. A Status window shows the number of plugins installed or updated.
The plugin now appears in the list, and can be used in the models and the integration jobs.