Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update maven repository in Eclipse?

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

like image 740
Stephane Grenier Avatar asked Mar 31 '10 19:03

Stephane Grenier


People also ask

How do I update my Eclipse repository?

Window > Preferences > Install/Update > Available Software Sites. Click 'Add' Enter the URL of the new repository (for example, https://download.eclipse.org/releases/2021-12/ ). Click 'Ok'

How do I update my Maven?

icon in the Maven tool window to open the Maven settings. Select Repositories from options on the left. On the Repositories page, click Update to update Maven repositories. After the update is finished, click OK.

How do I update my local Maven repository?

Click settings and search for "Repositories", then select the local repo and click "Update". That's all.


1 Answers

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

like image 153
Pascal Thivent Avatar answered Sep 21 '22 17:09

Pascal Thivent