You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by gustavo salazar <gu...@gmail.com> on 2010/05/11 15:58:21 UTC

Running Demo in Eclipse

Hi

 =)

I am using Eclipse. There I have opened 5 projects
mahout 0.3
mahout-core
mahout-examples
mahout-parent
mahout-taste-webapp

 I am following these steps to build and run the Demo
http://lucene.apache.org/mahout/taste.html

I copied the movies.dat and ratings.dat in the directory of STEP 3. Then I
did right click in mahout-0.3 -->Run as -->Maven install.
I got this:




[INFO]
[INFO] --- maven-war-plugin:2.1-beta-1:war (default-war) @
mahout-taste-webapp ---
[INFO] Packaging webapp
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Lucene Mahout .............................. SUCCESS [1.381s]
[INFO] Mahout Common Maven Parent ........................ SUCCESS [0.080s]
[INFO] Maven Mojo to generate code for collections ....... SUCCESS [3.353s]
[INFO] Mahout Collections ................................ SUCCESS [18.546s]
[INFO] Mahout Math ....................................... SUCCESS [32.601s]
[INFO] Mahout Core ....................................... SUCCESS
[6:42.268s]
[INFO] Mahout Taste Webapp ............................... FAILURE [2.232s]
[INFO] Mahout Utilities .................................. SKIPPED
[INFO] Mahout Examples ................................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 7:40.932s
[INFO] Finished at: Tue May 11 11:41:18 EDT 2010
[INFO] Final Memory: 16M/66M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war (default-war) on
project mahout-taste-webapp: Execution default-war of goal
org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war failed:
modelEncoding : modelEncoding : modelEncoding : modelEncoding
---- Debugging information ----
message             : modelEncoding : modelEncoding
cause-exception     :
com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message       : modelEncoding : modelEncoding
class               : org.apache.maven.plugin.war.util.WebappStructure
required-type       : org.apache.maven.model.Exclusion
path                :
/webapp-structure/dependenciesInfo/org.apache.maven.plugin.war.util.DependencyInfo/dependency/exclusions/org.apache.maven.model.Exclusion/modelEncoding
line number         : 61
-------------------------------
-> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :mahout-taste-webapp
-- 

In the web page of [Help 1] I found this :This error is reported in case the
execution of a plugin failed due to some unforeseen event. For example,
uncatched runtime exceptions caused by the plugin will raise this error. You
should report this problem to the maintainer of the plugin.

Do I have to find the line number 61? Which is that path?
How can I solve this problem?

Gustavo Salazar Loor

Re: Running Demo in Eclipse

Posted by Jeff Eastman <jd...@windwardsolutions.com>.
Another way to build your Eclipse projects is to check out trunk and 
Import it as a Maven project. It will ask which subprojects you want to 
create (for editing source etc) and will use the compiled jars for the 
others. I run the examples in Eclipse all the time and prefer it that 
way. It's a great way to see what the code is doing by debugging and 
setting breakpoints.

