Re: NoClassDefFoundError: com/google/common/cache/CacheBuilder

2014-03-08 Thread Nigel Magnay
Asunto: Re: NoClassDefFoundError: com/google/common/cache/CacheBuilder My guess is that your plugin depends on Guava directly or indirectly, overwriting the version that Jenkins core uses. Check mvn dependency:tree output and the path that leads to the guava. On 07/18/2013 03:24 AM, David

Re: NoClassDefFoundError: com/google/common/cache/CacheBuilder

2013-11-28 Thread Adrien Lecharpentier
: jenkin...@googlegroups.com javascript: CC: David Mata Gorriz Asunto: Re: NoClassDefFoundError: com/google/common/cache/CacheBuilder My guess is that your plugin depends on Guava directly or indirectly, overwriting the version that Jenkins core uses. Check mvn dependency:tree output

Re: NoClassDefFoundError: com/google/common/cache/CacheBuilder

2013-07-24 Thread Stephen Connolly
On Wednesday, 24 July 2013, Jesse Glick wrote: On 07/23/2013 07:02 PM, Stephen Connolly wrote: unless we shade like I shade bouncycastle for cloudbees-license (i.e. into a package name that includes the version of the dependency) That is what I meant. Well if core ups its dependency,

Re: NoClassDefFoundError: com/google/common/cache/CacheBuilder

2013-07-23 Thread Jesse Glick
On 07/22/2013 09:13 PM, Kohsuke Kawaguchi wrote: My guess is that your plugin depends on Guava directly or indirectly, overwriting the version that Jenkins core uses. And Stephen Connolly found that attempting to do this does not work. (Specifically getting a NCDFE on CacheBuilder, in fact.)

Re: NoClassDefFoundError: com/google/common/cache/CacheBuilder

2013-07-23 Thread Stephen Connolly
On Tuesday, 23 July 2013, Jesse Glick wrote: On 07/22/2013 09:13 PM, Kohsuke Kawaguchi wrote: My guess is that your plugin depends on Guava directly or indirectly, overwriting the version that Jenkins core uses. And Stephen Connolly found that attempting to do this does not work.

Re: NoClassDefFoundError: com/google/common/cache/CacheBuilder

2013-07-23 Thread Jesse Glick
On 07/23/2013 03:55 PM, Stephen Connolly wrote: Here is my list of dependencies that should *NOT* be exposed by Jenkins: - BouncyCastle (top if the list) - ASM (before they got their act together... Even still not sure) - Guava Would I guess suffice to shade these? But then we have to deal

Re: NoClassDefFoundError: com/google/common/cache/CacheBuilder

2013-07-23 Thread Stephen Connolly
It would suffice to exclude them from the plugin's classloader. Shading only moves the problem... unless we shade like I shade bouncycastle for cloudbees-license (i.e. into a package name that includes the version of the dependency) Fundamentally when adding a dependency to core we need to either

Re: NoClassDefFoundError: com/google/common/cache/CacheBuilder

2013-07-23 Thread Jesse Glick
On 07/23/2013 07:02 PM, Stephen Connolly wrote: unless we shade like I shade bouncycastle for cloudbees-license (i.e. into a package name that includes the version of the dependency) That is what I meant. -- You received this message because you are subscribed to the Google Groups Jenkins

NoClassDefFoundError: com/google/common/cache/CacheBuilder

2013-07-18 Thread David Mata Gorriz
Hi, everyone. We have a plugin in our company to do some specific tasks. In the last weeks, we had to add guava as a dependency to avoid java.lang.NoClassDefFoundError: com/google/common/cache/CacheBuilder at hudson.model.Queue.init(Queue.java:188) at

Re: NoClassDefFoundError: com/google/common/cache/CacheBuilder

2013-07-18 Thread Jesse Glick
On 07/18/2013 06:24 AM, David Mata Gorriz wrote: In the last weeks, we had to add guava as a dependency to avoid java.lang.NoClassDefFoundError: com/google/common/cache/CacheBuilder Do you know why is that? Perhaps you are using Maven 2? Use Maven 3.0.5 to get correct dependency resolution.

Re: NoClassDefFoundError: com/google/common/cache/CacheBuilder

2013-07-18 Thread Jesse Glick
On 07/18/2013 02:32 PM, David Mata Gorriz wrote: ===[JENKINS REMOTING CAPACITY]===channel started Wait, you mean you cannot run your plugin’s tests from the command line? Or from a build of a Jenkins Maven-type job? If the latter, try switching to a freestyle job with a Maven build step. --