Closed cmoulliard closed 5 days ago
Looking at your sample project you have customized your cache volume name as part of the builder config.
This cache is for buildpack usage, it allows any buildpack to store information that it will reuse on subsequent builds. It does not provide a way to attach a maven .m2 repo to a build (as is suggested by your naming of the volume).
After each build, the library cleans up any volumes it used by removing them. The error is coming from that cleanup phase (potentially after a failed build in this instance, but it's hard to say because you only supply such a short window of the log).
It looks like that volume is in use by something else, and thus docker isn't allowed to remove it.
Either..
stop using the volume from something else while you perform the buildpack build
or.
tell buildpacks to not delete the cache vol after each build..
.withCacheVolumeName("my-cache-vol").withDeleteCacheAfterBuild(false)
As such a volume cannot attach a m2 repository, I will then remove it from the example that I'm testing
Thanks for the trick => .withDeleteCacheAfterBuild(false)
Isue
From time to time when we execute "mvn exec:java" we got this error using buildpack java client on a quarkus example
Originally posted by @cmoulliard in https://github.com/snowdrop/java-buildpack-client/issues/90#issuecomment-2485108250
@BarDweller