You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by "Liu, Tim" <ti...@ebay.com> on 2010/10/14 00:29:17 UTC

Building mahout

Hi, All


I run into problems while building mahout from the latest revision (1022312) in trunk.  I follow instructions in http://cwiki.apache.org/MAHOUT/buildingmahout.html.


Problem:
=======

1.       "mvn install" fails in  trunk of /mahout directory

2.       "mvn clean install" has the same error

3.       I do see ""supplemental-models.xml in my local copy \mahout\src\main\appended-resources

4.       I remove ./m2/repository and rerun "mvn install" and "mvn clean install". The same problem

5.       I search mail archive and see a similar thread http://mail-archives.apache.org/mod_mbox/mahout-user/200910.mbox/browser. Looks like solution might be a code change?

Errors
=====
[INFO] --- maven-remote-resources-plugin:1.0:process (default) @ mahout ---
[ERROR] Error loading supplemental data models: Could not find resource 'supplem
ental-models.xml'.
org.codehaus.plexus.resource.loader.ResourceNotFoundException: Could not find re
source 'supplemental-models.xml'.
        at org.codehaus.plexus.resource.DefaultResourceManager.getResourceAsInpu
tStream(DefaultResourceManager.java:91)
        at org.codehaus.plexus.resource.DefaultResourceManager.getResourceAsFile
(DefaultResourceManager.java:117)
        at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.l
oadSupplements(ProcessRemoteResourcesMojo.java:928)
        at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.e
xecute(ProcessRemoteResourcesMojo.java:410)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:107)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:195)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:148)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:140)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Mahout Build Tools ................................ SUCCESS [1.031s]
[INFO] Mahout Eclipse .................................... SUCCESS [0.047s]
[INFO] Apache Mahout ..................................... FAILURE [0.032s]
[INFO] Mahout Math ....................................... SKIPPED
[INFO] Mahout Core ....................................... SKIPPED
[INFO] Mahout Taste Webapp ............................... SKIPPED
[INFO] Mahout Utilities .................................. SKIPPED
[INFO] Mahout Examples ................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.422s
[INFO] Finished at: Wed Oct 13 15:17:15 PDT 2010
[INFO] Final Memory: 11M/989M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-p
lugin:1.0:process (default) on project mahout: Error loading supplemental data m
odels: Could not find resource 'supplemental-models.xml'. -> [Help 1]


thanks

Tim

Re: Building mahout

Posted by Ted Dunning <te...@gmail.com>.
Is a temp directory or file being created with bad permissions?

On Thu, Oct 14, 2010 at 7:06 AM, Sebastian Schelter <ss...@apache.org> wrote:

> The build worked too for me with the SVN head (using maven in the shell),
> maybe it's an m2eclipse issue?
>
> --sebastian
>
>
> On 14.10.2010 16:01, Jeff Eastman wrote:
>
>>  I just did a clean checkout on my Mac and it built without issue. I'm
>> going to look for a file system permission issue on the other box where
>> building from the command line fails with the same symptoms as reported in
>> this issue.
>>
>> On 10/13/10 9:45 PM, Chris Schilling wrote:
>>
>>> Yeah, I see the same thing (eclipse helios, m2eclipse plugin).  Ive been
>>> building from the command line and importing the "maven" project into
>>> eclipse.
>>>
>>>
>>> On Oct 13, 2010, at 8:38 PM, gabeweb wrote:
>>>
>>>  If it helps, I get this problem with the trunk when building from within
>>>> Eclipse 1.5 using the m2 plugin on OS X 10.6, but not when building from
>>>> the
>>>> command line.  So I'm currently just building from the command line :)
>>>> --
>>>> View this message in context:
>>>> http://lucene.472066.n3.nabble.com/Building-mahout-tp1697626p1698594.html
>>>> Sent from the Mahout User List mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>
>

Re: Building mahout

Posted by Sebastian Schelter <ss...@apache.org>.
The build worked too for me with the SVN head (using maven in the 
shell), maybe it's an m2eclipse issue?

--sebastian

