maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Casey (JIRA)" <>
Subject [jira] Closed: (WAGON-264) compressed tarball download problems
Date Tue, 09 Jun 2009 16:09:42 GMT


John Casey closed WAGON-264.

    Resolution: Fixed

The following headers are set by default in the latest trunk revisions of the httpclient-driven
wagon (this is the http wagon that will be used in Maven 2.2.0):

            method.addRequestHeader( "Cache-control", "no-cache" );
            method.addRequestHeader( "Cache-store", "no-store" );
            method.addRequestHeader( "Pragma", "no-cache" );
            method.addRequestHeader( "Expires", "0" );
            method.addRequestHeader( "Accept-Encoding", "gzip" );

To disable the Accept-Encoding header, you will have to disable all of these default headers,
then re-add the ones you want to keep. As of the versions checked into trunk, you can do this
by editing the settings.xml, like this:


Note that the above configuration will work for wagons accessed through the WagonManager in
maven-artifact-manager. If you're managing Wagon instances elsewhere, you may need to provide
access to the new HttpConfiguration and HttpMethodConfiguration config classes in wagon-http-shared.

> compressed tarball download problems
> ------------------------------------
>                 Key: WAGON-264
>                 URL:
>             Project: Maven Wagon
>          Issue Type: Improvement
>          Components: wagon-http-lightweight
>    Affects Versions: 1.0-beta-2, 1.0-beta-3, 1.0-beta-4, 1.0-beta-5
>            Reporter: Lee Thompson
>            Assignee: John Casey
>             Fix For: 1.0
> HTTP wagon will uncompress tarballs it downloads, sometimes badly.  Downloading openssl
results in an unpressed download
> $ mvn -X wagon:download-single -Dwagon.fromFile=openssl-0.9.8k.tar.gz -Dwagon.url=
> $ tar tzf openssl-0.9.8k.tar.gz 
> gzip: stdin: not in gzip format
> tar: Child returned status 1
> tar: Error exit delayed from previous errors
> $ tar tf openssl-0.9.8k.tar.gz | more
> openssl-0.9.8k/apps/
> openssl-0.9.8k/apps/app_rand.c
> Downloading expat results in a corrupted file
> mvn -X wagon:download-single -Dwagon.fromFile=expat-1.98.8.tar.gz -Dwagon.url=
> $ tar tf expat-1.98.8.tar.gz 
> tar: This does not look like a tar archive
> tar: Skipping to next header
> tar: Read 1943 bytes from expat-1.98.8.tar.gz
> tar: Error exit delayed from previous errors

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message