Skip to content
Sergi Baila edited this page May 6, 2015 · 1 revision

Welcome to the scm-ssh-plugin wiki!

There is currently just this page on the wiki to document the details of the compatibility problem that led to this fork.

Problem: Installing scm-ssh-plugin for SCM Manager doesn't work on recent versions

After some research the problem is in the class GitReceiveHook. I discovered it by just setting the log level to debug and trying to install the plugin. Then I got an error from Guice that led me to the constructor of this class.

After downloading the source code and setting up the project I changed the pom.xml from the plugin to depend on the newest version (1.45) instead on the old one (1.22). Cleared and rebuild dependencies and I got a compilation error.

I checked the changes on the bitbucket repository.

This is the commit that breaks the plugin: https://bitbucket.org/sdorra/scm-manager/commits/8925ef

The version 1.32 was the previous version of that commit. The next one was 1.33 and that's the first one incompatible with the original plugin.

The solutions was simply to change the constructor and hope that Guice had the right references to inject to it. Seems to be working now.

Some links: https://bitbucket.org/sdorra/scm-manager/issue/26/git-repository-authentication-with-ssh-key

Clone this wiki locally