You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Jeremy Lewi <je...@lewi.us> on 2011/01/27 14:18:45 UTC

Help building mahout

Hi,

I'm trying to build mahout from svn and while trying to build the core I
get the following error. I have revision r1063437 checked out.

[ERROR] Failed to execute goal on project mahout-core: Could not resolve
dependencies for project org.apache.mahout:mahout-core:jar:0.5-SNAPSHOT:
Failed to collect dependencies for
[org.apache.mahout:mahout-math:jar:0.5-SNAPSHOT (compile),
org.apache.hadoop:hadoop-core:jar:0.20.2 (compile),
org.apache.mahout.hbase:hbase:jar:0.20.0 (compile),
com.google.code.gson:gson:jar:1.3 (compile),
commons-dbcp:commons-dbcp:jar:1.2.2 (compile),
commons-pool:commons-pool:jar:1.4 (compile),
org.slf4j:slf4j-api:jar:1.6.0 (compile), org.slf4j:slf4j-jcl:jar:1.6.0
(test), commons-lang:commons-lang:jar:2.4 (compile),
org.uncommons.watchmaker:watchmaker-framework:jar:0.6.2 (compile),
com.thoughtworks.xstream:xstream:jar:1.3.1 (compile),
org.apache.lucene:lucene-core:jar:3.0.2 (compile),
org.apache.lucene:lucene-analyzers:jar:3.0.2 (compile),
org.apache.mahout.commons:commons-cli:jar:2.0-mahout (compile),
commons-math:commons-math:jar:1.2 (compile), junit:junit:jar:4.7 (test),
org.easymock:easymock:jar:2.5.2 (test),
org.easymock:easymockclassextension:jar:2.5.2 (test),
org.apache.mahout:mahout-math:jar:tests:0.5-SNAPSHOT (test),
commons-collections:commons-collections:jar:3.2.1 (compile)]: Failed to
read artifact descriptor for
org.apache.mahout:mahout-math:jar:0.5-SNAPSHOT: Could not find artifact
org.apache.mahout:mahout:pom:0.5-SNAPSHOT in Apache snapshots
(http://people.apache.org/maven-snapshot-repository) -> [Help 1]

Here's what I did,
Cd to math 

     1. mvn compile 
        
     2. mvn install 
        
     3. One of the tests failed so I did 
        
              * mvn -DskipTests install 
                
              * test that failed was testLogNormalize 
                
  * cd to ../core 

     1. mvn compile 
        
             1. Got the error above.
             2. 
I tried to build math because when I tried to build core, I got an error
about not being able to obtaion mahout-math.jar:0.5-SNAPSHOT

Thanks
Jeremy
        
        
        
        



Re: Help building mahout

Posted by Abhik Banerjee <ba...@gmail.com>.
 I have a question but the limit of 80 characters restrict me sorry for posting it here





Re: Help building mahout

Posted by Ted Dunning <te...@gmail.com>.
Jeremy,

Can you try this patch out?

https://issues.apache.org/jira/browse/MAHOUT-600

On Sat, Jan 29, 2011 at 10:24 AM, Jeremy Lewi <je...@lewi.us> wrote:

> Sorry that was my mistake, I think I messed up when I copied and pasted
> the stack output. Anyways I repasted the complete stack output and I'm
> attaching a tar file with the contents of the surefire directory.
>
> J
>
> Failed tests:
>  testLogNormalize(org.apache.mahout.math.VectorTest)
>
> Tests run: 577, Failures: 1, Errors: 0, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Mahout ..................................... SUCCESS
> [0.729s]
> [INFO] Mahout Build Tools ................................ SUCCESS
> [1.459s]
> [INFO] Mahout Eclipse .................................... SUCCESS
> [0.306s]
> [INFO] Mahout Math ....................................... FAILURE
> [19.625s]
> [INFO] Mahout Core ....................................... SKIPPED
> [INFO] Mahout Taste Webapp ............................... SKIPPED
> [INFO] Mahout Utilities .................................. SKIPPED
> [INFO] Mahout Examples ................................... SKIPPED
> [INFO] Mahout Release Package ............................ SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 22.687s
> [INFO] Finished at: Sat Jan 29 09:40:49 GMT-08:00 2011
> [INFO] Final Memory: 23M/298M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test)
> on project mahout-math: There are test failures.
> [ERROR]
> [ERROR] Please refer
> to /home/jlewi/svn_mahout/math/target/surefire-reports for the
> individual test results.
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test
> (default-test) on project mahout-math: There are test failures.
>
> Please refer to /home/jlewi/svn_mahout/math/target/surefire-reports for
> the individual test results.
>        at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>        at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>        at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>        at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>        at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>        at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>        at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
>        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:616)
>        at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>        at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>        at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.MojoFailureException: There are test
> failures.
>
> Please refer to /home/jlewi/svn_mahout/math/target/surefire-reports for
> the individual test results.
>        at
>
> org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:629)
>        at
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
>        at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>        ... 19 more
> [ERROR]
> [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/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :mahout-math
>
>
> On Sat, 2011-01-29 at 10:01 -0800, Ted Dunning wrote:
> > Almost.  What I really need is the results
> > in /home/jlewi/svn_mahout/math/target/surefire-reports for the failing
> > test.  I should have been more explicit before to avoid wasting an
> > email cycle time.
> >
> > On Sat, Jan 29, 2011 at 9:43 AM, Jeremy Lewi <je...@lewi.us> wrote:
> >         Is this what you are looking for?
> >
> >         Results :
> >
> >         Failed tests:
> >          testLogNormalize(org.apache.mahout.math.VectorTest)
> >
> >         Tests run: 577, Failures: 1, Errors: 0, Skipped: 0
> >
> >         [INFO]
> >
> ------------------------------------------------------------------------
> >         [INFO] Reactor Summary:
> >         [INFO]
> >         [INFO] Apache Mahout .....................................
> >         SUCCESS
> >         [0.729s]
> >         [INFO] Mahout Build Tools ................................
> >         SUCCESS
> >         [1.459s]
> >         [INFO] Mahout Eclipse ....................................
> >         SUCCESS
> >         [0.306s]
> >         [INFO] Mahout Math .......................................
> >         FAILURE
> >         [19.625s]
> >         [INFO] Mahout Core .......................................
> >         SKIPPED
> >         [INFO] Mahout Taste Webapp ...............................
> >         SKIPPED
> >         [INFO] Mahout Utilities ..................................
> >         SKIPPED
> >         [INFO] Mahout Examples ...................................
> >         SKIPPED
> >         [INFO] Mahout Release Package ............................
> >         SKIPPED
> >         [INFO]
> >
> ------------------------------------------------------------------------
> >         [INFO] BUILD FAILURE
> >         [INFO]
> >
> ------------------------------------------------------------------------
> >         [INFO] Total time: 22.687s
> >         [INFO] Finished at: Sat Jan 29 09:40:49 GMT-08:00 2011
> >         [INFO] Final Memory: 23M/298M
> >         [INFO]
> >
> ------------------------------------------------------------------------
> >         [ERROR] Failed to execute goal
> >         org.apache.maven.plugins:maven-surefire-plugin:2.5:test
> >         (default-test)
> >         on project mahout-math: There are test failures.
> >         [ERROR]
> >         [ERROR] Please refer
> >         to /home/jlewi/svn_mahout/math/target/surefire-reports for the
> >         individual test results.
> >
>

Re: Help building mahout

Posted by Ted Dunning <te...@gmail.com>.
Can you post a complete list of the errors you see in running the tests,
both in math and at the top-level?

Also, what platform are you on?

On Thu, Jan 27, 2011 at 6:18 AM, Jeremy Lewi <je...@lewi.us> wrote:

> Thanks, that worked once I added the -DskipTests option.
>
> J
> On Thu, 2011-01-27 at 19:00 +0530, Kasun Lakpriya wrote:
> > Hi,
> > I am not an expert but I think you can try to build from the top level
> > pom.xml using,
> >
> > - mvn clean install, instead of mvn compile
> >
> > Hope you are following this
> > https://cwiki.apache.org/confluence/display/MAHOUT/BuildingMahout
> >
> > or else try to build after deleting org/mahout from the repository.
> >
> > HTH
> >
> > -Kasun
> >
> > If this won
> >
> > On Thu, Jan 27, 2011 at 6:48 PM, Jeremy Lewi <je...@lewi.us> wrote:
> >
> > > Hi,
> > >
> > > I'm trying to build mahout from svn and while trying to build the core
> I
> > > get the following error. I have revision r1063437 checked out.
> > >
> > > [ERROR] Failed to execute goal on project mahout-core: Could not
> resolve
> > > dependencies for project
> org.apache.mahout:mahout-core:jar:0.5-SNAPSHOT:
> > > Failed to collect dependencies for
> > > [org.apache.mahout:mahout-math:jar:0.5-SNAPSHOT (compile),
> > > org.apache.hadoop:hadoop-core:jar:0.20.2 (compile),
> > > org.apache.mahout.hbase:hbase:jar:0.20.0 (compile),
> > > com.google.code.gson:gson:jar:1.3 (compile),
> > > commons-dbcp:commons-dbcp:jar:1.2.2 (compile),
> > > commons-pool:commons-pool:jar:1.4 (compile),
> > > org.slf4j:slf4j-api:jar:1.6.0 (compile), org.slf4j:slf4j-jcl:jar:1.6.0
> > > (test), commons-lang:commons-lang:jar:2.4 (compile),
> > > org.uncommons.watchmaker:watchmaker-framework:jar:0.6.2 (compile),
> > > com.thoughtworks.xstream:xstream:jar:1.3.1 (compile),
> > > org.apache.lucene:lucene-core:jar:3.0.2 (compile),
> > > org.apache.lucene:lucene-analyzers:jar:3.0.2 (compile),
> > > org.apache.mahout.commons:commons-cli:jar:2.0-mahout (compile),
> > > commons-math:commons-math:jar:1.2 (compile), junit:junit:jar:4.7
> (test),
> > > org.easymock:easymock:jar:2.5.2 (test),
> > > org.easymock:easymockclassextension:jar:2.5.2 (test),
> > > org.apache.mahout:mahout-math:jar:tests:0.5-SNAPSHOT (test),
> > > commons-collections:commons-collections:jar:3.2.1 (compile)]: Failed to
> > > read artifact descriptor for
> > > org.apache.mahout:mahout-math:jar:0.5-SNAPSHOT: Could not find artifact
> > > org.apache.mahout:mahout:pom:0.5-SNAPSHOT in Apache snapshots
> > > (http://people.apache.org/maven-snapshot-repository) -> [Help 1]
> > >
> > > Here's what I did,
> > > Cd to math
> > >
> > >     1. mvn compile
> > >
> > >     2. mvn install
> > >
> > >     3. One of the tests failed so I did
> > >
> > >              * mvn -DskipTests install
> > >
> > >              * test that failed was testLogNormalize
> > >
> > >  * cd to ../core
> > >
> > >     1. mvn compile
> > >
> > >             1. Got the error above.
> > >             2.
> > > I tried to build math because when I tried to build core, I got an
> error
> > > about not being able to obtaion mahout-math.jar:0.5-SNAPSHOT
> > >
> > > Thanks
> > > Jeremy
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>

Re: Help building mahout

Posted by Jeremy Lewi <je...@lewi.us>.
Thanks, that worked once I added the -DskipTests option.

J
On Thu, 2011-01-27 at 19:00 +0530, Kasun Lakpriya wrote:
> Hi,
> I am not an expert but I think you can try to build from the top level
> pom.xml using,
> 
> - mvn clean install, instead of mvn compile
> 
> Hope you are following this
> https://cwiki.apache.org/confluence/display/MAHOUT/BuildingMahout
> 
> or else try to build after deleting org/mahout from the repository.
> 
> HTH
> 
> -Kasun
> 
> If this won
> 
> On Thu, Jan 27, 2011 at 6:48 PM, Jeremy Lewi <je...@lewi.us> wrote:
> 
> > Hi,
> >
> > I'm trying to build mahout from svn and while trying to build the core I
> > get the following error. I have revision r1063437 checked out.
> >
> > [ERROR] Failed to execute goal on project mahout-core: Could not resolve
> > dependencies for project org.apache.mahout:mahout-core:jar:0.5-SNAPSHOT:
> > Failed to collect dependencies for
> > [org.apache.mahout:mahout-math:jar:0.5-SNAPSHOT (compile),
> > org.apache.hadoop:hadoop-core:jar:0.20.2 (compile),
> > org.apache.mahout.hbase:hbase:jar:0.20.0 (compile),
> > com.google.code.gson:gson:jar:1.3 (compile),
> > commons-dbcp:commons-dbcp:jar:1.2.2 (compile),
> > commons-pool:commons-pool:jar:1.4 (compile),
> > org.slf4j:slf4j-api:jar:1.6.0 (compile), org.slf4j:slf4j-jcl:jar:1.6.0
> > (test), commons-lang:commons-lang:jar:2.4 (compile),
> > org.uncommons.watchmaker:watchmaker-framework:jar:0.6.2 (compile),
> > com.thoughtworks.xstream:xstream:jar:1.3.1 (compile),
> > org.apache.lucene:lucene-core:jar:3.0.2 (compile),
> > org.apache.lucene:lucene-analyzers:jar:3.0.2 (compile),
> > org.apache.mahout.commons:commons-cli:jar:2.0-mahout (compile),
> > commons-math:commons-math:jar:1.2 (compile), junit:junit:jar:4.7 (test),
> > org.easymock:easymock:jar:2.5.2 (test),
> > org.easymock:easymockclassextension:jar:2.5.2 (test),
> > org.apache.mahout:mahout-math:jar:tests:0.5-SNAPSHOT (test),
> > commons-collections:commons-collections:jar:3.2.1 (compile)]: Failed to
> > read artifact descriptor for
> > org.apache.mahout:mahout-math:jar:0.5-SNAPSHOT: Could not find artifact
> > org.apache.mahout:mahout:pom:0.5-SNAPSHOT in Apache snapshots
> > (http://people.apache.org/maven-snapshot-repository) -> [Help 1]
> >
> > Here's what I did,
> > Cd to math
> >
> >     1. mvn compile
> >
> >     2. mvn install
> >
> >     3. One of the tests failed so I did
> >
> >              * mvn -DskipTests install
> >
> >              * test that failed was testLogNormalize
> >
> >  * cd to ../core
> >
> >     1. mvn compile
> >
> >             1. Got the error above.
> >             2.
> > I tried to build math because when I tried to build core, I got an error
> > about not being able to obtaion mahout-math.jar:0.5-SNAPSHOT
> >
> > Thanks
> > Jeremy
> >
> >
> >
> >
> >
> >
> >
> 
> 


Re: Help building mahout

Posted by Kasun Lakpriya <ka...@gmail.com>.
Hi,
I am not an expert but I think you can try to build from the top level
pom.xml using,

- mvn clean install, instead of mvn compile

Hope you are following this
https://cwiki.apache.org/confluence/display/MAHOUT/BuildingMahout

or else try to build after deleting org/mahout from the repository.

HTH

-Kasun

If this won

On Thu, Jan 27, 2011 at 6:48 PM, Jeremy Lewi <je...@lewi.us> wrote:

> Hi,
>
> I'm trying to build mahout from svn and while trying to build the core I
> get the following error. I have revision r1063437 checked out.
>
> [ERROR] Failed to execute goal on project mahout-core: Could not resolve
> dependencies for project org.apache.mahout:mahout-core:jar:0.5-SNAPSHOT:
> Failed to collect dependencies for
> [org.apache.mahout:mahout-math:jar:0.5-SNAPSHOT (compile),
> org.apache.hadoop:hadoop-core:jar:0.20.2 (compile),
> org.apache.mahout.hbase:hbase:jar:0.20.0 (compile),
> com.google.code.gson:gson:jar:1.3 (compile),
> commons-dbcp:commons-dbcp:jar:1.2.2 (compile),
> commons-pool:commons-pool:jar:1.4 (compile),
> org.slf4j:slf4j-api:jar:1.6.0 (compile), org.slf4j:slf4j-jcl:jar:1.6.0
> (test), commons-lang:commons-lang:jar:2.4 (compile),
> org.uncommons.watchmaker:watchmaker-framework:jar:0.6.2 (compile),
> com.thoughtworks.xstream:xstream:jar:1.3.1 (compile),
> org.apache.lucene:lucene-core:jar:3.0.2 (compile),
> org.apache.lucene:lucene-analyzers:jar:3.0.2 (compile),
> org.apache.mahout.commons:commons-cli:jar:2.0-mahout (compile),
> commons-math:commons-math:jar:1.2 (compile), junit:junit:jar:4.7 (test),
> org.easymock:easymock:jar:2.5.2 (test),
> org.easymock:easymockclassextension:jar:2.5.2 (test),
> org.apache.mahout:mahout-math:jar:tests:0.5-SNAPSHOT (test),
> commons-collections:commons-collections:jar:3.2.1 (compile)]: Failed to
> read artifact descriptor for
> org.apache.mahout:mahout-math:jar:0.5-SNAPSHOT: Could not find artifact
> org.apache.mahout:mahout:pom:0.5-SNAPSHOT in Apache snapshots
> (http://people.apache.org/maven-snapshot-repository) -> [Help 1]
>
> Here's what I did,
> Cd to math
>
>     1. mvn compile
>
>     2. mvn install
>
>     3. One of the tests failed so I did
>
>              * mvn -DskipTests install
>
>              * test that failed was testLogNormalize
>
>  * cd to ../core
>
>     1. mvn compile
>
>             1. Got the error above.
>             2.
> I tried to build math because when I tried to build core, I got an error
> about not being able to obtaion mahout-math.jar:0.5-SNAPSHOT
>
> Thanks
> Jeremy
>
>
>
>
>
>
>


-- 
http://twitter.com/kasunLak
http://kasun86.blogspot.com/
http://kasunlak.tumblr.com/