On 5/11/10 10:20 AM, Ken Krugler wrote:
>
> On May 11, 2010, at 8:27am, gustavo salazar wrote:
>
>> Hi Saul,
>> Yes, I  tried building outside eclipse and it works without 
>> -DskipTests=true
>>
>> but I  wanted a better interface so I tried with Eclipse......but it 
>> shows
>> that problem above.
>
> For just general exploring of Mahout code, I use "mvn eclipse:eclipse" 
> to create the Eclipse project files, then I can go import into my 
> Eclipse workspace.
>
> I wind up with the following projects:
>
> mahout-buildtools
> mahout-core
> mahout-eclipse-support
> mahout-examples
> mahout-math
> mahout-taste-webapp
> mahout-utils
>
> I haven't tried running examples inside of Eclipse.
>
> -- Ken
>
>
>>
>> I will keep working in a Terminal. Thank you.
>>
>>
>> 2010/5/11 Saul Moncada <sa...@gmail.com>
>>
>>> Hi Gustavo,
>>>
>>> I'm very new to mahout myself (build it two days ago, I'm still
>>> checking out the code), i follow the instructions in that page with
>>> version 0.3  and the only change i needed was to run mvn install with
>>> -DskipTests=true because there were fails with tests related to
>>> TestPrintableInterface
>>>
>>> Did you try building it outside eclipse?
>>>
>>> SM
>>>
>>>
>>> On Tue, May 11, 2010 at 9:39 AM, Sean Owen <sr...@gmail.com> wrote:
>>>> I've never seen this before. As it says, you can run with -X to see
>>>> more output, maybe that helps.
>>>>
>>>> I suspect this is a Maven problem, since the error comes from within
>>>> Maven, and is something to do with 'modelEncoding' and
>>>> com.thoughtworks.xstream.mapper.CannotResolveClassException which are
>>>> not Mahout.
>>>>
>>>> I'd perhaps seek help from Maven.
>>>>
>>>> Sean
>>>>
>>>> On Tue, May 11, 2010 at 2:58 PM, gustavo salazar
>>>> <gu...@gmail.com> wrote:
>>>>> Hi
>>>>>
>>>>> =)
>>>>>
>>>>> I am using Eclipse. There I have opened 5 projects
>>>>> mahout 0.3
>>>>> mahout-core
>>>>> mahout-examples
>>>>> mahout-parent
>>>>> mahout-taste-webapp
>>>>>
>>>>> I am following these steps to build and run the Demo
>>>>> http://lucene.apache.org/mahout/taste.html
>>>>>
>>>>> I copied the movies.dat and ratings.dat in the directory of STEP 
>>>>> 3. Then
>>> I
>>>>> did right click in mahout-0.3 -->Run as -->Maven install.
>>>>> I got this:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> [INFO]
>>>>> [INFO] --- maven-war-plugin:2.1-beta-1:war (default-war) @
>>>>> mahout-taste-webapp ---
>>>>> [INFO] Packaging webapp
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------ 
>>>>>
>>>>> [INFO] Reactor Summary:
>>>>> [INFO]
>>>>> [INFO] Apache Lucene Mahout .............................. SUCCESS
>>> [1.381s]
>>>>> [INFO] Mahout Common Maven Parent ........................ SUCCESS
>>> [0.080s]
>>>>> [INFO] Maven Mojo to generate code for collections ....... SUCCESS
>>> [3.353s]
>>>>> [INFO] Mahout Collections ................................ SUCCESS
>>> [18.546s]
>>>>> [INFO] Mahout Math ....................................... SUCCESS
>>> [32.601s]
>>>>> [INFO] Mahout Core ....................................... SUCCESS
>>>>> [6:42.268s]
>>>>> [INFO] Mahout Taste Webapp ............................... FAILURE
>>> [2.232s]
>>>>> [INFO] Mahout Utilities .................................. SKIPPED
>>>>> [INFO] Mahout Examples ................................... SKIPPED
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------ 
>>>>>
>>>>> [INFO] BUILD FAILURE
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------ 
>>>>>
>>>>> [INFO] Total time: 7:40.932s
>>>>> [INFO] Finished at: Tue May 11 11:41:18 EDT 2010
>>>>> [INFO] Final Memory: 16M/66M
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------ 
>>>>>
>>>>> [ERROR] Failed to execute goal
>>>>> org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war 
>>>>> (default-war)
>>> on
>>>>> project mahout-taste-webapp: Execution default-war of goal
>>>>> org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war failed:
>>>>> modelEncoding : modelEncoding : modelEncoding : modelEncoding
>>>>> ---- Debugging information ----
>>>>> message             : modelEncoding : modelEncoding
>>>>> cause-exception     :
>>>>> com.thoughtworks.xstream.mapper.CannotResolveClassException
>>>>> cause-message       : modelEncoding : modelEncoding
>>>>> class               : 
>>>>> org.apache.maven.plugin.war.util.WebappStructure
>>>>> required-type       : org.apache.maven.model.Exclusion
>>>>> path                :
>>>>>
>>> /webapp-structure/dependenciesInfo/org.apache.maven.plugin.war.util.DependencyInfo/dependency/exclusions/org.apache.maven.model.Exclusion/modelEncoding 
>>>
>>>>> line number         : 61
>>>>> -------------------------------
>>>>> -> [Help 1]
>>>>> [ERROR]
>>>>> [ERROR] To see the full stack trace of the errors, re-run Maven 
>>>>> with the
>>> -e
>>>>> switch.
>>>>> [ERROR] Re-run Maven using the -X switch to enable full debug 
>>>>> logging.
>>>>> [ERROR]
>>>>> [ERROR] For more information about the errors and possible solutions,
>>> please
>>>>> read the following articles:
>>>>> [ERROR] [Help 1]
>>>>>
>>> http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException 
>>>
>>>>> [ERROR]
>>>>> [ERROR] After correcting the problems, you can resume the build 
>>>>> with the
>>>>> command
>>>>> [ERROR]   mvn <goals> -rf :mahout-taste-webapp
>>>>> -- 
>>>>>
>>>>> In the web page of [Help 1] I found this :This error is reported 
>>>>> in case
>>> the
>>>>> execution of a plugin failed due to some unforeseen event. For 
>>>>> example,
>>>>> uncatched runtime exceptions caused by the plugin will raise this 
>>>>> error.
>>> You
>>>>> should report this problem to the maintainer of the plugin.
>>>>>
>>>>> Do I have to find the line number 61? Which is that path?
>>>>> How can I solve this problem?
>>>>>
>>>>> Gustavo Salazar Loor
>>>>>
>>>>
>>>
>>
>>
>>
>> -- 
>> Gustavo Salazar Loor
>
> --------------------------------------------
> Ken Krugler
> +1 530-210-6378
> http://bixolabs.com
> e l a s t i c   w e b   m i n i n g
>
>
>
>
>


