Caching Maven
You can cache Maven content by putting the Bitrise.io Cache:Push Step at the end of your Workflow. To later use this cached data, use the Bitrise.io Cache:Pull Step after Git Clone Step.
Branch-based caching vs key-based caching
This guide is is about legacy, branch-based caching. For key-based caching, check out our in-depth guide: Key-based caching.
You can read about our dedicated key-based caching Steps here: Dedicated caching Steps for dependency managers.
-
Open your app on Bitrise.
-
Click the
button on the main page. -
Select a Workflow from the
dropdown menu. -
Insert the Cache:Pull step after the
Git Clone
but before theAndroid Build
steps.Step version of the Cache:Pull Step
Make sure that your Step is version 1.0.0 or newer. With the older versions, you have to manually specify paths for caching.
-
Insert the Bitrise.io Cache:Push Step to the very end of your Workflow.
-
In the Cache paths input of the step, enter
$HOME/.m2
.
And you’re done!