title: maven-release-plugin deploy goal fails on project with folder at top level in git repository
body: <p>We have a Maven project structured in a GIT repository with the following folders:</p>
  
  <pre><code>Parent project folder
  ------&gt; pom.xml
  ------&gt; Child 1 project folder
  ------&gt; ------&gt; pom.xml
  ------&gt; Child 2 project folder
  ------&gt; ------&gt; pom.xml
  </code></pre>
  
  <p>We are now trying to use the maven-release-plugin in order to go releases of the code.</p>
  
  <p>When running 'mvn release:prepare release:perform', the prepare phase works fine but when the perform phase runs we get the following error:</p>
  
  <pre><code>[INFO] --- maven-release-plugin:2.0:perform (default-cli) @ PARENTPROJECT ---
  [INFO] Checking out the project to perform the release ...
  [INFO] Executing: cmd.exe /X /C "git clone ssh://GITREPO.git "C:\CI\Jenkins\jobs\test 6\workspace\Parent project folder\target\checkout"
  "
  [INFO] Working directory: C:\CI\Jenkins\jobs\test 6\workspace\Parent project folder\target
  [INFO] Executing: cmd.exe /X /C "git fetch ssh://GITREPO.git"
  [INFO] Working directory: C:\CI\Jenkins\jobs\test 6\workspace\Parent project folder\target\checkout
  [INFO] Executing: cmd.exe /X /C "git checkout PARENTPROJECT-0.0.0.0.2"
  [INFO] Working directory: C:\CI\Jenkins\jobs\test 6\workspace\Parent project folder\target\checkout
  [INFO] Executing: cmd.exe /X /C "git ls-files"
  [INFO] Working directory: C:\CI\Jenkins\jobs\test 6\workspace\Parent project folder\target\checkout
  [INFO] Executing goals 'deploy'...
  [WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance.
  [INFO] [INFO] Scanning for projects...
  [INFO] [INFO] ------------------------------------------------------------------------
  [INFO] [INFO] BUILD FAILURE
  [INFO] [INFO] ------------------------------------------------------------------------
  [INFO] [INFO] Total time: 0.063s
  [INFO] [INFO] Finished at: Fri Feb 07 15:07:26 GMT 2014
  [INFO] [INFO] Final Memory: 1M/15M
  [INFO] [INFO] ------------------------------------------------------------------------
  [INFO] [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\CI\Jenkins\jobs\test 6\workspace\Parent project folder\target\checkout). Please
   verify you invoked Maven from the correct directory. -&gt; [Help 1]
  </code></pre>
  
  <p>When looking in the C:\CI\Jenkins\jobs\test 6\workspace\Parent project folder\target\checkout folder, there is indeed no POM file in there.  This is because the 'git checkout' has checked out the tag that was created which is against the 'Parent project folder'.</p>
  
  <p>Therefore, within the checkout folder, we have 'Parent project folder' and no POM file because the POM lives within 'Parent project folder' rather than right at the top level of the repository.</p>
  
  <p>We know that a solution to this problem would be to move the POM to right at the top level of the repository (i.e. outside of 'Parent project folder') but would like to explore if there any alternative solutions.</p>
  
  <p>We have a similar setup of a project in SVN and the release plugin works fine.  This seems to be because when the tag is created, only the contents within 'Parent project folder' appear in the tag so the POM is checked out into target.  In git the actual 'Parent project folder' is tagged and so this is checked out into target and the POM lives within that.</p>
  
  <p>Is there anything that we can do when actually running the release plugin to tell it to run goals such as deploy to run from 'C:\CI\Jenkins\jobs\test 6\workspace\Parent project folder\target\checkout\Parent project folder' rather than 'C:\CI\Jenkins\jobs\test 6\workspace\Parent project folder\target\checkout'?</p>
  
  <p>I expect this is a long shot but thought it would be worth asking.</p>