I have a source library(apache storm) that uses maven, and after mvn install ...
it compiles the library and installs jars to local maven repository. But now i have setup a cluster(multiple machines) that uses those jars to run their jobs and so after each compilation the new jars should be transmitted to all of those machines to use updated code. I would like to tell maven to compile project on my local machine and then transmit those jars(scp) to a specified location after each compilation to all of my cluster machines. because transferring them manually or via bash script is very error prone and cumbersome.
So is there a way to config maven to scp jar files of a specific project to multiple hosts? I should mention that maven is not installed on those hosts and i need just a simple scp command to send project artifacts to a specific directory in each machine (I've read couple of related questions but they don't apply to my problem, they use ftp or they want to send files to just one machine, etc)
Any suggestion would be really appreciated.