Hi, On 03.10.2012 16:21, Rob Withers wrote: > I stopped using git and went back to what was working before, which was > setting up a maven2 project. Now I develop in eclipse and I can launch > a build manually, whenever I want to build the jar and run the tests. > To get it working, I set the global workspace to my eclipse workspace > and then specify the project pom, like: "murmur-events/pom.xml". >
That would explain the failures mentioned in your previous post wrt. to not being able to wipe the workspace. > So, sticking to Git, how should I setup a project to use the git SCM? In eclipse you should install the eGit plugin and execute a 'share project' with it. The git repository can then reside in your eclipse project. > Which plugin should I use and how should I configure it? > 1) I would like to run a build, automatically, whenever the local > repository gets a commit. In jenkins you would create a maven job using git as your SCM. Point git at your project. You can have it poll your repository every 5 minutes or you can set up your git repository to use a commit hook that triggers a build in jenkins. Have a look at this blog by kawaguchi san: http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/. > 2) Just to know, I would also like to run a build whenever I push to > github. > I have not done this myself yet. So i leave it for another day. > thanks! > Rob regards Dirk