Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does Maven Update Project do in Eclipse?

What does "Maven -> Update Project..." do in Eclipse?

enter image description here

like image 980
Ashish Avatar asked Dec 12 '13 15:12

Ashish


People also ask

What is Maven project in Eclipse?

Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.

What does reload Maven project do?

Reload a Maven project If you want to control the importing process of your project, you can manually trigger the action. In the Maven tool window, right-click a linked project. On invoking this action, IntelliJ IDEA parses the project structure in the Maven tool window.

What is Maven force update?

Force Update All SNAPSHOT Dependencies. As we know already, Maven will not download existing dependencies again. Therefore, to force Maven to update all corrupted SNAPSHOT dependencies, we should add in our command the -U/–update-snapshots option: mvn package -U mvn install -U.


1 Answers

It syncs the Eclipse project settings with that of the pom. If you for example change important plugin settings, such as the output java version, you will find that Eclipse will ask you to update the project and afterwards the configured Java runtime in the project will have changed to reflect what your Maven pom indicates.

That is an important thing to keep in mind: the Maven pom is the lead in this kind of project setup. If you want settings to change, try to do that through the pom and not through Eclipse project settings directly or doing a project update might revert what you have changed. There are usually some things I have to correct myself anyway though, such as build path exclusions that m2eclipse likes to put in and strange deployment assembly configurations.

like image 120
Gimby Avatar answered Sep 22 '22 09:09

Gimby