Hello, I'm using bitbucket pipelines to build my project, the thing is even though I'm using the config
pipelines:
default:
- step:
caches:
- maven
script:
- docker version
- mvn clean package verify -Dmaven.docker.plugin.skip=true -s settings.xml
services:
- elasticsearch
for some reason the maven dependencies still being downloaded every time this increase a lot the build time, I'm understanding the feature wrong? should my built time decrease in at least 30% after enabling the maven cache?
Hi @ericsantosnasc,
At the end of a successful build Pipelines will capture the dependencies store in the specified location. Since you referenced 'maven' it will look in location '~/.m2/repository'
Given that it does not seem to work for you, could you try putting this at the end of your script in your bitbucket-pipelines.yml to see if anything is inside that default local maven repository:
- cd ~/.m2/repository
- ls
Another thing you could check is what the default configured local maven repository is:
mvn help:evaluate -Dexpression=settings.localRepository | grep -v '\[INFO\]'
I hope this helps.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.