如何在 Eclipse 中更新 Maven 存储库? [英] How to update maven repository in Eclipse?

查看:77
本文介绍了如何在 Eclipse 中更新 Maven 存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设您已经在使用 m2eclipse 插件,当它不更新依赖于您的存储库中的最新版本?

Assuming you're already using the m2eclipse plugin, what can you do when it doesn't update the dependencies to the latest in your repo?

例如,在命令行上,您可以添加 -U 标志,如

For example, on the command line, you can just add the -U flag as in

mvn clean install -U 

...强制更新依赖项.Eclipse 中有这样的东西吗?(它似乎并不总是获取最新的更新.)

…to force the dependencies to be updated. Is there something like this within Eclipse? (It doesn't always seem to pick up the latest updates.)

推荐答案

您可以右键单击您的项目,然后Maven > 更新项目...,然后选择强制更新快照/版本复选框,然后单击确定.

You can right-click on your project then Maven > Update Project..., then select Force Update of Snapshots/Releases checkbox then click OK.

这篇关于如何在 Eclipse 中更新 Maven 存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