How to update maven repository in Eclipse?

Stephane Grenier picture Stephane Grenier · Mar 31, 2010 · Viewed 235.5k times · Source

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?

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

Answer

Pascal Thivent picture Pascal Thivent · Mar 31, 2010

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