I have a pipeline that downloads a JAR file from Bitbucket downloads. And save it in the.m2 directory. After that, I do a mvn clean install. At this moment, the JAR that I have in.m2 will be a dependency, but when they try to install it, the next error in the pipeline appears:
error reading /root/.m2/repository/com/lib.jar; zip file is empty
But if I validate the availability of this lib.jar, it's available. Could you please help me understand this error?
Thanks!
Hey @Andrea Calderon ,
I would suggest debugging your pipeline locally with Docker following the instructions outlined in the following article :
Locally, you can try different commands and steps to troubleshoot the issue you are facing with the jar file, and once you find the correct set of commands that work locally, you can push the same change to bitbucket, and it should work on Pipelines as well.
Should you have any questions, feel free to ask.
Thank you, @Andrea Calderon !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.