Re: Running Demo in Eclipse

Posted by Ken Krugler <kk...@transpac.com>.
On May 11, 2010, at 8:27am, gustavo salazar wrote:

> Hi Saul,
> Yes, I  tried building outside eclipse and it works without - 
> DskipTests=true
>
> but I  wanted a better interface so I tried with Eclipse......but it  
> shows
> that problem above.

For just general exploring of Mahout code, I use "mvn eclipse:eclipse"  
to create the Eclipse project files, then I can go import into my  
Eclipse workspace.

I wind up with the following projects:

mahout-buildtools
mahout-core
mahout-eclipse-support
mahout-examples
mahout-math
mahout-taste-webapp
mahout-utils

I haven't tried running examples inside of Eclipse.

-- Ken


>
> I will keep working in a Terminal. Thank you.
>
>
> 2010/5/11 Saul Moncada <sa...@gmail.com>
>
>> Hi Gustavo,
>>
>> I'm very new to mahout myself (build it two days ago, I'm still
>> checking out the code), i follow the instructions in that page with
>> version 0.3  and the only change i needed was to run mvn install with
>> -DskipTests=true because there were fails with tests related to
>> TestPrintableInterface
>>
>> Did you try building it outside eclipse?
>>
>> SM
>>
>>
>> On Tue, May 11, 2010 at 9:39 AM, Sean Owen <sr...@gmail.com> wrote:
>>> I've never seen this before. As it says, you can run with -X to see
>>> more output, maybe that helps.
>>>
>>> I suspect this is a Maven problem, since the error comes from within
>>> Maven, and is something to do with 'modelEncoding' and
>>> com.thoughtworks.xstream.mapper.CannotResolveClassException which  
>>> are
>>> not Mahout.
>>>
>>> I'd perhaps seek help from Maven.
>>>
>>> Sean
>>>
>>> On Tue, May 11, 2010 at 2:58 PM, gustavo salazar
>>> <gu...@gmail.com> wrote:
>>>> Hi
>>>>
>>>> =)
>>>>
>>>> I am using Eclipse. There I have opened 5 projects
>>>> mahout 0.3
>>>> mahout-core
>>>> mahout-examples
>>>> mahout-parent
>>>> mahout-taste-webapp
>>>>
>>>> I am following these steps to build and run the Demo
>>>> http://lucene.apache.org/mahout/taste.html
>>>>
>>>> I copied the movies.dat and ratings.dat in the directory of STEP  
>>>> 3. Then
>> I
>>>> did right click in mahout-0.3 -->Run as -->Maven install.
>>>> I got this:
>>>>
>>>>
>>>>
>>>>
>>>> [INFO]
>>>> [INFO] --- maven-war-plugin:2.1-beta-1:war (default-war) @
>>>> mahout-taste-webapp ---
>>>> [INFO] Packaging webapp
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Reactor Summary:
>>>> [INFO]
>>>> [INFO] Apache Lucene Mahout .............................. SUCCESS
>> [1.381s]
>>>> [INFO] Mahout Common Maven Parent ........................ SUCCESS
>> [0.080s]
>>>> [INFO] Maven Mojo to generate code for collections ....... SUCCESS
>> [3.353s]
>>>> [INFO] Mahout Collections ................................ SUCCESS
>> [18.546s]
>>>> [INFO] Mahout Math ....................................... SUCCESS
>> [32.601s]
>>>> [INFO] Mahout Core ....................................... SUCCESS
>>>> [6:42.268s]
>>>> [INFO] Mahout Taste Webapp ............................... FAILURE
>> [2.232s]
>>>> [INFO] Mahout Utilities .................................. SKIPPED
>>>> [INFO] Mahout Examples ................................... SKIPPED
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] BUILD FAILURE
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Total time: 7:40.932s
>>>> [INFO] Finished at: Tue May 11 11:41:18 EDT 2010
>>>> [INFO] Final Memory: 16M/66M
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [ERROR] Failed to execute goal
>>>> org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war (default- 
>>>> war)
>> on
>>>> project mahout-taste-webapp: Execution default-war of goal
>>>> org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war failed:
>>>> modelEncoding : modelEncoding : modelEncoding : modelEncoding
>>>> ---- Debugging information ----
>>>> message             : modelEncoding : modelEncoding
>>>> cause-exception     :
>>>> com.thoughtworks.xstream.mapper.CannotResolveClassException
>>>> cause-message       : modelEncoding : modelEncoding
>>>> class               :  
>>>> org.apache.maven.plugin.war.util.WebappStructure
>>>> required-type       : org.apache.maven.model.Exclusion
>>>> path                :
>>>>
>> /webapp-structure/dependenciesInfo/ 
>> org.apache.maven.plugin.war.util.DependencyInfo/dependency/ 
>> exclusions/org.apache.maven.model.Exclusion/modelEncoding
>>>> line number         : 61
>>>> -------------------------------
>>>> -> [Help 1]
>>>> [ERROR]
>>>> [ERROR] To see the full stack trace of the errors, re-run Maven  
>>>> with the
>> -e
>>>> switch.
>>>> [ERROR] Re-run Maven using the -X switch to enable full debug  
>>>> logging.
>>>> [ERROR]
>>>> [ERROR] For more information about the errors and possible  
>>>> solutions,
>> please
>>>> read the following articles:
>>>> [ERROR] [Help 1]
>>>>
>> http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
>>>> [ERROR]
>>>> [ERROR] After correcting the problems, you can resume the build  
>>>> with the
>>>> command
>>>> [ERROR]   mvn <goals> -rf :mahout-taste-webapp
>>>> --
>>>>
>>>> In the web page of [Help 1] I found this :This error is reported  
>>>> in case
>> the
>>>> execution of a plugin failed due to some unforeseen event. For  
>>>> example,
>>>> uncatched runtime exceptions caused by the plugin will raise this  
>>>> error.
>> You
>>>> should report this problem to the maintainer of the plugin.
>>>>
>>>> Do I have to find the line number 61? Which is that path?
>>>> How can I solve this problem?
>>>>
>>>> Gustavo Salazar Loor
>>>>
>>>
>>
>
>
>
> -- 
> Gustavo Salazar Loor

