title: Maven build failure: Premature end of Content-Length delimited message body
body: <p>When doing <code>mvn clean install</code> on the package, many projects build but some failed. This was because those were big external <code>jar</code>s (like snappy and jline). The error message was as below:</p>
  
  <blockquote>
    <p>failed to execute goal on project list-GR-wrapper: Could not resolve dependencies for project com.xxx.services.list:list-GR-wrapper:pom:1.60.0.18-SNAPSHOT: The following artifacts could not be resolved: jline:jline:jar:0.9.94, org.xerial.snappy:snappy-java:jar:1.1.0.1: Could not transfer artifact jline:jline:jar:0.9.94 from/to nexus (<a href="http://gec-maven-nexus.companyname.com/nexus/content/groups/public" rel="nofollow noreferrer">http://gec-maven-nexus.companyname.com/nexus/content/groups/public</a>): GET request of: jline/jline/0.9.94/jline-0.9.94.jar from nexus failed: Premature end of Content-Length delimited message body (expected: 87325; received: 52223 -> [Help 1]</p>
  </blockquote>