JakeWharton/jquery-maven-artifact — pull request #2 by rtyley (2013-01-20 22:59:13+00:00)
Title: Use direct Maven download url to avoid wget filename borking

For those few occasions where you need to download something using wget, it's nice if the url doesn't include a query string - because wget will perform a horrific tapdance of destruction on the filename. For instance this download:

$ wget http://search.maven.org/remotecontent?filepath=com/squareup/otto/1.3.2/otto-1.3.2.jar

...gives this awful filename which is to be avoided:

"remotecontent?filepath=com%2Fsquareup%2Fotto%2F1.3.2%2Fotto-1.3.2.jar"

The repo1.maven.org domain is sewn into a million Maven clients around the world so it's unlikely to change.

Very pleased to see you've dressed my search.maven.org Solr technique up into a JQuery plugin by the way :)