--------------------------------------------
Ken Krugler
+1 530-210-6378
http://bixolabs.com
e l a s t i c   w e b   m i n i n g





Re: Running Demo in Eclipse

Posted by gustavo salazar <gu...@gmail.com>.
Hi Saul,
Yes, I  tried building outside eclipse and it works without -DskipTests=true

 but I  wanted a better interface so I tried with Eclipse......but it shows
that problem above.

 I will keep working in a Terminal. Thank you.


2010/5/11 Saul Moncada <sa...@gmail.com>

> Hi Gustavo,
>
> I'm very new to mahout myself (build it two days ago, I'm still
> checking out the code), i follow the instructions in that page with
> version 0.3  and the only change i needed was to run mvn install with
> -DskipTests=true because there were fails with tests related to
> TestPrintableInterface
>
> Did you try building it outside eclipse?
>
> SM
>
>
> On Tue, May 11, 2010 at 9:39 AM, Sean Owen <sr...@gmail.com> wrote:
> > I've never seen this before. As it says, you can run with -X to see
> > more output, maybe that helps.
> >
> > I suspect this is a Maven problem, since the error comes from within
> > Maven, and is something to do with 'modelEncoding' and
> > com.thoughtworks.xstream.mapper.CannotResolveClassException which are
> > not Mahout.
> >
> > I'd perhaps seek help from Maven.
> >
> > Sean
> >
> > On Tue, May 11, 2010 at 2:58 PM, gustavo salazar
> > <gu...@gmail.com> wrote:
> >> Hi
> >>
> >>  =)
> >>
> >> I am using Eclipse. There I have opened 5 projects
> >> mahout 0.3
> >> mahout-core
> >> mahout-examples
> >> mahout-parent
> >> mahout-taste-webapp
> >>
> >>  I am following these steps to build and run the Demo
> >> http://lucene.apache.org/mahout/taste.html
> >>
> >> I copied the movies.dat and ratings.dat in the directory of STEP 3. Then
> I
> >> did right click in mahout-0.3 -->Run as -->Maven install.
> >> I got this:
> >>
> >>
> >>
> >>
> >> [INFO]
> >> [INFO] --- maven-war-plugin:2.1-beta-1:war (default-war) @
> >> mahout-taste-webapp ---
> >> [INFO] Packaging webapp
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Reactor Summary:
> >> [INFO]
> >> [INFO] Apache Lucene Mahout .............................. SUCCESS
> [1.381s]
> >> [INFO] Mahout Common Maven Parent ........................ SUCCESS
> [0.080s]
> >> [INFO] Maven Mojo to generate code for collections ....... SUCCESS
> [3.353s]
> >> [INFO] Mahout Collections ................................ SUCCESS
> [18.546s]
> >> [INFO] Mahout Math ....................................... SUCCESS
> [32.601s]
> >> [INFO] Mahout Core ....................................... SUCCESS
> >> [6:42.268s]
> >> [INFO] Mahout Taste Webapp ............................... FAILURE
> [2.232s]
> >> [INFO] Mahout Utilities .................................. SKIPPED
> >> [INFO] Mahout Examples ................................... SKIPPED
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] BUILD FAILURE
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Total time: 7:40.932s
> >> [INFO] Finished at: Tue May 11 11:41:18 EDT 2010
> >> [INFO] Final Memory: 16M/66M
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] Failed to execute goal
> >> org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war (default-war)
> on
> >> project mahout-taste-webapp: Execution default-war of goal
> >> org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war failed:
> >> modelEncoding : modelEncoding : modelEncoding : modelEncoding
> >> ---- Debugging information ----
> >> message             : modelEncoding : modelEncoding
> >> cause-exception     :
> >> com.thoughtworks.xstream.mapper.CannotResolveClassException
> >> cause-message       : modelEncoding : modelEncoding
> >> class               : org.apache.maven.plugin.war.util.WebappStructure
> >> required-type       : org.apache.maven.model.Exclusion
> >> path                :
> >>
> /webapp-structure/dependenciesInfo/org.apache.maven.plugin.war.util.DependencyInfo/dependency/exclusions/org.apache.maven.model.Exclusion/modelEncoding
> >> line number         : 61
> >> -------------------------------
> >> -> [Help 1]
> >> [ERROR]
> >> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e
> >> switch.
> >> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> >> [ERROR]
> >> [ERROR] For more information about the errors and possible solutions,
> please
> >> read the following articles:
> >> [ERROR] [Help 1]
> >>
> http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
> >> [ERROR]
> >> [ERROR] After correcting the problems, you can resume the build with the
> >> command
> >> [ERROR]   mvn <goals> -rf :mahout-taste-webapp
> >> --
> >>
> >> In the web page of [Help 1] I found this :This error is reported in case
> the
> >> execution of a plugin failed due to some unforeseen event. For example,
> >> uncatched runtime exceptions caused by the plugin will raise this error.
> You
> >> should report this problem to the maintainer of the plugin.
> >>
> >> Do I have to find the line number 61? Which is that path?
> >> How can I solve this problem?
> >>
> >> Gustavo Salazar Loor
> >>
> >
>



