We're trying to have maven deploy to many multiple servers that form our cluster in just one line.
This solution works just fine except that we need to run it repeatedly (1 time per server installation) and our goal is to do it after our integration server (jenkins) buils a successful artifact. And having a matrix feature is not really an option at this time. Why build again the project per server if we just need to deploy it? (plus the time spend doing this)
We've been experimenting using maven profiles (one per server and trying to activated them all at once, or one big profile with all server on it) but no luck with that option, the tomcat-maven-plugin does not work that way.
Jenkins seems to have a deploy plugin that's based on cargo, but only handles one server at a time
Is there a way to accomplish this? Either using maven-tomcat-plugin? Or Jenkins/Hudson plugin?
Any other ideas from you experts about how to deploy the war to the cluster after a successful build? (I'm trying to avoid a shell script, just becuase of portability issues)