Bitbucket Maven缓存和干净阶段
我对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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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 withclean
.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