-- 
Gustavo Salazar Loor

Re: Running Demo in Eclipse

Posted by Saul Moncada <sa...@gmail.com>.
Hi Gustavo,

I'm very new to mahout myself (build it two days ago, I'm still
checking out the code), i follow the instructions in that page with
version 0.3  and the only change i needed was to run mvn install with
-DskipTests=true because there were fails with tests related to
TestPrintableInterface

Did you try building it outside eclipse?

SM


On Tue, May 11, 2010 at 9:39 AM, Sean Owen <sr...@gmail.com> wrote:
> I've never seen this before. As it says, you can run with -X to see
> more output, maybe that helps.
>
> I suspect this is a Maven problem, since the error comes from within
> Maven, and is something to do with 'modelEncoding' and
> com.thoughtworks.xstream.mapper.CannotResolveClassException which are
> not Mahout.
>
> I'd perhaps seek help from Maven.
>
> Sean
>
> On Tue, May 11, 2010 at 2:58 PM, gustavo salazar
> <gu...@gmail.com> wrote:
>> Hi
>>
>>  =)
>>
>> I am using Eclipse. There I have opened 5 projects
>> mahout 0.3
>> mahout-core
>> mahout-examples
>> mahout-parent
>> mahout-taste-webapp
>>
>>  I am following these steps to build and run the Demo
>> http://lucene.apache.org/mahout/taste.html
>>
>> I copied the movies.dat and ratings.dat in the directory of STEP 3. Then I
>> did right click in mahout-0.3 -->Run as -->Maven install.
>> I got this:
>>
>>
>>
>>
>> [INFO]
>> [INFO] --- maven-war-plugin:2.1-beta-1:war (default-war) @
>> mahout-taste-webapp ---
>> [INFO] Packaging webapp
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] Apache Lucene Mahout .............................. SUCCESS [1.381s]
>> [INFO] Mahout Common Maven Parent ........................ SUCCESS [0.080s]
>> [INFO] Maven Mojo to generate code for collections ....... SUCCESS [3.353s]
>> [INFO] Mahout Collections ................................ SUCCESS [18.546s]
>> [INFO] Mahout Math ....................................... SUCCESS [32.601s]
>> [INFO] Mahout Core ....................................... SUCCESS
>> [6:42.268s]
>> [INFO] Mahout Taste Webapp ............................... FAILURE [2.232s]
>> [INFO] Mahout Utilities .................................. SKIPPED
>> [INFO] Mahout Examples ................................... SKIPPED
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 7:40.932s
>> [INFO] Finished at: Tue May 11 11:41:18 EDT 2010
>> [INFO] Final Memory: 16M/66M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war (default-war) on
>> project mahout-taste-webapp: Execution default-war of goal
>> org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war failed:
>> modelEncoding : modelEncoding : modelEncoding : modelEncoding
>> ---- Debugging information ----
>> message             : modelEncoding : modelEncoding
>> cause-exception     :
>> com.thoughtworks.xstream.mapper.CannotResolveClassException
>> cause-message       : modelEncoding : modelEncoding
>> class               : org.apache.maven.plugin.war.util.WebappStructure
>> required-type       : org.apache.maven.model.Exclusion
>> path                :
>> /webapp-structure/dependenciesInfo/org.apache.maven.plugin.war.util.DependencyInfo/dependency/exclusions/org.apache.maven.model.Exclusion/modelEncoding
>> line number         : 61
>> -------------------------------
>> -> [Help 1]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
>> switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions, please
>> read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
>> [ERROR]
>> [ERROR] After correcting the problems, you can resume the build with the
>> command
>> [ERROR]   mvn <goals> -rf :mahout-taste-webapp
>> --
>>
>> In the web page of [Help 1] I found this :This error is reported in case the
>> execution of a plugin failed due to some unforeseen event. For example,
>> uncatched runtime exceptions caused by the plugin will raise this error. You
>> should report this problem to the maintainer of the plugin.
>>
>> Do I have to find the line number 61? Which is that path?
>> How can I solve this problem?
>>
>> Gustavo Salazar Loor
>>
>

