Updating the eclipse project at the end of the maven build

Is it possible to automatically update project files and folders in eclipse at the end of the maven build. I usually build from the command line. After assembly e. The target folder must be updated.

Additional Information: The maven build is done on the command line, and the eclipse should automatically update when completed.

+7
eclipse maven maven-2 maven-3 m2e
source share
2 answers

Use Run as -> Maven build ... In the launch / build configuration properties, go to the update tab and select the update option you need.

Please note that the eclipse build and the maven build may interfere, so make sure you turn off the Build automatically option in the Project menu before looking at maven build. Otherwise, you may get undefined compilation errors.

enter image description here

Here is an eclipse plugin that implements an external hook for updating: https://github.com/andrask/maven-eclipse-control-plugin

+13
source share

I don’t think that there is no way to connect two things.

But eclipse has a Refresh on access option, which may be useful for you.

0
source share

All Articles