Automatically update maven project in eclipse after svn-checkout

After checking the maven project from the svn repository, eclipse shows error dependencies. To solve the problem,

  • I need to right click on the project folder,
  • then I have to click Maven -> Update Project

After that, dependencies of the pom file are loaded and concrete class classes are installed.

Problem: I have to do this every time after checking the maven project.

My question is: why do I need to manually update the maven project? Why didn't you do this maven-builder automatically? Is there a way to enable eclipse or maven-builder to do this automatically?

+4
source share
1 answer

If you have Subversive (installed through the Marketplace), you can check and configure the project in one step from Eclipse. In the File โ†’ Import dialog box, try typing Maven โ†’ Check Maven Projects from SVN.

Unfortunately, maven project configurations tend to become outdated when you change things in the POM. Another tip from me is to use the keyboard shortcut for โ€œRefresh Projectโ€ (Alt-F5 on Mac and Windows), which should select the project you are currently in and has the ability to simultaneously update all projects.

0
source

Source: https://habr.com/ru/post/1492081/


All Articles