Re: Running Demo in Eclipse

Posted by Maxim Veksler <ma...@vekslers.org>.
1tip that always seems to help with maven is: rename your .m2 folder to
.m2-broken and run mvn install. This will effectively cause maven to fetch
all 3rd dependencies. If that does not work try to redownload latest maven
version and run the command line application.

Maxim.

On May 11, 2010 5:10 PM, "Sean Owen" <sr...@gmail.com> wrote:

I've never seen this before. As it says, you can run with -X to see
more output, maybe that helps.

I suspect this is a Maven problem, since the error comes from within
Maven, and is something to do with 'modelEncoding' and
com.thoughtworks.xstream.mapper.CannotResolveClassException which are
not Mahout.

I'd perhaps seek help from Maven.

Sean


On Tue, May 11, 2010 at 2:58 PM, gustavo salazar
<gu...@gmail.com> wrote:
> Hi
>
>  =)
...

Re: Running Demo in Eclipse

Posted by Sean Owen <sr...@gmail.com>.
I've never seen this before. As it says, you can run with -X to see
more output, maybe that helps.

I suspect this is a Maven problem, since the error comes from within
Maven, and is something to do with 'modelEncoding' and
com.thoughtworks.xstream.mapper.CannotResolveClassException which are
not Mahout.

I'd perhaps seek help from Maven.

