29Nov/090
Download Maven artifacts
Ever wanted to download Maven artifacts from a repository without needing Maven? The biggest problem is how to handle Snapshot artifacts since there can be many per version. Here's a quick couple commands to do just that.
wget -P http://#{repository_base}/#{repository_path_part}/#{artifact_path}/#{version}"grep -o '>\\(.\\)\\+.war<' index.html | awk '{ print substr($0, 2, length($0) - 2) }' | tail -n 1
The key thing to notice is that it's grabbing the latest war from a particular, known groupId, artifactId and version.
I hacked this into a Websitrano deployment which can now deploy to a cluster of Tomcats. One button deploys from a Maven repository