What version of Maven do you use? Can you provide a small standalone example that demonstrate the problem? Like a sample plugin with a trivial demo project, for example.
Generally, each Maven plugin runs in its own classloader with only subset of Maven core classes available to it. Guava is not part of that subset and plugins should be able to use whatever version of Guava they like. -- Regards, Igor On 2014-10-03, 15:46, Christofer Dutz wrote:
Hi, I'm currently working on a plugin for the Apache Flex compiler Falcon. This uses Guava in a version above 15. Now maven seems to come with a Guava version ... 0.9.9 for Maven 3.0.x, something about 11 for 3.1 and above. The problem is that from version 15 on there was an API change Falcon depends upon. No matter what I tried, I always get an error during runtime that: Caused by: java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/LoadingCache; Because till version 15 the return type was Cache and not LoadinCache. Now to my question ... if I use a library that Maven itself comes with ... is there a way to use that version? Currently it seems I would require my users to update to Maven 3.2.x which will definitely make some pretty unhappy. Chris
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org