Thursday, 31 January 2008
Guilder POM and Properties
One of the things I have most problems with is how to define the Project Object Model and then allowing users to set properties the Maven 1 way. I create a POM by just using a Groovy script that contains other POM elements and so creating the Object Model tree. The base instance each of the POMs' must extend is a POM class which also will contain a method that lets one POM being incorporated into another one. This method will add any properties and POM elements which are not already set in the other POM. I indent to allow 3 different POMs:
- User level POM which is resides in the user's home directory
- Project POM which is inside the project root directory
- Local POM which is inside the project root directory allowing local settings and which should not be included into a VCS
Posted by at 9:39 AM in Groovy
