mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: Mahout utils compilation problems
Date Sun, 28 Nov 2010 21:17:16 GMT
Do the  compilation at the top level, not at the utils level.

And if there are test failures, follow the directions and take a look at the
suggested files.

On Sun, Nov 28, 2010 at 1:11 PM, Shivani Rao <raoshivani@gmail.com> wrote:

> Here is the trace
>
> mvn install -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Mahout Utilities
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 0 resource
> [INFO] [resources:copy-resources {execution: copy-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 3 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources {execution: default-testResources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 0 resource
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [surefire:test {execution: default-test}]
> [INFO] Surefire report directory:
> /home/shivani/research/toolkit/mahout/trunk/utils/target/surefire-reports
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.mahout.utils.vectors.lucene.LuceneIterableTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.749 sec
> Running org.apache.mahout.clustering.TestClusterDumper
> ^CDestroying 1 processes
> Destroying process..
> Destroyed 1 processes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
>
> Please refer to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/surefire-reports
> for the individual test results.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: There are test failures.
>
> Please refer to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/surefire-reports
> for the individual test results.
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>     at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>     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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>     at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>     at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>     at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoFailureException: There are test
> failures.
>
> Please refer to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/surefire-reports
> for the individual test results.
>     at
> org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:629)
>     at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>     ... 17 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 11 seconds
> [INFO] Finished at: Sun Nov 28 15:29:21 EST 2010
> shivani@shivani-laptop:~/research/toolkit/mahout/trunk/utils$ mvn install
> -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Mahout Utilities
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 0 resource
> [INFO] [resources:copy-resources {execution: copy-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 3 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources {execution: default-testResources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 0 resource
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [surefire:test {execution: default-test}]
> [INFO] Surefire report directory:
> /home/shivani/research/toolkit/mahout/trunk/utils/target/surefire-reports
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.mahout.utils.vectors.lucene.LuceneIterableTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.324 sec
> Running org.apache.mahout.clustering.TestClusterDumper
> [INFO] [jar:jar {execution: default-jar}]
> [INFO] Building jar:
> /home/shivani/research/toolkit/mahout/trunk/utils/target/mahout-utils-0.5-SNAPSHOT.jar
> [INFO] [dependency:copy-dependencies {execution: copy-dependencies}]
> [INFO] Copying cglib-nodep-2.2.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/cglib-nodep-2.2.jar
> [INFO] Copying gson-1.3.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/gson-1.3.jar
> [INFO] Copying google-collections-1.0-rc2.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/google-collections-1.0-rc2.jar
> [INFO] Copying guava-r03.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/guava-r03.jar
> [INFO] Copying xstream-1.3.1.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/xstream-1.3.1.jar
> [INFO] Copying commons-cli-1.2.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/commons-cli-1.2.jar
> [INFO] Copying commons-codec-1.3.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/commons-codec-1.3.jar
> [INFO] Copying commons-collections-3.2.1.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/commons-collections-3.2.1.jar
> [INFO] Copying commons-dbcp-1.2.2.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/commons-dbcp-1.2.2.jar
> [INFO] Copying commons-httpclient-3.0.1.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/commons-httpclient-3.0.1.jar
> [INFO] Copying commons-lang-2.4.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/commons-lang-2.4.jar
> [INFO] Copying commons-logging-1.1.1.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/commons-logging-1.1.1.jar
> [INFO] Copying commons-math-1.2.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/commons-math-1.2.jar
> [INFO] Copying commons-pool-1.4.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/commons-pool-1.4.jar
> [INFO] Copying junit-4.7.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/junit-4.7.jar
> [INFO] Copying hadoop-core-0.20.2.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/hadoop-core-0.20.2.jar
> [INFO] Copying lucene-analyzers-3.0.2.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/lucene-analyzers-3.0.2.jar
> [INFO] Copying lucene-core-3.0.2.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/lucene-core-3.0.2.jar
> [INFO] Copying mahout-collections-1.0.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/mahout-collections-1.0.jar
> [INFO] Copying mahout-core-0.5-SNAPSHOT.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/mahout-core-0.5-SNAPSHOT.jar
> [INFO] Copying mahout-core-0.5-SNAPSHOT-tests.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/mahout-core-0.5-SNAPSHOT-tests.jar
> [INFO] Copying mahout-math-0.5-SNAPSHOT.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/mahout-math-0.5-SNAPSHOT.jar
> [INFO] Copying mahout-math-0.5-SNAPSHOT-tests.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/mahout-math-0.5-SNAPSHOT-tests.jar
> [INFO] Copying commons-cli-2.0-mahout.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/commons-cli-2.0-mahout.jar
> [INFO] Copying hbase-0.20.0.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/hbase-0.20.0.jar
> [INFO] Copying easymock-2.5.2.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/easymock-2.5.2.jar
> [INFO] Copying easymockclassextension-2.5.2.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/easymockclassextension-2.5.2.jar
> [INFO] Copying objenesis-1.2.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/objenesis-1.2.jar
> [INFO] Copying slf4j-api-1.6.0.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/slf4j-api-1.6.0.jar
> [INFO] Copying slf4j-jcl-1.6.0.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/slf4j-jcl-1.6.0.jar
> [INFO] Copying uncommons-maths-1.2.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/uncommons-maths-1.2.jar
> [INFO] Copying watchmaker-framework-0.6.2.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/watchmaker-framework-0.6.2.jar
> [INFO] Copying xpp3_min-1.1.4c.jar to
> /home/shivani/research/toolkit/mahout/trunk/utils/target/dependency/xpp3_min-1.1.4c.jar
> [INFO] [install:install {execution: default-install}]
> [INFO] Installing
> /home/shivani/research/toolkit/mahout/trunk/utils/target/mahout-utils-0.5-SNAPSHOT.jar
> to
> /home/shivani/.m2/repository/org/apache/mahout/mahout-utils/0.5-SNAPSHOT/mahout-utils-0.5-SNAPSHOT.jar
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 minutes 32 seconds
> [INFO] Finished at: Sun Nov 28 15:33:06 EST 2010
> [INFO] Final Memory: 28M/278M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
> On Sun, Nov 28, 2010 at 3:17 PM, Ted Dunning <ted.dunning@gmail.com>wrote:
>
>>
>> Can you give us a hint like a stack trace?  Try the -e option for maven:
>>
>>     mvn -e install
>>
>>
>>
>> On Sat, Nov 27, 2010 at 11:53 PM, Shivani Rao <raoshivani@gmail.com>wrote:
>>
>>> I am trying to modify the Mahout code for my custom purposes and I need
>>> to make changes to the file in mahout/utils.
>>> I made some changes to
>>> mahout/trunk/utils/src/main/java/org/apache/mahout/clustering/ldaLDAprinttopics.java
>>> and when I run mvn install in mahout/trunk/utils this flle does not get
>>> compiled.
>>> Am I doing something wrong?
>>>
>>> Your help is greatly appreciated
>>>
>>> Regards,
>>> Shivani
>>>
>>> --
>>> Research Scholar,
>>> School of Electrical and Computer Engineering
>>> Purdue University
>>> West Lafayette IN
>>> web.ics.purdue.edu/~sgrao <http://web.ics.purdue.edu/%7Esgrao>
>>>
>>
>>
>
>
> --
> Research Scholar,
> School of Electrical and Computer Engineering
> Purdue University
> West Lafayette IN
> web.ics.purdue.edu/~sgrao
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message