0

Do I have to go update project first before run as maven build in Eclipse? (Refer to pics)

Update Project as seen in picture

Run as Maven build... option as seen in picture

Can I just select the run as Maven build... option? Will there be any implications if I did that?

  • You only need to `update project` if you change something in the Maven configuration, such as adding/removing dependencies. The Project is the Eclipse project, and Eclipse need to be made aware of the build configuration in Maven. – Erik Pragt Sep 09 '20 at 10:32

1 Answers1

1

No, it is not required to run update project before building with "Run as Maven build ...". You usually use update project to sync the Eclipse project with the content of the pom.xml. So you use it after changing something in the pom.xml.

See also this question:

What does Maven Update Project do in Eclipse?

Matei Florescu
  • 1,155
  • 11
  • 23