I'm trying to automate some of our processes at work. I would like give operations a file that just listed war files that needed deployed, then have a script download those war files from our maven repository. The script will deploy them but the "act" of downloading them is what I'd like to piggy back off of.
I do realize that I could have a script transpose names/groupid/artifactid/versions into wget or http downloads, have maven download them with a pom file, or use groovy grape. However, I would imagine that getting maven artifacts outside of the maven lifecycle is something that is done often and that someone has already written something to do this.
I just want them downloaded to a central folder where the wrapping script can call jboss-cli can deploy them. something like this:
deployFile.eachLine{
**WANTEDTOOL**.download(it)
/opt/jboss/bin/jboss-cli --connect deploy /opt/lib/...
}
I'd much prefer to use a tool in this case rather than invent something i need to maintain.
Thanks