gpt4 book ai didi

maven - mvn -U clean compile 和 mvn clean compile 的区别

转载 作者:行者123 更新时间:2023-12-04 17:17:36 26 4
gpt4 key购买 nike

我使用这两个命令来解决我项目中的依赖问题。 mvn -U clean compile解决的问题。但我不知道它们之间的区别。请解释这些命令之间的区别以及我何时使用 mvn clean compilemvn -U clean compile .

最佳答案

-U, --update-snapshots
强制检查远程存储库上的更新版本和快照

see here (6.1.11. 下载和验证依赖项):

-clean will clean (remove all compiled and copied resources) of your maven project target directory.

-install will do almost a full maven lifecycle like testing, compiling AND copying the new builds to your local repository.



-U 你会告诉 maven 更新你本地仓库的远程依赖(通常是第三方依赖) 还有

关于maven - mvn -U clean compile 和 mvn clean compile 的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32155919/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com