On 14.10.2010 16:01, Jeff Eastman wrote:
>  I just did a clean checkout on my Mac and it built without issue. I'm 
> going to look for a file system permission issue on the other box 
> where building from the command line fails with the same symptoms as 
> reported in this issue.
>
> On 10/13/10 9:45 PM, Chris Schilling wrote:
>> Yeah, I see the same thing (eclipse helios, m2eclipse plugin).  Ive 
>> been building from the command line and importing the "maven" project 
>> into eclipse.
>>
>>
>> On Oct 13, 2010, at 8:38 PM, gabeweb wrote:
>>
>>> If it helps, I get this problem with the trunk when building from 
>>> within
>>> Eclipse 1.5 using the m2 plugin on OS X 10.6, but not when building 
>>> from the
>>> command line.  So I'm currently just building from the command line :)
>>> -- 
>>> View this message in context: 
>>> http://lucene.472066.n3.nabble.com/Building-mahout-tp1697626p1698594.html 
>>>
>>> Sent from the Mahout User List mailing list archive at Nabble.com.
>>
>


Re: Building mahout

Posted by Ted Dunning <te...@gmail.com>.
Our general process is that contributors who are not committers (i.e. you)
should attach a patch to a JIRA ticket.

Then committers and others should review the patch and a committer should
commit it when there is consensus that it is ready.

Ready generally means that the code looks clean, fixes a problem or extends
capability and has good test coverage.  Style issues aren't a big deal for
you to worry about because somebody can revise your patch to match Mahout
style.  It is nice if that isn't necessary, but it
takes a bit of practice to get all the details of that straight.

On Mon, Oct 18, 2010 at 11:14 AM, Tim Liu <ti...@gmail.com> wrote:

> In addition to normal engineering procedures of code checkin, does mahout
> have other instructions?
>
> I'd like to know them before I start to commit code.
>

Re: Building mahout

Posted by Tim Liu <ti...@gmail.com>.
Jeff:

thank you for commit.

In addition to normal engineering procedures of code checkin, does mahout
have other instructions?

I'd like to know them before I start to commit code.

thanks

Tim

On Fri, Oct 15, 2010 at 5:07 PM, Jeff Eastman <je...@narus.com> wrote:

> Um, your patch. I thought it had been committed but I see now it was not. I
> will do later this evening unless someone beats me to it.
>
> -----Original Message-----
> From: Tim Liu [mailto:tim.gangliu@gmail.com]
> Sent: Friday, October 15, 2010 3:21 PM
> To: dev@mahout.apache.org
> Subject: Re: Building mahout
>
> how do you fix?
>
> On Fri, Oct 15, 2010 at 2:37 PM, Jeff Eastman <je...@narus.com> wrote:
>
> > +1 Even with 3.0 is seems to build ok
> >
> > -----Original Message-----
> > From: Drew Farris [mailto:drew.farris@gmail.com]
> > Sent: Friday, October 15, 2010 2:26 PM
> > To: dev@mahout.apache.org
> > Subject: Re: Building mahout
> >
> > +1
> >
> > On Fri, Oct 15, 2010 at 3:05 PM, Sean Owen <sr...@gmail.com> wrote:
> > > At this point I think we should just say note there may be issues with
> > 3.0
> > > in the wiki and not worry about it in the next few days for 0.4.
> >
>

RE: Building mahout

Posted by Jeff Eastman <je...@Narus.com>.
Um, your patch. I thought it had been committed but I see now it was not. I will do later this evening unless someone beats me to it.

-----Original Message-----
From: Tim Liu [mailto:tim.gangliu@gmail.com] 
Sent: Friday, October 15, 2010 3:21 PM
To: dev@mahout.apache.org
Subject: Re: Building mahout

how do you fix?

On Fri, Oct 15, 2010 at 2:37 PM, Jeff Eastman <je...@narus.com> wrote:

> +1 Even with 3.0 is seems to build ok
>
> -----Original Message-----
> From: Drew Farris [mailto:drew.farris@gmail.com]
> Sent: Friday, October 15, 2010 2:26 PM
> To: dev@mahout.apache.org
> Subject: Re: Building mahout
>
> +1
>
> On Fri, Oct 15, 2010 at 3:05 PM, Sean Owen <sr...@gmail.com> wrote:
> > At this point I think we should just say note there may be issues with
> 3.0
> > in the wiki and not worry about it in the next few days for 0.4.
>

Re: Building mahout

Posted by Tim Liu <ti...@gmail.com>.
how do you fix?

On Fri, Oct 15, 2010 at 2:37 PM, Jeff Eastman <je...@narus.com> wrote:

