Take the 2-minute tour ×  I'm new to both maven and git and
wanted to get some help in setting a project.  Is there a way to
define a goal in the pom to push/pull from git during linked to
a maven phase? For example, can I pull from git during the maven
install phase?  If yes, how can that be accomplished? I would
appreciate any code examples.  share|improve this question Why
would you like to push or pull during a build? Sounds like a
really bad idea. –  Stein G. Strindhaug Jun 15 '11 at 14:32 It's
not really a build. The project contains automated tests. And
the way our test framework is setup we need to pull the latest
framework code to run the tests from time to time. –  user786045
Jun 15 '11 at 14:41 Assuming the pull will fast-forward (no
merge resolution needed), isn't just running "git pull repoName"
then "mvn arguments" simple enough? If it may not fast forward,
how should maven handle it? –  Stein G. Strindhaug Jun 15 '11 at
14:46 add comment  3 Answers  up vote 5 down vote accepted  Good
idea or no