So what will happen is that, unless you configure the hpi plugin correctly, they will be use the plugin uberclassloader which will be selecting one of those library versions as the winner.
The normal way to handle this issue is to create a mostly empty plugin that the other plugins can depend on directly and let that plugin drive the version alignment... If you must use different versions then you need to ask the hpi plugin to give you classloader child-first classloading or ask it to isolate specific packages and hope you can slice and dice correctly as neither option is particularly pretty or without its associated pain/risks On 6 February 2015 at 11:42, Kirill <[email protected]> wrote: > Hi, > > In our company we have created 2 plugins: plugin A and plugin B. Both of > them use a library XX, but different versions of it. > The question is: are plugins (they *do not* depend on each other) using > separate isolated class loaders? It's not obvious from reading > https://wiki.jenkins-ci.org/display/JENKINS/Plugin+Structure. > Will there be a problem when both plugins' extensions are used in the same > Jenkins job (build steps)? > > Regards, > Kirill. > > -- > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/587fa8e7-cf44-4850-aa90-178618e1c2cf%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/587fa8e7-cf44-4850-aa90-178618e1c2cf%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CA%2BnPnMx8pfX1Vkc_LJKnZJAKFnS-hzm81i5Okt51yJpRGuEjyQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
