This post originated from an RSS feed registered with Java Buzz
by Jon Tirsen.
Original Post: How to create a plugin in Maven
Feed Title: jutopia
Feed URL: http://sedoparking.com/search/registrar.php?domain=®istrar=sedopark
Feed Description: Ramblings on Java, AOP, TDD, agile and so on. some like it jutopic!
It's really simpler than one might think. Just read this. We're starting to put more and more of our generic build-procedures in plugins and it works just the way you want it.
Uh, the document seems to forget how to install a plugin if you have it as a separate project. Just do maven plugin:install.
For example, we've got a generic build-project that first installs the plugins we've done (for things like generating InstallAnywhere-stuff, building .war-files and so on). This project can also kick of a reactor that builds all our projects in the correct order (dependency-wise). Put that in your crontab and you basically don't even need CruiseControl any longer. It generates web-sites for all projects and you could easily write an email-plugin that mails the results. Only problem is that I can't get it to build the web-site after compile-errors.