I know the docs say that wagon-scm has only been tested with CVS and 
Subversion, and I've run it with Subversion successfully.

Is anyone working on getting it to work with Git, or does it already?

I created a very simply project with a README and a pom.xml and nothing else. 
It's at

        http://github.com/khuxtable/test-project

It uses versions 1.3 of the gitexe and scm-manager-plexus extensions and 
version 1.0-beta-6 of the scm wagon.

What I would like to do is deploy my site docs (all generated by the site 
plugin) to the gh-pages branch of the git repository. I don't see any way in 
the Git SCM URL structure to specify a branch. If there was a way to do this it 
would be cool.

But at the moment, with the URL

        scm:git:ssh://[email protected]/khuxtable/test-project.git

I get the following:

[INFO] [site:deploy {execution: default-cli}]
scm:git:ssh://github.com/khuxtable/test-project.git - Session: Opened  
Uploading: . to scm:git:ssh://github.com/khuxtable/test-project.git

[INFO] Executing: /bin/sh -c cd 
/Users/huxtable/Documents/workspace/test-project/. && git ls-files
[INFO] Working directory: /Users/huxtable/Documents/workspace/test-project/.
[INFO] Executing: /bin/sh -c cd 
/var/folders/M+/M+95phY6GfOYTLYCJKW4Bk+++TI/-Tmp- && git clone 
ssh://[email protected]/khuxtable/test-project.git/. 
/var/folders/M+/M+95phY6GfOYTLYCJKW4Bk+++TI/-Tmp-/wagon-scm223596417.checkout
[INFO] Working directory: /var/folders/M+/M+95phY6GfOYTLYCJKW4Bk+++TI/-Tmp-
 Transfer error: org.apache.maven.scm.ScmException: Unable to commit file. The 
git-clone command failed. ERROR: Repository not found.  Make sure you include 
the .git, e.g. [email protected]:defunkt/ambition.git
fatal: The remote end hung up unexpectedly

scm:git:ssh://github.com/khuxtable/test-project.git - Session: Disconnecting  
scm:git:ssh://github.com/khuxtable/test-project.git - Session: Disconnected

I particularly like the "/." after the repository name. Funny.

The maven release plugin behaves fine with the same developerConnection as my 
site URL above.

Any ideas? I'm happy to help out with making this work, though I'm not a 
committer at this point.

-K

Reply via email to