Bitbucket Maven缓存和干净阶段

发布于 2025-02-09 08:48:56 字数 274 浏览 1 评论 0原文

我对Devops newish and New to Maven,我对Bitbucket Maven Cache有一个疑问。

我们当前的构建管道设置为使用Maven Cache,实际构建命令为./ mvnw Clean slotist。在我的脑海中,这对我来说没有任何意义,因为最后一个构建中管道缓存的任何东西都将在下一个构建中被clean> Clean阶段“清洁”。 这听起来不错,还是我错过了什么?

谢谢您的帮助。

斯科特

I'm newish to DevOps and new to Maven and I have a question regarding the Bitbucket maven cache.

Our current build pipeline is set to use a maven cache, and the actual build command is ./mvnw clean install. In my head this doesn't make any sense to me because anything that was cached by the pipeline in the last build, will be 'cleaned' in the next build by the clean phase.
Does that sound right, or am I missing something?

Thank you for the help.

Scott

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

陪我终i 2025-02-16 08:48:56

MVN Clean只能从项目的文件夹中删除构建工件。

BitBucket默认情况下,Caches Maven的〜/.m2文件夹下载构建中使用的所有依赖项。 清洁中没有任何东西可以消灭。

https:///www.marcobehler.com/ Guides/mvn-clean-install-a-a-short-guide-to-maven

https://support.atlassian.com/bitbucket-cloud/docs/cache-deperioncies/#pre-defined-caches

mvn clean will only remove build artifacts from your project's folders.

BitBucket by default caches Maven's ~/.m2 folder where it downloads all the dependencies used in your build. Nothing in there is getting wiped with clean.

https://www.marcobehler.com/guides/mvn-clean-install-a-short-guide-to-maven

https://support.atlassian.com/bitbucket-cloud/docs/cache-dependencies/#Pre-defined-caches

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文