[Atlassian community]: caches only generate on successful builds, and only caches under 1GB compressed are saved. Check the Build teardown section of a recent successful build's log for messages about the maven cache. If it says the cache directory is empty, list the directory at the start and end of the step: dependencies may be landing somewhere else (the default maven cache is ~/.m2/repository). Caches are deleted a week after generation and repopulate on the next successful build. Static directory caching never updates when dependencies change: use file-based cache keys instead.

Context: If the cache button shows nothing, the build never saved one.

## Matched source
Source: Source: https://community.atlassian.com/forums/Pipelines-questions/Pipeline-disregards-use-of-maven-cache/qaq-p/2980191
Original query: "Bitbucket Pipelines cache missing: only successful builds under 1GB save caches"
Key terms: bitbucket, builds, cache, caches, missing, only, pipelines, save, successful, under
