Using git and mvn release plug in
- From
- Philip Smith <philip_smith@apple.com>
- Date
- May 25, 2010, 22:11 UTC
- Message-ID
- <0AED808D-8CBB-47B9-9BBC-15067D19AC1F@apple.com>
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.
$ cd $HOME $ git clone ssh://mycomputer.foobar.com/Users/git/repository
and then I have my mvn projects layed out as:
$HOME/git/com.foobar.mygroup/project.one $HOME/git/com.foobar.mygroup/project.two ...
When I run mvn release:prepare all seems ok but it fails on mvn release:perform.
[INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.
I 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.
I 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.
Any help would be gratefully received.
Regards, Philip
Philip Smith Senior Software Engineer philip_smith@apple.com 408 862-1360 office 530 574-1659 mobile