{"thread":{"id":"23905","subject":"Using git and mvn release plug in","startedAt":"2010-05-25T22:11:25Z","lastAt":"2010-05-25T22:11:25Z","messageCount":1,"participants":["Philip Smith"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"142298","messageId":"0AED808D-8CBB-47B9-9BBC-15067D19AC1F@apple.com","threadId":"23905","inReplyTo":null,"subject":"Using git and mvn release plug in","fromName":"Philip Smith","fromEmail":"philip_smith@apple.com","sentAt":"2010-05-25T22:11:25Z","receivedAt":"2010-05-25T22:11:25Z","isPatch":false,"sender":{"key":"philip_smith@apple.com","avatar":null},"body":"I want to use git to store my mvn projects. I have a bare git repository containing multiple projects and I have cloned the bare repository to a local repository and I am working in each mvn project.\n\n$ cd $HOME\n$ git clone ssh://mycomputer.foobar.com/Users/git/repository \n\nand then I have my mvn projects layed out as:\n\n$HOME/git/com.foobar.mygroup/project.one\n$HOME/git/com.foobar.mygroup/project.two\n...\n\n\nWhen I run mvn release:prepare all seems ok but it fails on mvn release:perform.\n\n[INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.\n\nI notice the working directory is target/checkout and this has the complete source tree of the repository which means the project pom.xml is found 2 levels down in target/checkout/com.foobar.mygroup/project.one.\n\nI have browsed the scm and git plugin documentation and I don't find anything to tell me how to configure my project plug in to get a sub-tree of the repository rather than the whole repository.\n\nAny help would be gratefully received.\n\nRegards, Philip\n\nPhilip Smith\nSenior Software Engineer\nphilip_smith@apple.com\n408 862-1360 office\n530 574-1659 mobile\n"}]}