NoClassDefFoundError: com/google/common/cache/CacheLoader

222 views
Skip to first unread message

Ivo Bellin Salarin

unread,
Feb 5, 2015, 8:10:54 AM2/5/15
to jenkin...@googlegroups.com
Hi all,

I'm developing a new plugin. Which depends on several other plugins.

Everything is fine until I add a further dependency to git-plugin.

When I add this dependency, the tests fail with the following stack (http://pastebin.com/TauPgTf5)

Well, I have found an older post with a similar issue on this ML, but I can't understand the solution.
https://groups.google.com/forum/#!topic/jenkinsci-dev/iUZg2f5v13g

My dependency tree is the following one (http://pastebin.com/ST9K3YYS), but I can find only one occurrence of Guava r09, brought by jgit.

Is there a way to avoid this error? How?

Thanks in advance,
Ivo

Jesse Glick

unread,
Feb 5, 2015, 11:15:19 AM2/5/15
to Jenkins Dev
On Thu, Feb 5, 2015 at 8:10 AM, Ivo Bellin Salarin
<ivo.bell...@gmail.com> wrote:
> I can find only one occurrence of Guava r09, brought by jgit.

Then git-client-plugin needs to <exclude> this dependency. Until that
fix is made and released you could perhaps do so in your own plugin.

Mark Waite

unread,
Feb 5, 2015, 11:19:49 AM2/5/15
to jenkin...@googlegroups.com
Jesse,

I'm preparing to release a new version of git-client-plugin this weekend.  

Can you propose a pull request for the exclusion, or send me more hints on the location where the exclusion is required?

Thanks,
Mark Waite


--
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 jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr203o-DwgziNN-1s%3DwhRtO_odOafcNPfpjxFJ-jqqqwFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks!
Mark Waite

Mark Waite

unread,
Feb 5, 2015, 12:09:32 PM2/5/15
to jenkin...@googlegroups.com
On Thu, Feb 5, 2015 at 9:15 AM, Jesse Glick <jgl...@cloudbees.com> wrote:
Are you directly including a dependency on JGit in your plugin?  If so, you might try depending on git-client-plugin only and rely on git-client-plugin's commitment that it will provide jgit and jgit-http-server.

Mark Waite
 
--
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 jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr203o-DwgziNN-1s%3DwhRtO_odOafcNPfpjxFJ-jqqqwFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks!
Mark Waite

Jesse Glick

unread,
Feb 5, 2015, 12:20:42 PM2/5/15
to Jenkins Dev
On Thu, Feb 5, 2015 at 8:10 AM, Ivo Bellin Salarin
<ivo.bell...@gmail.com> wrote:
> My dependency tree is the following one (http://pastebin.com/ST9K3YYS), but
> I can find only one occurrence of Guava r09, brought by jgit.

After actually looking at this I see that you are depending on a very
old version of the Git plugin. I do not think a newer version would
pull in this Guava dependency.

Ivo Bellin Salarin

unread,
Feb 6, 2015, 4:53:30 AM2/6/15
to Jenkins Dev
My fault. I'm really sorry.

(I was using netbeans mvn autocompletion to fill the dependencies, and I haven't tried to type 2 as first version digit)

Using the latest version of the git plugin (2.3.4) solves the problem.

Thank you.


--
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 jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr12YE2Rk0Zn%3DzRazN6s%3Dx0k3GiXkGJzQfx71AB6sj2FnQ%40mail.gmail.com.

Mark Waite

unread,
Feb 6, 2015, 6:50:56 AM2/6/15
to jenkin...@googlegroups.com

You may want to also consider using mvn versions: use-latest--releases to automate the setting of the version numbers in the pom.

Mark Waite

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAPc4eF9b1_zzUB%3DjRr9NEW9SJCYxaet-ibz834FbeYZh3ibqiQ%40mail.gmail.com.

Jesse Glick

unread,
Feb 6, 2015, 8:26:50 AM2/6/15
to Jenkins Dev
On Fri, Feb 6, 2015 at 4:53 AM, Ivo Bellin Salarin
<ivo.bell...@gmail.com> wrote:
> I was using netbeans mvn autocompletion to fill the dependencies, and I
> haven't tried to type 2 as first version digit

Tip:

Tools » Options » Java » Maven » Edit Global Custom Goal Definitions… » Add

Pick a name, and under Execute Goals specify

versions:display-dependency-updates versions:display-plugin-updates
versions:display-property-updates

Does not edit anything but shows you what you should consider editing.
Reply all
Reply to author
Forward
0 new messages