probably this requires either adding it as a hard dependency or creating a
plugin that just provides jsch and switching ssh-credentials to have its
optional dependency on that plugin.

the issue is that ssh-plugin has jsch in it's classloader which is a child
of ssh-credentials... so ssh-credentials cannot see the jsch classes.

On 4 October 2014 21:13, Zoran Regvart <[email protected]> wrote:

> Hi,
> so I'm trying to add ssh-credentials support to the ssh-plugin, and
> I'm running into an issue involving class loading. The ssh-credentials
> plugin depends optionally on jsch as a jar package (= non-hpi).
>
> So the ClassicPluginStrategy$DependencyClassLoader for ssh-plugin
> doesn't have the jsch dependency in the classpath, as it is not in the
> Plugin-Dependencies of the manifest -- and the following is throwing
> ClassNotFoundException:
>
> // throws java.lang.ClassNotFoundException: com.jcraft.jsch.JSchException
> JSchConnector connector = new JSchConnector(...)
>
> what I'm I missing? My modifications of the ssh-plugin are at:
> https://github.com/zregvart/ssh-plugin
>
> zoran
> --
> Human by day user by night
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to