You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2017/10/29 20:54:00 UTC

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

     [ https://issues.apache.org/jira/browse/MNG-6226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MNG-6226.
-------------------------------
    Resolution: Incomplete

No further information provided.

> 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: Bug
>          Components: Plugin API
>    Affects Versions: 3.5.0
>            Reporter: Sahil Amar
>            Priority: Blocker
>              Labels: maven
>
> 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}
> Also the same works for a war.
> Please help. 
> Thanks and Regards,
> Sahil Amar



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)