Package a Plugin
A CVPlugin is a simple ZIP file containing the following structure:
/lib/ myjar1.jar myjar2.jar /META-INF/ cvplugin.properties
cvplugin.properties
can contain the following keys:
-
plugin.description
-
plugin.version
-
plugin.copyright
-
plugin.author
The JARs must contain the components and their associated classes, including config classes. A plugin ZIP file can include several components. All of them are taken into account.
// Optionally a set of hints about the content components.widgets = MyWidget1, MyWidget2 components.resources = MyResource1 components.cvcomponents = MyClass1, MyClass2 // CVComponents are usually automatically detected, but this may be required for specific use cases. // Optionally, a set of properties about a given component component.MyResource1.license = Commercial, contact foo@acmecorp.com
Each plugin is loaded in its own classloader, avoiding many common conflict cases.