Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pipeline error reading /root/.m2/repository/com/file.jar; zip file empty

Andrea Calderon April 17, 2024

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!

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 18, 2024

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events