From: Andy J. <an...@aj...> - 2003-09-25 16:14:00
|
On Thursday 25 Sep 2003 15:10, Trygve Laugst=F8l wrote: > As suggested by Andy on irc, I would like to propose a new 'package' > plugin for creating deb and rpm packages. It should also support the > creating of package repositories for apt and the likes. > > I've rambeled up a suggestion at my wiki: > > http://wiki.nostdal.net/Articles_2fMaven_2fPackagePlugin > > I would like some feedback on the suggestion either by comments on the > list or just change the wiki page. Its a shame that Maven plugins do not support the idea of subclassing :-) W= hat=20 then would be perfect would be to have the "package" plugin and then derive= =20 RPM, Deb, etc from that so hence we have the same goals and properties and= =20 just add on specific things for particular output formats. Oh well ... I'm not sure of how well Maven plugins support the idea of *using* a differ= ent=20 plugin ... kind of like a sub-plugin ... with this we could have a package= =20 plugin that gives a lot of the logic for packaging systems, and then we hav= e=20 RPM, Deb plugins that use this package plugin. I think the idea of having a common interface is definitely the way to go .= =2E.=20 since the input is basically the same, and the output is a file. Obviously= =20 there are other formats of "package" ... e.g tgz, zip. What I'm not convinc= ed=20 about is whether to have these as a single plugin (and have logic internall= y=20 that checks on the output type and does things accordingly), or whether to= =20 have separate plugins with the same goals and properties. I think i'd tend towards having separate plugins solely because there are=20 projects where you want to output multiple package formats ... so I could=20 output a Deb, RPM, and TGZ. If I had these as a single plugin I would have = to=20 edit my project.properties and then run the plugin, and edit it again and r= un=20 it ... whereas if i have separate plugins I would just do "maven rpm", "mav= en=20 deb", "maven tgz" etc. Having separate plugins does give us the problem of= =20 maintaining consistency in goal and property naming - adopting your "create= ",=20 "create-snapshot", and "copy-resources" in Deb and RPM for now makes a lot = of=20 sense. =2D-=20 Andy |