Maven2 site-deploy: now that’s a useful plugin
July 23, 2006 2 Comments
I’m not a great fan of Maven2 and some time back I wrote my own plugin to escape from the “Maven way” of doing things (think build life cycle phases) and do most of my build automation in Ant. One question I get asked a lot is why not use Ivy – if I’m going to use Maven2 only for downloading the right jar dependencies.
Here’s the thing, Maven2 is undoubtedly good at some things and one great example is the Maven site generation support. One thing that blew me away is the “site-deploy” goal which once configured correctly can open an scp connection to say your SourceForge htdocs location, locally zip up the html files, transfer the payload and then unzip the documentation, deleting the zip file remotely once done. Even a Maven2 skeptic like me had to sit back and say: wow! Using the Maven2 directory structure does have some payoffs.