Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

where i can find maven package generated by bitbucket pipeline?

Nikhil I'm New Here Jun 06, 2022


1 answer

0 votes
Patrik S Atlassian Team Jun 07, 2022

Hello @Nikhil ,

Welcome to Atlassian Community!

When you use caches in the pipelines, we are basically compressing the directory where your framework is saving the dependencies, uploading it to our infrastructure, and unzipping it in the same exact location for the subsequent builds. Since you are using the maven cache, the default cache directory is ~/.m2/repository. You can find the directory of the pre-defined caches in the following link : 

Having said that, it's currently not possible to download caches, but you can see the current caches list when you access the Pipelines page and click on the Caches button in the top right corner.

We have a feature request though, to implement the ability to download the caches : 

I would suggest adding your vote there and watching the ticket to receive first-hand updates whenever there's any progress.

As a workaround while this feature is not implemented, you can create an artifact for the same directory the cache is looking for, so you can download the artifact when the build completes. Please find the example below : 

- mvn build
artifacts: # defining the artifacts
- .m2/repository/**

This will create an artifact for all the files within the folder ~.m2/repository, which is the default cache directory for maven. The artifact will be made available to download in the Artifacts tab when the build completes.

More details on how artifacts work are outlined in the documentation below : 

Hope that helps! Let me know in case you have any questions.

Thank you, @Nikhil .

Kind regards,

Patrik S

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,222 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you