Mojo framework
2009-08-22
This document explains the mojo framework api of maven-helper-plugin.
The mojo framework aims to simplify the writing of new mojos.
To use this framework, your mojo classes MUST implements the contract org.nuiton.plugin.Plugin.
The framework use these technologies :
Implements the org.nuiton.plugin.AbstractPlugin class.
There is some filtering methods :
The core method is the doAction one, put there your logic.
Note: since version 1.2.0 the doAction method will only be executed if the mojo must be executed. you should no more do some tests here to know if the mojo can be skip.
The org.nuiton.plugin.AbstractPlugin contains some usefull methods to work around the maven project and io operations on the files of the project.
For more explanations, see the javadoc.