> +1 Even with 3.0 is seems to build ok
>
> -----Original Message-----
> From: Drew Farris [mailto:drew.farris@gmail.com]
> Sent: Friday, October 15, 2010 2:26 PM
> To: dev@mahout.apache.org
> Subject: Re: Building mahout
>
> +1
>
> On Fri, Oct 15, 2010 at 3:05 PM, Sean Owen <sr...@gmail.com> wrote:
> > At this point I think we should just say note there may be issues with
> 3.0
> > in the wiki and not worry about it in the next few days for 0.4.
>

RE: Building mahout

Posted by Jeff Eastman <je...@Narus.com>.
+1 Even with 3.0 is seems to build ok

-----Original Message-----
From: Drew Farris [mailto:drew.farris@gmail.com] 
Sent: Friday, October 15, 2010 2:26 PM
To: dev@mahout.apache.org
Subject: Re: Building mahout

+1

On Fri, Oct 15, 2010 at 3:05 PM, Sean Owen <sr...@gmail.com> wrote:
> At this point I think we should just say note there may be issues with 3.0
> in the wiki and not worry about it in the next few days for 0.4.

Re: Building mahout

Posted by Drew Farris <dr...@gmail.com>.
+1

On Fri, Oct 15, 2010 at 3:05 PM, Sean Owen <sr...@gmail.com> wrote:
> At this point I think we should just say note there may be issues with 3.0
> in the wiki and not worry about it in the next few days for 0.4.

Re: Building mahout

Posted by Tim Liu <ti...@gmail.com>.
where do you add? thanks

On Fri, Oct 15, 2010 at 12:27 PM, Grant Ingersoll <gs...@apache.org>wrote:

