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

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

问题描述

假设您已经在使用 m2eclipse插件,可以做什么不更新依赖项到最新的你的回购。



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

  mvn clean install -U 

...强制依赖关系更新。在Eclipse中有这样的东西吗? (并不总是看起来拿起最新的更新。)

解决方案

您可以右键单击,然后 Maven>更新快照


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

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

mvn clean install -U 

...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.)

解决方案

You can right-click on your project then Maven > Update Snapshots.

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

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