aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes What's the right way to update your maven project in eclipse after a git pull Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "What Watch "What New topic
Author

What's the right way to update your maven project in eclipse after a git pull

Ben Synes
Ranch Hand

Joined: Jul 18, 2012
Posts: 54
Hi

I am fairly new to Eclipse, not a massive fan of it so far, as an IDE, but I want to try to like it, before I move to intelliJ.

So, can I ask, after doing a git pull, on the command line, whats the best way for me to update any new maven dependencies, refresh the project, and ensure its up to date.

It seems to me each time I get different results and have to re-run them a couple of times sometimes to see the updates, or even radically close and reopen the project.

Here is the typical routine I use:

1. Do a git pull
2. Refresh the project
3. Project -> clean
4. Maven -> Update project configuration
5. Maven -> Update project
6. In the project directory, mvn clean install -D skipTests

Look, Im fairly new to all of this, so this may well be completely wrong, more than likely its very wrong, I just want the correct minimal amount of steps to ensure my project in the IDE is showing the up to date artefacts, and dependecncies etc.

Sorry again, as a newbie, I hope this isnt too embarrassing a question, and I did google it before I posted it! But to no avail...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What's the right way to update your maven project in eclipse after a git pull