I'm using maven cache in bitbucket pipelines. During development in the staging branch I'm relying on SNAPSHOTs which are in active development as well. I'd like to be able to use the maven cache, but exclude the SNAPSHOTs from the cache, and instead have those updated every time. Right now the only way to have those SNAPSHOTs updated is to clear the cache.
Is there an option that could be configured to support this or is this a feature that could be added to pipelines?
It's not beautiful, but it works in my case. I've added the following script before I start the maven build:
find ~/.m2/ -name "*SNAPSHOT" | xargs rm -rf
That basically removes all directories in the maven that end with "SNAPSHOT".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.