@*Sean* & @Manuel, Thanks for your replies.
I solved this problem by adding a lower version of mahout-examples to
dependencies of mahout-integration, since maven is identify a unique
project by its groupId, artifactId and version, so we can avoid Maven
Circular Dependency by specify a different version of A to dependency of B
since B is dependency of A.
For example, Now i am run mahout 0.9-SNAPSHOT, there already has a
dependency in *mahout-examples/pom.xml* like this:
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mahout-integration</artifactId>
</dependency>
The version of this dependency is 0.9-SNAPSHOT implicitly. So, if i just
add below code into *mahout-integration/pom.xml*:
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mahout-examples</artifactId>
</dependency>
The Maven Circular Dependency problem will arise. But if we specify a
different version of mahout-examples as mahout-integration's
dependency(lower that 0.9, for example, 0.8), that will be fine:
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>mahout-examples</artifactId>
<version>0.8</version>
</dependency>
Regards.
- Jason
On Fri, Jul 19, 2013 at 11:13 PM, Manuel Blechschmidt <
[email protected]> wrote:
> Hi Jason,
> if it is just about to get something up and running as fast as possible I
> would recommend my github project:
>
> It uses a glassfish 3.1.2 server but it is bundled. So you should get it
> running with the following 3 commands:
>
> git clone git://github.com/ManuelB/facebook-recommender-demo.git
> cd facebook-recommender-demo
> mvn install
> mvn embedded-glassfish:run
>
> https://github.com/ManuelB/facebook-recommender-demo
>
> /Manuel
>
> Am 19.07.2013 um 15:56 schrieb Sean Owen:
>
> > I think this is just old, and now you need to run from examples/. I
> > admit I don't know if this Jetty-based demo is still working or in the
> > project though. If so it should just be deleted.
> >
> > On Fri, Jul 19, 2013 at 4:21 AM, Jason Lee <[email protected]> wrote:
> >> Hi, guys,
> >>
> >> I was trying to following the doc
> >> below:
> https://cwiki.apache.org/confluence/display/MAHOUT/Recommender+Documentation
> >>
> >> When I run jetty:run under *mahout-integration*, I am getting a
> >> ClassNotFoundException:
> >> org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender.
> >>
> >> I noticed that GroupLensRecommender is belong to *mahout-examples*, so
> >> i attempt add mahout-examples to dependencies of mahout-integration;
> >> But, unfortunately, there already has a reversed dependency between
> >> mahout-examples & mahout-integration, and Circular Dependency is not
> >> allowed in maven, so i failed.
> >>
> >> Btw, i am running mahout 0.8.
>
> --
> Manuel Blechschmidt
> M.Sc. IT Systems Engineering
> Dortustr. 57
> 14467 Potsdam
> Mobil: 0173/6322621
> Twitter: http://twitter.com/Manuel_B
>
>