> +1
>
> On Oct 15, 2010, at 3:05 PM, Sean Owen wrote:
>
> > At this point I think we should just say note there may be issues with
> 3.0
> > in the wiki and not worry about it in the next few days for 0.4.
> >
> > On Fri, Oct 15, 2010 at 8:02 PM, Tim Liu <ti...@gmail.com> wrote:
> >
> >> Since mvn 3.0 is NOT fully tested yet, may we update it on documentation
> >> https://cwiki.apache.org/confluence/display/MAHOUT/BuildingMahout? Here
> is
> >> what there now:
> >>
> >>
> >>  - Maven *2.0.9* or higher (http://maven.apache.org/)
> >>
> >>
>
>
>

Re: Building mahout

Posted by Grant Ingersoll <gs...@apache.org>.
+1

On Oct 15, 2010, at 3:05 PM, Sean Owen wrote:

> At this point I think we should just say note there may be issues with 3.0
> in the wiki and not worry about it in the next few days for 0.4.
> 
> On Fri, Oct 15, 2010 at 8:02 PM, Tim Liu <ti...@gmail.com> wrote:
> 
>> Since mvn 3.0 is NOT fully tested yet, may we update it on documentation
>> https://cwiki.apache.org/confluence/display/MAHOUT/BuildingMahout? Here is
>> what there now:
>> 
>> 
>>  - Maven *2.0.9* or higher (http://maven.apache.org/)
>> 
>> 



Re: Building mahout

Posted by Ted Dunning <te...@gmail.com>.
+1 definitely.

On Fri, Oct 15, 2010 at 12:05 PM, Sean Owen <sr...@gmail.com> wrote:

> At this point I think we should just say note there may be issues with 3.0
> in the wiki and not worry about it in the next few days for 0.4.
>
> On Fri, Oct 15, 2010 at 8:02 PM, Tim Liu <ti...@gmail.com> wrote:
>
> > Since mvn 3.0 is NOT fully tested yet, may we update it on documentation
> > https://cwiki.apache.org/confluence/display/MAHOUT/BuildingMahout? Here
> is
> > what there now:
> >
> >
> >   - Maven *2.0.9* or higher (http://maven.apache.org/)
> >
> >
>

Re: Building mahout

Posted by Sean Owen <sr...@gmail.com>.
At this point I think we should just say note there may be issues with 3.0
in the wiki and not worry about it in the next few days for 0.4.

On Fri, Oct 15, 2010 at 8:02 PM, Tim Liu <ti...@gmail.com> wrote:

> Since mvn 3.0 is NOT fully tested yet, may we update it on documentation
> https://cwiki.apache.org/confluence/display/MAHOUT/BuildingMahout? Here is
> what there now:
>
>
>   - Maven *2.0.9* or higher (http://maven.apache.org/)
>
>

Re: Building mahout

Posted by Tim Liu <ti...@gmail.com>.
Since mvn 3.0 is NOT fully tested yet, may we update it on documentation
https://cwiki.apache.org/confluence/display/MAHOUT/BuildingMahout? Here is
what there now:


   - Maven *2.0.9* or higher (http://maven.apache.org/)


On Fri, Oct 15, 2010 at 11:12 AM, Drew Farris <dr...@gmail.com> wrote:

> -user +dev
>
> I haven't tried mvn 3.0 yet, is it something we want to support in 0.4?
> On Oct 15, 2010 10:20 AM, "Jeff Eastman" <jd...@windwardsolutions.com>
> wrote:
> > I'm also seeing these warnings with Maven 3.0 with the latest trunk,
> > also some missing 'reporting.plugins.version' for
> > maven-surfire-report-plugin, maven-checkstyle-plugin,
> > maven-javadoc-plugin, maven-pmd-plugin; finally
> > 'repositories.repository.layout' for java.net.legacy uses unsupported
> > value 'legacy', artifact resolution might fail.
> > @org.apache.mahout:mahout:-.4-SNAPSHOT.
> > /home/dev/workspace/mahout/pom.xml, line 127, column 21.
> >
> > Again, Tim's patch fixed the compile error.
> >
> > On 10/15/10 12:38 AM, deneche abdelhakim wrote:
> >> I was using maven 2.2.1 and the build was successful (I had other issues
> though). But when I installed maven 3.0 I got a lot of warnings like this
> one:
> >>
> >> Some problems were encountered while building the effective model for
> org.apache.mahout:mahout-math:jar:0.4-SNAPSHOT
> >> [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but
> found duplicate declaration of plugin
> org.apache.maven.plugins:maven-remote-resources-plugin @
> org.apache.mahout:mahout:0.4-SNAPSHOT, /home/hakim/mahout-last/pom.xml,
> line
> 405, column 21
> >>
> >> and the build failed with the following error:
> >>
> >> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-remote-resources-plugin:1.0:process
> (default)
> on project mahout: Error loading supplemental data models: Could not find
> resource 'supplemental-models.xml'.
> >>
> >> Making the change suggested by Tim fixes the problem of the build,
> although I'm still getting the warnings.
> >>
> >> --- En date de : Jeu 14.10.10, Tim Liu<ti...@gmail.com> a écrit :
> >>
> >> De: Tim Liu<ti...@gmail.com>
> >> Objet: Re: Building mahout
> >> Ą: user@mahout.apache.org
> >> Date: Jeudi 14 octobre 2010, 21h10
> >>
> >> The problem is gone after I modify top level's pom.xml (Line # 396) to
> have
> >> right path for the file supplemental-models.xml.
> >>
> >> I am wondering how it works w/o modification.
> >>
> >> new
> >> ===
> >> <appendedResourcesDirectory>*.*
> >> /src/main/appended-resources</appendedResourcesDirectory>
> >>
> >> old
> >> ==
> >> <appendedResourcesDirectory>*..*
> >> /src/main/appended-resources</appendedResourcesDirectory>
> >>
> >> thanks
> >>
> >> Tim
> >>
> >> On Thu, Oct 14, 2010 at 7:01 AM, Jeff Eastman<
> jdog@windwardsolutions.com
> >wrote:
> >>
> >>> I just did a clean checkout on my Mac and it built without issue. I'm
> >>> going to look for a file system permission issue on the other box where
> >>> building from the command line fails with the same symptoms as reported
> in
> >>> this issue.
> >>>
> >>>
> >>> On 10/13/10 9:45 PM, Chris Schilling wrote:
> >>>
> >>>> Yeah, I see the same thing (eclipse helios, m2eclipse plugin). Ive
> been
> >>>> building from the command line and importing the "maven" project into
> >>>> eclipse.
> >>>>
> >>>>
> >>>> On Oct 13, 2010, at 8:38 PM, gabeweb wrote:
> >>>>
> >>>> If it helps, I get this problem with the trunk when building from
> within
> >>>>> Eclipse 1.5 using the m2 plugin on OS X 10.6, but not when building
> from
> >>>>> the
> >>>>> command line. So I'm currently just building from the command line :)
> >>>>> --
> >>>>> View this message in context:
> >>>>>
> http://lucene.472066.n3.nabble.com/Building-mahout-tp1697626p1698594.html
> >>>>> Sent from the Mahout User List mailing list archive at Nabble.com.
> >>>>>
> >>>>
> >>
> >>
> >>
> >
>

Re: Building mahout

Posted by Drew Farris <dr...@gmail.com>.
-user +dev

I haven't tried mvn 3.0 yet, is it something we want to support in 0.4?
On Oct 15, 2010 10:20 AM, "Jeff Eastman" <jd...@windwardsolutions.com> wrote:
> I'm also seeing these warnings with Maven 3.0 with the latest trunk,
> also some missing 'reporting.plugins.version' for
> maven-surfire-report-plugin, maven-checkstyle-plugin,
> maven-javadoc-plugin, maven-pmd-plugin; finally
> 'repositories.repository.layout' for java.net.legacy uses unsupported
> value 'legacy', artifact resolution might fail.
> @org.apache.mahout:mahout:-.4-SNAPSHOT.
> /home/dev/workspace/mahout/pom.xml, line 127, column 21.
>
> Again, Tim's patch fixed the compile error.
>
> On 10/15/10 12:38 AM, deneche abdelhakim wrote:
>> I was using maven 2.2.1 and the build was successful (I had other issues
though). But when I installed maven 3.0 I got a lot of warnings like this
one:
>>
>> Some problems were encountered while building the effective model for
org.apache.mahout:mahout-math:jar:0.4-SNAPSHOT
>> [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but
found duplicate declaration of plugin
org.apache.maven.plugins:maven-remote-resources-plugin @
org.apache.mahout:mahout:0.4-SNAPSHOT, /home/hakim/mahout-last/pom.xml, line
405, column 21
>>
>> and the build failed with the following error:
>>
>> [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-remote-resources-plugin:1.0:process (default)
on project mahout: Error loading supplemental data models: Could not find
resource 'supplemental-models.xml'.
>>
>> Making the change suggested by Tim fixes the problem of the build,
although I'm still getting the warnings.
>>
>> --- En date de : Jeu 14.10.10, Tim Liu<ti...@gmail.com> a écrit :
>>
>> De: Tim Liu<ti...@gmail.com>
>> Objet: Re: Building mahout
>> Ą: user@mahout.apache.org
>> Date: Jeudi 14 octobre 2010, 21h10
>>
>> The problem is gone after I modify top level's pom.xml (Line # 396) to
have
>> right path for the file supplemental-models.xml.
>>
>> I am wondering how it works w/o modification.
>>
>> new
>> ===
>> <appendedResourcesDirectory>*.*
>> /src/main/appended-resources</appendedResourcesDirectory>
>>
>> old
>> ==
>> <appendedResourcesDirectory>*..*
>> /src/main/appended-resources</appendedResourcesDirectory>
>>
>> thanks
>>
>> Tim
>>
>> On Thu, Oct 14, 2010 at 7:01 AM, Jeff Eastman<jdog@windwardsolutions.com
>wrote:
>>
>>> I just did a clean checkout on my Mac and it built without issue. I'm
>>> going to look for a file system permission issue on the other box where
>>> building from the command line fails with the same symptoms as reported
in
>>> this issue.
>>>
>>>
>>> On 10/13/10 9:45 PM, Chris Schilling wrote:
>>>
>>>> Yeah, I see the same thing (eclipse helios, m2eclipse plugin). Ive been
>>>> building from the command line and importing the "maven" project into
>>>> eclipse.
>>>>
>>>>
>>>> On Oct 13, 2010, at 8:38 PM, gabeweb wrote:
>>>>
>>>> If it helps, I get this problem with the trunk when building from
within
>>>>> Eclipse 1.5 using the m2 plugin on OS X 10.6, but not when building
from
>>>>> the
>>>>> command line. So I'm currently just building from the command line :)
>>>>> --
>>>>> View this message in context:
>>>>>
http://lucene.472066.n3.nabble.com/Building-mahout-tp1697626p1698594.html
>>>>> Sent from the Mahout User List mailing list archive at Nabble.com.
>>>>>
>>>>
>>
>>
>>
>

Re: Caching a DataModel

Posted by Sean Owen <sr...@gmail.com>.
There is not. The theory is that the DataModel's job is to always give fresh
data, and let it be cached from there. The weak argument is that if it's
already in memory, then caching doesn't help, and if it's not, it's probably
too big to meaningfully cache. And in fact all the DataModels are in memory
anyway except the JDBC ones.

You may be asking, anyway, is there some way to periodically load an entire
DataModel into memory from some backing store? FileDataModel does this
already, really. I did create at one point a reloading wrapper like this for
use on top of a small database. The tradeoff made sense for that app. I
could dig it out and clean it up.

2010/10/15 Matthias Böhmer <ma...@googlemail.com>

> There are implementations for caching recommenders, item similarity and
> user similarity. Am I wrong, or is there no cache for DataModel? If so, why
> not?
>
> Best,
> Matthias

Caching a DataModel

Posted by Matthias Böhmer <ma...@googlemail.com>.
There are implementations for caching recommenders, item similarity and user similarity. Am I wrong, or is there no cache for DataModel? If so, why not?

Best,
Matthias

Re: Building mahout

Posted by Jeff Eastman <jd...@windwardsolutions.com>.
  I'm also seeing these warnings with Maven 3.0 with the latest trunk, 
also some missing 'reporting.plugins.version' for 
maven-surfire-report-plugin, maven-checkstyle-plugin, 
maven-javadoc-plugin, maven-pmd-plugin; finally 
'repositories.repository.layout' for java.net.legacy uses unsupported 
value 'legacy', artifact resolution might fail. 
@org.apache.mahout:mahout:-.4-SNAPSHOT. 
/home/dev/workspace/mahout/pom.xml, line 127, column 21.

Again, Tim's patch fixed the compile error.

On 10/15/10 12:38 AM, deneche abdelhakim wrote:
> I was using maven 2.2.1 and the build was successful (I had other issues though). But when I installed maven 3.0 I got a lot of warnings like this one:
>
> Some problems were encountered while building the effective model for org.apache.mahout:mahout-math:jar:0.4-SNAPSHOT
> [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-remote-resources-plugin @ org.apache.mahout:mahout:0.4-SNAPSHOT, /home/hakim/mahout-last/pom.xml, line 405, column 21
>
> and the build failed with the following error:
>
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.0:process (default) on project mahout: Error loading supplemental data models: Could not find resource 'supplemental-models.xml'.
>
> Making the change suggested by Tim fixes the problem of the build, although I'm still getting the warnings.
>
> --- En date de : Jeu 14.10.10, Tim Liu<ti...@gmail.com>  a écrit :
>
> De: Tim Liu<ti...@gmail.com>
> Objet: Re: Building mahout
> À: user@mahout.apache.org
> Date: Jeudi 14 octobre 2010, 21h10
>
> The problem is gone after I modify top level's pom.xml (Line # 396) to have
> right path for the file supplemental-models.xml.
>
> I am wondering how it works w/o modification.
>
> new
> ===
> <appendedResourcesDirectory>*.*
> /src/main/appended-resources</appendedResourcesDirectory>
>
> old
> ==
> <appendedResourcesDirectory>*..*
> /src/main/appended-resources</appendedResourcesDirectory>
>
> thanks
>
> Tim
>
> On Thu, Oct 14, 2010 at 7:01 AM, Jeff Eastman<jd...@windwardsolutions.com>wrote:
>
>>    I just did a clean checkout on my Mac and it built without issue. I'm
>> going to look for a file system permission issue on the other box where
>> building from the command line fails with the same symptoms as reported in
>> this issue.
>>
>>
>> On 10/13/10 9:45 PM, Chris Schilling wrote:
>>
>>> Yeah, I see the same thing (eclipse helios, m2eclipse plugin).  Ive been
>>> building from the command line and importing the "maven" project into
>>> eclipse.
>>>
>>>
>>> On Oct 13, 2010, at 8:38 PM, gabeweb wrote:
>>>
>>>    If it helps, I get this problem with the trunk when building from within
>>>> Eclipse 1.5 using the m2 plugin on OS X 10.6, but not when building from
>>>> the
>>>> command line.  So I'm currently just building from the command line :)
>>>> --
>>>> View this message in context:
>>>> http://lucene.472066.n3.nabble.com/Building-mahout-tp1697626p1698594.html
>>>> Sent from the Mahout User List mailing list archive at Nabble.com.
>>>>
>>>
>
>
>


Re: Building mahout

Posted by deneche abdelhakim <a_...@yahoo.fr>.
I was using maven 2.2.1 and the build was successful (I had other issues though). But when I installed maven 3.0 I got a lot of warnings like this one:

Some problems were encountered while building the effective model for org.apache.mahout:mahout-math:jar:0.4-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-remote-resources-plugin @ org.apache.mahout:mahout:0.4-SNAPSHOT, /home/hakim/mahout-last/pom.xml, line 405, column 21

and the build failed with the following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.0:process (default) on project mahout: Error loading supplemental data models: Could not find resource 'supplemental-models.xml'.

Making the change suggested by Tim fixes the problem of the build, although I'm still getting the warnings.

--- En date de : Jeu 14.10.10, Tim Liu <ti...@gmail.com> a écrit :

De: Tim Liu <ti...@gmail.com>
Objet: Re: Building mahout
À: user@mahout.apache.org
Date: Jeudi 14 octobre 2010, 21h10

The problem is gone after I modify top level's pom.xml (Line # 396) to have
right path for the file supplemental-models.xml.

I am wondering how it works w/o modification.

new
===
<appendedResourcesDirectory>*.*
/src/main/appended-resources</appendedResourcesDirectory>

old
==
<appendedResourcesDirectory>*..*
/src/main/appended-resources</appendedResourcesDirectory>

thanks

Tim

On Thu, Oct 14, 2010 at 7:01 AM, Jeff Eastman <jd...@windwardsolutions.com>wrote:

>  I just did a clean checkout on my Mac and it built without issue. I'm
> going to look for a file system permission issue on the other box where
> building from the command line fails with the same symptoms as reported in
> this issue.
>
>
> On 10/13/10 9:45 PM, Chris Schilling wrote:
>
>> Yeah, I see the same thing (eclipse helios, m2eclipse plugin).  Ive been
>> building from the command line and importing the "maven" project into
>> eclipse.
>>
>>
>> On Oct 13, 2010, at 8:38 PM, gabeweb wrote:
>>
>>  If it helps, I get this problem with the trunk when building from within
>>> Eclipse 1.5 using the m2 plugin on OS X 10.6, but not when building from
>>> the
>>> command line.  So I'm currently just building from the command line :)
>>> --
>>> View this message in context:
>>> http://lucene.472066.n3.nabble.com/Building-mahout-tp1697626p1698594.html
>>> Sent from the Mahout User List mailing list archive at Nabble.com.
>>>
>>
>>
>



      

Re: Building mahout

Posted by Tim Liu <ti...@gmail.com>.
The problem is gone after I modify top level's pom.xml (Line # 396) to have
right path for the file supplemental-models.xml.

I am wondering how it works w/o modification.

new
===
<appendedResourcesDirectory>*.*
/src/main/appended-resources</appendedResourcesDirectory>

old
==
<appendedResourcesDirectory>*..*
/src/main/appended-resources</appendedResourcesDirectory>

thanks

Tim

On Thu, Oct 14, 2010 at 7:01 AM, Jeff Eastman <jd...@windwardsolutions.com>wrote:

>  I just did a clean checkout on my Mac and it built without issue. I'm
> going to look for a file system permission issue on the other box where
> building from the command line fails with the same symptoms as reported in
> this issue.
>
>
> On 10/13/10 9:45 PM, Chris Schilling wrote:
>
>> Yeah, I see the same thing (eclipse helios, m2eclipse plugin).  Ive been
>> building from the command line and importing the "maven" project into
>> eclipse.
>>
>>
>> On Oct 13, 2010, at 8:38 PM, gabeweb wrote:
>>
>>  If it helps, I get this problem with the trunk when building from within
>>> Eclipse 1.5 using the m2 plugin on OS X 10.6, but not when building from
>>> the
>>> command line.  So I'm currently just building from the command line :)
>>> --
>>> View this message in context:
>>> http://lucene.472066.n3.nabble.com/Building-mahout-tp1697626p1698594.html
>>> Sent from the Mahout User List mailing list archive at Nabble.com.
>>>
>>
>>
>

Re: Building mahout

Posted by Jeff Eastman <jd...@windwardsolutions.com>.
  I just did a clean checkout on my Mac and it built without issue. I'm 
going to look for a file system permission issue on the other box where 
building from the command line fails with the same symptoms as reported 
in this issue.

On 10/13/10 9:45 PM, Chris Schilling wrote:
> Yeah, I see the same thing (eclipse helios, m2eclipse plugin).  Ive been building from the command line and importing the "maven" project into eclipse.
>
>
> On Oct 13, 2010, at 8:38 PM, gabeweb wrote:
>
>> If it helps, I get this problem with the trunk when building from within
>> Eclipse 1.5 using the m2 plugin on OS X 10.6, but not when building from the
>> command line.  So I'm currently just building from the command line :)
>> -- 
>> View this message in context: http://lucene.472066.n3.nabble.com/Building-mahout-tp1697626p1698594.html
>> Sent from the Mahout User List mailing list archive at Nabble.com.
>


Re: Building mahout

Posted by Chris Schilling <ch...@gmail.com>.
Yeah, I see the same thing (eclipse helios, m2eclipse plugin).  Ive been building from the command line and importing the "maven" project into eclipse.  


On Oct 13, 2010, at 8:38 PM, gabeweb wrote:

> 
> If it helps, I get this problem with the trunk when building from within
> Eclipse 1.5 using the m2 plugin on OS X 10.6, but not when building from the
> command line.  So I'm currently just building from the command line :)
> -- 
> View this message in context: http://lucene.472066.n3.nabble.com/Building-mahout-tp1697626p1698594.html
> Sent from the Mahout User List mailing list archive at Nabble.com.


Re: Building mahout

Posted by gabeweb <ga...@htc.com>.
If it helps, I get this problem with the trunk when building from within
Eclipse 1.5 using the m2 plugin on OS X 10.6, but not when building from the
command line.  So I'm currently just building from the command line :)
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Building-mahout-tp1697626p1698594.html
Sent from the Mahout User List mailing list archive at Nabble.com.

Re: Building mahout

Posted by Jeff Eastman <jd...@windwardsolutions.com>.
  Thanks Tim,

I too encountered this problem trying to build a new Mahout instance 
yesterday. Haven't had a chance to investigate further.

On 10/13/10 3:29 PM, Liu, Tim wrote:
> Hi, All
>
>
> I run into problems while building mahout from the latest revision (1022312) in trunk.  I follow instructions in http://cwiki.apache.org/MAHOUT/buildingmahout.html.
>
>
> Problem:
> =======
>
> 1.       "mvn install" fails in  trunk of /mahout directory
>
> 2.       "mvn clean install" has the same error
>
> 3.       I do see ""supplemental-models.xml in my local copy \mahout\src\main\appended-resources
>
> 4.       I remove ./m2/repository and rerun "mvn install" and "mvn clean install". The same problem
>
> 5.       I search mail archive and see a similar thread http://mail-archives.apache.org/mod_mbox/mahout-user/200910.mbox/browser. Looks like solution might be a code change?
>
> Errors
> =====
> [INFO] --- maven-remote-resources-plugin:1.0:process (default) @ mahout ---
> [ERROR] Error loading supplemental data models: Could not find resource 'supplem
> ental-models.xml'.
> org.codehaus.plexus.resource.loader.ResourceNotFoundException: Could not find re
> source 'supplemental-models.xml'.
>          at org.codehaus.plexus.resource.DefaultResourceManager.getResourceAsInpu
> tStream(DefaultResourceManager.java:91)
>          at org.codehaus.plexus.resource.DefaultResourceManager.getResourceAsFile
> (DefaultResourceManager.java:117)
>          at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.l
> oadSupplements(ProcessRemoteResourcesMojo.java:928)
>          at org.apache.maven.plugin.resources.remote.ProcessRemoteResourcesMojo.e
> xecute(ProcessRemoteResourcesMojo.java:410)
>          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
> BuildPluginManager.java:107)
>          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
> .java:195)
>          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
> .java:148)
>          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
> .java:140)
>          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
> ct(LifecycleModuleBuilder.java:84)
>          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
> ct(LifecycleModuleBuilder.java:59)
>          at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
> ild(LifecycleStarter.java:183)
>          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
> eStarter.java:161)
>          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314)
>          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
>          at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
>          at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
>          at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>          at java.lang.reflect.Method.invoke(Unknown Source)
>          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
> cher.java:290)
>          at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
> a:230)
>          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
> uncher.java:409)
>          at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> 352)
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Mahout Build Tools ................................ SUCCESS [1.031s]
> [INFO] Mahout Eclipse .................................... SUCCESS [0.047s]
> [INFO] Apache Mahout ..................................... FAILURE [0.032s]
> [INFO] Mahout Math ....................................... SKIPPED
> [INFO] Mahout Core ....................................... SKIPPED
> [INFO] Mahout Taste Webapp ............................... SKIPPED
> [INFO] Mahout Utilities .................................. SKIPPED
> [INFO] Mahout Examples ................................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1.422s
> [INFO] Finished at: Wed Oct 13 15:17:15 PDT 2010
> [INFO] Final Memory: 11M/989M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-p
> lugin:1.0:process (default) on project mahout: Error loading supplemental data m
> odels: Could not find resource 'supplemental-models.xml'. ->  [Help 1]
>
>
> thanks
>
> Tim
>