Sean

On Tue, May 11, 2010 at 2:58 PM, gustavo salazar
<gu...@gmail.com> wrote:
> Hi
>
>  =)
>
> I am using Eclipse. There I have opened 5 projects
> mahout 0.3
> mahout-core
> mahout-examples
> mahout-parent
> mahout-taste-webapp
>
>  I am following these steps to build and run the Demo
> http://lucene.apache.org/mahout/taste.html
>
> I copied the movies.dat and ratings.dat in the directory of STEP 3. Then I
> did right click in mahout-0.3 -->Run as -->Maven install.
> I got this:
>
>
>
>
> [INFO]
> [INFO] --- maven-war-plugin:2.1-beta-1:war (default-war) @
> mahout-taste-webapp ---
> [INFO] Packaging webapp
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Lucene Mahout .............................. SUCCESS [1.381s]
> [INFO] Mahout Common Maven Parent ........................ SUCCESS [0.080s]
> [INFO] Maven Mojo to generate code for collections ....... SUCCESS [3.353s]
> [INFO] Mahout Collections ................................ SUCCESS [18.546s]
> [INFO] Mahout Math ....................................... SUCCESS [32.601s]
> [INFO] Mahout Core ....................................... SUCCESS
> [6:42.268s]
> [INFO] Mahout Taste Webapp ............................... FAILURE [2.232s]
> [INFO] Mahout Utilities .................................. SKIPPED
> [INFO] Mahout Examples ................................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 7:40.932s
> [INFO] Finished at: Tue May 11 11:41:18 EDT 2010
> [INFO] Final Memory: 16M/66M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war (default-war) on
> project mahout-taste-webapp: Execution default-war of goal
> org.apache.maven.plugins:maven-war-plugin:2.1-beta-1:war failed:
> modelEncoding : modelEncoding : modelEncoding : modelEncoding
> ---- Debugging information ----
> message             : modelEncoding : modelEncoding
> cause-exception     :
> com.thoughtworks.xstream.mapper.CannotResolveClassException
> cause-message       : modelEncoding : modelEncoding
> class               : org.apache.maven.plugin.war.util.WebappStructure
> required-type       : org.apache.maven.model.Exclusion
> path                :
> /webapp-structure/dependenciesInfo/org.apache.maven.plugin.war.util.DependencyInfo/dependency/exclusions/org.apache.maven.model.Exclusion/modelEncoding
> line number         : 61
> -------------------------------
> -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :mahout-taste-webapp
> --
>
> In the web page of [Help 1] I found this :This error is reported in case the
> execution of a plugin failed due to some unforeseen event. For example,
> uncatched runtime exceptions caused by the plugin will raise this error. You
> should report this problem to the maintainer of the plugin.
>
> Do I have to find the line number 61? Which is that path?
> How can I solve this problem?
>
> Gustavo Salazar Loor
>