You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sahil Amar (JIRA)" <ji...@apache.org> on 2017/05/05 10:10:04 UTC

[jira] [Created] (MNG-6226) mvn dependency:get error - Premature end of Content-Length delimited message body (expected: 56473600; received: 6843

Sahil Amar created MNG-6226:
-------------------------------

             Summary: mvn dependency:get error - Premature end of Content-Length delimited message body (expected: 56473600; received: 6843
                 Key: MNG-6226
                 URL: https://issues.apache.org/jira/browse/MNG-6226
             Project: Maven
          Issue Type: Question
    Affects Versions: 3.5.0
            Reporter: Sahil Amar
            Priority: Blocker


Hi Team,

I am trying to use the maven dependency get plugin to get the artifact which is a tar file from our central repo.

Here is the command:
{code:xml}
mvn dependency:get -DgroupId=com.sample -DartifactId=sample-project -Dversion=1.0.1-SNAPSHOT -Dtransitive=false -Dpackaging=tar 
{code}

It gives me the below error:
{code:xml}
[ERROR] : Premature end of Content-Length delimited message body (expected: 56473600; received: 6843
[ERROR] -> [Help 1]
{code}

And also when I try it with the debug(-X) mode, this is the error I get:
{code:xml}
Caused by: org.apache.maven.wagon.providers.http.httpclient.ConnectionClosedException: Premature end of Content-Length delimited message body (expected: 56473600; received: 6835
        at org.apache.maven.wagon.providers.http.httpclient.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:180)
        at org.apache.maven.wagon.providers.http.httpclient.conn.EofSensorInputStream.read(EofSensorInputStream.java:137)
        at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:572)
        at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:372)
        ... 43 more
{code}


The above command when I try on windows it works. But issue is when I run it on UNIX.


But when I try to get the jar using the below command(with -Dpackaging=jar) on both Linux and windows, it works:
{code:xml}
mvn dependency:get -DgroupId=com.sample -DartifactId=sample-project -Dversion=1.0.1-SNAPSHOT -Dtransitive=false -Dpackaging=jar
{code}


Please help. 

Thanks and Regards,
Sahil Amar



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)