Hmm, I'm getting this now, too, when I try against trunk, but not from our source build, but instead when I try to add Mahout as a dependency for a new project. It seems if I wipe out the guava directory, it will then go and get r08 and r09. Not sure what has the dependency on r08, as when I do mvn dependency:tree, it doesn't show up. I've also tried blowing away my ~/.m2/repository to no avail.
In summary, when just simply installing trunk (mvn install) no problems. If I then have a dependency on mahout 0.6-SNAPSHOT in a new project, I get a problem. I think the problem is due to Watchmaker having a dep on Google collections, which guava superseded. I added: <dependency> <groupId>org.apache.mahout</groupId> <artifactId>mahout-core</artifactId> <version>0.6-SNAPSHOT</version> <exclusions> <exclusion> <groupId>com.google.collections</groupId> <artifactId>google-collections</artifactId> </exclusion> </exclusions> </dependency> Yet another reason to axe Watchmaker. -Grant On Oct 14, 2011, at 8:25 AM, Sean Owen wrote: > It sounds like there's a Guava version conflict. I think we use the > fairly recent r09. That update happened... maybe 5-6 months ago? Not > recent, but there was an update at some point. > > On Fri, Oct 14, 2011 at 4:13 PM, Steven Bourke <sbou...@gmail.com> wrote: >> Hi Guys, >> >> I just downloaded the latest SVN and updated my java project to point >> towards the newly compiled JAR's. I'm getting the following error when I run >> my code, can anyone point me in the right direction as to what may have >> changed? I've included the various dependencies etc. as per usual. >> >> Exception in thread "main" java.lang.NoSuchMethodError: >> com.google.common.base.Platform.precomputeCharMatcher(Lcom/google/common/base/CharMatcher;)Lcom/google/common/base/CharMatcher; >> at com.google.common.base.CharMatcher.precomputed(CharMatcher.java:662) >> at com.google.common.base.CharMatcher.<clinit>(CharMatcher.java:69) >> at com.google.common.base.Splitter.on(Splitter.java:121) >> at >> org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileDataModel.java:181) >> at >> org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<init>(FileDataModel.java:148) >> at >> com.bourke.facebook.process.Clustering.BuildData.splitBeforeAndAfter(BuildData.java:98) >> at com.bourke.facebook.process.Clustering.BuildData.main(BuildData.java:133) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >>