What is the Skeleton Plugin?The Skeleton Plugin is a project stub on which new plugins can be easily written. It includes the following:
How do I use it to write my own plugins?The simplest way is to copy the directory structure and begin to edit as necessary. In other words, the contents of the skeleton-plugin directory may be copied to another directory to serve as the basis for the new plugin. If you are unfamiliar with using Maven for builds, check their site for more information. The following checklist describes areas in the Skeleton Plugin to be edited:
Once the plugin code has been added, the plugin can be built using the following maven command: mvn install The plugin will be created in the target directory with the following name: ${artifactId}-${version}.jar
Once the plugin has been built, the validator can be used to ensure the integrity of the descriptor and class files. Where can I download the skeleton plugin?Get the most up-to-date version of the plugin by simply svn exporting this: http://svn.rhq-project.org/repos/rhq/trunk/etc/samples/skeleton-plugin/ The 1.0.0.GA version of the skeleton plugin can be downloaded here. |