I created bitbucket pipeline which triggers maven release goal to generate RPM file. To generate RPM file we have base artifact in nexus repository around size of 1GB. During pipeline execution when it tries to fetch I'm getting below error:
Unable to find/resolve artifact. Could not transfer artifact {artifactname} from/to {repopath} failed: Premature end of Content-Length delimited message body (expected: 1,042,041,480; received: 462,101,847)
I tried finding any help but couldn't found any relevant reference to fix an issue. Can I please ask for help to fix it? Any leads would be much appreciated.
G'day, @Zeenesh Patel
Welcome to the community!
This error typically arises when the value of the Content-Length header does not align with the actual size of the response. This is probably due to the connection closing before receiving the entire content.
The issue appears to be linked to https://issues.apache.org/jira/browse/WAGON-486. You could try adding the following line to your code to resolve this.
-Dmaven.wagon.http.pool=false
Let me know how it goes.
Regards,
Syahrul
Hi @Syahrul ,
Thank you for your answer, it really helped me pass through pipeline failure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.