I am still not sure what the problem is. It is entirely fine to load
classes which depend upon one another.

What's the specific error? These instructions remain correct.
On Apr 10, 2012 11:19 AM, "Way Cool" <[email protected]> wrote:

> It's not a circular dependency at compile time, however it happens at run
> time. mahout-examples has dependency on mahout-integration, and when we run
> mahout-integration project using "mvn jetty:run", it complains about a
> missing class which is defined in mahout-examples.
> Here is the instructions how to run the demo (
> https://cwiki.apache.org/MAHOUT/recommender-documentation.html):
> Demo
>
> To build and run the demo, follow the instructions below, which are written
> for Unix-like operating systems:
>
>   - Obtain a copy of the Mahout distribution, either from SVN or as a
>   downloaded archive.
>   - Download the "1 Million MovieLens Dataset" from
> Grouplens.org<http://www.grouplens.org/>
>   - Unpack the archive and copy movies.dat and ratings.dat to
>
> trunk/integration/src/main/resources/org/apache/mahout/cf/taste/example/grouplens
>   under the Mahout distribution directory.
>   - Navigate to the directory where you unpacked the Mahout distribution,
>   and navigate to trunk.
>   - Run mvn -DskipTests install, which builds and installs Mahout core to
>   your local repository
>   - cd integration
>   - You may need to give Maven more memory: in a bash shell, export
>   MAVEN_OPTS=-Xmx1024M
>   - mvn jetty:run.
>   - Get recommendations by accessing the web application in your browser:
>   http://localhost:8080/mahout-integration/RecommenderServlet?userID=1This
> will produce a simple preference-item ID list which could be consumed
>   by a client application. Get more useful human-readable output with the
>   debug parameter:
>
> http://localhost:8080/mahout-integration/RecommenderServlet?userID=1&debug=true
>
>
> Sean, do you have any link which specifies correct steps to run
> recommendation demo?
>
> Thanks,
>
> Yugang
>
> On Tue, Jan 24, 2012 at 2:31 PM, Sean Owen <[email protected]> wrote:
>
> > Backing up a sec -- I looked, and there is not a circular dependency here
> > to begin with. integration does not depend on examples.
> >
> > This is not a Maven build issue, or else the error would be from the
> Maven
> > build. You are building the example .war file and need to put your
> > implementation .jar in a particular place such that it's built into the
> > .war. In your case that's the examples .jar. I am guessing it was not
> > actually included. This part is not something Maven does for you.
> >
> > On Tue, Jan 24, 2012 at 8:51 PM, Way Cool <[email protected]>
> wrote:
> >
> > > Sure, because we want maven to handle dependency for us. What's your
> fix?
> > > Just add a dependency to pom,xml in integration project? If you do
> that,
> > > which project do you want to build first? Thanks for your reply Sean.
> > >
> > > On Tue, Jan 24, 2012 at 1:43 PM, Sean Owen <[email protected]> wrote:
> > >
> > > > Why is that a problem? you just need both. It works fine, just as any
> > > other
> > > > such dependency in Java works.
> > > >
> > > > On Tue, Jan 24, 2012 at 8:39 PM, Way Cool <[email protected]>
> > > wrote:
> > > > >
> > > > > That's mainly because the class GroupLensRecommender is defined in
> > > > examples
> > > > > project, which depends on integration project, and integration
> > project
> > > is
> > > > > trying to load the class...
> > > > >
> > > > > Have you guys seen the issue as well?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > YG
> > > > >
> > > >
> > >
> >
>

Reply via email to