On 24/05/2011, at 7:22 PM, Maurizio Pillitu wrote:
> Hi Mark, > > really interesting discussion indeed. > > I like very much your idea of including mixins within POM files; this > weekend I did some code (which is actually very very similar to your > description) and I ended up with something working. > > I've contributed my code to http://jira.codehaus.org/browse/MNG-5102 > > Hope this helps! This is a good proof-of-concept, perhaps worth trying on some projects to see how it goes without needing to use a new Maven version. I was surprised that you could get that far with the existing extension mechanism - it seems the model mergers are helping get this mostly right :) However, I'm sure you're already noticing some limitations: - you can't get in before interpolation, so properties used anywhere other than plugin configuration will not be set - the POM has to be completely valid, which risks dropping in unwanted elements to the target (like name of tile, distribution management, etc.) if the consumer forgets - you can't utilise dependency ordering to pick up templates from the reactor if you want to build them in your multi-module build and then use them again - without POM changes, it can look a bit messier I also noticed you're impacting the raw model - was that necessary to work, or just part of the experimenting? What are your thoughts on my other comments about a general approach, if it can be built into the model building? - Brett -- Brett Porter [email protected] http://brettporter.wordpress.com/ http://au.linkedin.com/in/brettporter --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
