Using git and mvn release plug in

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx
408 862-1360 office
530 574-1659 mobile

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]