Maven 3 upgrade

15 views
Skip to first unread message

Kevin S. Clarke

unread,
Oct 2, 2012, 11:46:03 AM10/2/12
to kathryn-huxt...@googlegroups.com
Hi,

I upgraded to Maven 3 and came across a few problems with my
wagon-gitsite. I upgraded a bunch of the report plugins to the latest
versions and changed which reports I requested in the
maven-project-info-reports-plugin configuration and everything looked
good and ready to go. When I run `mvn site:deploy` now though I get
the following error:

[INFO] Working directory: /tmp/wagon-scm245858206.checkout
[INFO] Executing: /bin/sh -c cd /tmp/wagon-scm245858206.checkout &&
git remote add origin ssh://g...@github.com/ksclarke/freelib-utils.git/
[INFO] Working directory: /tmp/wagon-scm245858206.checkout
[INFO] Executing: /bin/sh -c cd /tmp/wagon-scm245858206.checkout &&
git pull origin refs/heads/gh-pages
[INFO] Working directory: /tmp/wagon-scm245858206.checkout
Transfer error: org.apache.maven.scm.ScmException: Unable to commit
file. The git-pull command failed. ERROR: Repository not found.
fatal: The remote end hung up unexpectedly

scm:git:ssh://github.com/ksclarke/freelib-utils.git/ - Session: Disconnecting
scm:git:ssh://github.com/ksclarke/freelib-utils.git/ - Session: Disconnected
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

It looks like it's trying to interact with
ssh://g...@github.com/ksclarke/freelib-utils.git/ which won't work, but
interacting with ssh://g...@github.com/ksclarke/freelib-utils.git will.
My pom has:

<scm>
<connection>scm:git:g...@github.com:ksclarke/freelib-utils.git</connection>
<developerConnection>scm:git:g...@github.com:ksclarke/freelib-utils.git</developerConnection>
<url>g...@github.com:ksclarke/freelib-utils.git</url>
</scm>

so it looks like the trailing slash is being added somewhere? I don't
believe I changed the wagon-gitsite plugin (I'm still using 0.2
version and 1.3 of maven-scm-provider-gitexe and
maven-scm-manager-plexus).

Any ideas? Is this a problem with my configuration or do I need to
upgrade wagon-gitsite?

Thanks!
Kevin

Kevin S. Clarke

unread,
Oct 2, 2012, 11:50:56 AM10/2/12
to kathryn-huxt...@googlegroups.com
Gah, nevermind... found the 0.3.1 version of wagon-gitsite on
mvnrepository (don't know how I missed it the first time I looked
there) and tried it. It fixes the problem.

Sorry for the wasted bandwidth...
Kevin
Reply all
Reply to author
Forward
0 new messages