In this section, we will create a sample Hudson plugin. In order to create a Hudson plugin, we will use the Apache Maven project. Maven is a build tool that is commonly used by Java projects. This example will use Maven Version 3.1.0, which was the latest available version when this book was being written. Other versions of Maven should also work.
Hudson uses Jelly for creating views. Jelly is an XML-based scripting and processing engine. To find out more about Jelly, the project page is located at http://commons.apache.org/proper/commons-jelly/.
You do not need to download or install Jelly, but understanding how Jelly works will be necessary when writing more sophisticated plugins.
The Apache Maven distribution can be downloaded at http://maven.apache.org/download.cgi. Download the distribution that is appropriate for your platform, set the MAVEN_HOME
environment variable, and append ${MAVEN_HOME}
/bin
(or %MAVEN_HOME%\bin
) to...