git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Using git and mvn release plug in

From
PSPhilip 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

Message 1 of 1 in “Using git and mvn release plug in”
  1. Philip SmithMay 25, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.