[Maven-plugin] - Improve the maintenance using velocity directive

View: New views
1 Messages — Rating Filter:   Alert me  

[Maven-plugin] - Improve the maintenance using velocity directive

by Pino Contartese :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I suggest the use of velocity directive and macros for a easy customization and to improve the maintenance of maven plugin templates.
I am personally providing change java template (action.vm,domain.vm and so on ) .
Here an example :

#set ($V_CLASS_NAME = $class.name)
#set ($V_INSTANCE = $class.instance)
#set ($V_CLASS_PROPS = $class.properties)

In this way ..if i want to introduce a suffix or prefix as new convention we have to change only right hand side ...and not the full document.