Hi all, I've been searching for any easy way to do this and haven't found one yet. I want to create a plugin that handles the deployment details for our webapps for integration testing. The actual how of deploying the webapps has been completed already using a combination of the dependency, antrun, and cargo plugins but we'll want to do this in a number of different projects that are not necessarily in the same inheritance chain. So I'd like to extract this functionality into a seperate plugin that will provide easily setup goals to do it.
The easiest thing would be if I could just in the pom define a goal, but that seems impossible. The alternative approach that I'm taking is writing a java mojo that does the work. This is fine, except that (for example) I want to use the maven dependency plugin to do some of the work, but it's been setup such that it's difficult to use programmatically. I can get around it by subclassing the AbstractUnpackMojo and adding setters for the necessary items, but the way it's designed makes me wonder if I'm missing a very obvious way to do this. (no setter for project and the UnpackMojo is declared final, so no direct subclassing). I'd appreciate any ideas. Regards, Pete
