Thanks again for the answer. I am not familiar with maven and I find it
difficult to understand how mahout is built. But I am trying hard..
I found the pom.xml file in taste-web folder and tried to modify it, in order
to add the missing dependency but I am most probably doing it the wrong way.
I tried to add this dependency:
<dependency>
<groupId>org.apache.mahout</groupId>
<artifactId>examples</artifactId>
<version>${project.version}</version>
</dependency>
But the command mvn jetty:run-war still fails with the following message:
Missing:
Org.apache.mahout:examples:jar:0.3
I suppose that I have placed wrong values in groupID and artifactId tags..
Can you please tell me what values should I use in order to add the examples
package as a dependency in the recommenderservlet class?
I appreciate your valuable help,
Lef
-----Original Message-----
From: Sean Owen [mailto:[email protected]]
Sent: Thursday, May 27, 2010 11:01 AM
To: [email protected]
Subject: Re: Change Recommender servlet
Yes, please see my last reply. Your new code depends on source code from
several modules of Mahout. You will have to define these dependencies in your
build environment in order for it to access all the necessary code. In
particular you are missing a dependency on the examples module now.
The Maven build pom.xml for taste-web expresses this dependency and so it
works. This is the sort of thing you need to do.
On Thu, May 27, 2010 at 7:01 AM, Eleftherios Spyromitros <[email protected]>
wrote:
> Hi again,
>
> and thanks for your answer. What I am actually trying to do is this:
>
> I want to combine two recommenders, a user-based and an item-based one.
> So I created a new Class which implements the Recommender interface
> and which internally declares two recommender objects. I need to call
> a method of this class from recommenderServlet so I have to import the
> package which contains the new class in the recommenderServlet class.
>
> I'm doing exactly what is described in Taste documentation (I use
> maven) and get the compilation warning that I told you about in the previous
> message.
>
> I think that the problem is that for some reason the
> recommenderServlet class can't "see" the package that I import. Which
> packages are viewable from the servlet and how can I add the examples package?
>
> Thanks,
> Lef
>
>> -----Original Message-----
>> From: Sean Owen [mailto:[email protected]]
>> Sent: Thursday, May 27, 2010 12:39 AM
>> To: [email protected]
>> Subject: Re: Change Recommender servlet
>>
>> This bit of code actually depends on other code in the examples
>> module. (Which is arguably strange and which I'm happy to think about
>> changing, but there are decent reasons for it.)
>>
>> I think it is just depending on the RecommenderWrapper class.
>>
>> It should build from the Maven build script since it will express
>> this dependency. If you compile it in another system, you may have to
>> tell it about the code in examples too.
>>
>> No code is in the default package.
>>
>> On Wed, May 26, 2010 at 9:51 PM, Eleftherios Spyromitros Xioufis
>> <[email protected]> wrote:
>> > Hi all,
>> >
>> > I want to build a custom recommender and for that reason I need to
>> change
>> > the RecommenderServlet class.
>> > I import a package, say
>> > org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender;
>> > and when I try to start jetty server I get the following
>> > complilation failure message:
>> >
>> > C:\Users\lef\Desktop\mahout-0.3-src\mahout-0.3\taste-
>> web\src\main\java\org\apach
>> > e\mahout\cf\taste\web\RecommenderServlet.java:[36,51] package
>> > org.apache.mahout.
>> > cf.taste.example.grouplens does not exist
>> >
>> > How can i solve this problem? Is it possible to import other than
>> > the default packages in RecommenderServlet class?
>> >
>> > Thanks in advance,
>> > -Lef
>> >
>> >
>> >
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com
>> Version: 9.0.819 / Virus Database: 271.1.1/2898 - Release Date:
>> 05/26/10 21:26:00
>
>