In http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Get.java is this code: if (responseCode == HttpURLConnection.HTTP_MOVED_PERM || responseCode == HttpURLConnection.HTTP_MOVED_TEMP || responseCode == HttpURLConnection.HTTP_SEE_OTHER) Notice that this statement supports HTTP codes 301, 302, and 303, but not the newer code 307. We noticed this problem because Nexus uses 307 to redirect. References: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.8 https://issues.sonatype.org/browse/NEXUS-5246
fixed with svn revision 1429209
Thanks!