Here are the followings of the conversation between Sebastian and me, since
I hit reply instead of reply all at some point.


Kévin Moulart


---------- Forwarded message ----------
From: Sebastian Schelter <[email protected]>
Date: 2014-03-13 10:33 GMT+01:00
Subject: Re: Compiling Mahout with maven in Eclipse
To: Kevin Moulart <[email protected]>


I use Intellij IDEA. Its support for maven projects is very nice. You
should be able to simply import mahout as maven project there and
everything should work fine.

--sebastian


On 03/13/2014 10:24 AM, Kevin Moulart wrote:

> Actually I pretty much don't care which IDE I use, if you could share the
> one you use I can try and make something work. At this point I would only
> update the documentation on several files, so even something like Sublime
> Text would work for me. I just wanted eclipse for the ease of accessing the
> javadoc and the links between the files (I can click a class and get
> directly to it's declaration...).
>
> Kévin Moulart
>
>
> 2014-03-13 10:20 GMT+01:00 Sebastian Schelter <[email protected]>:
>
>  Hm, I'm not an Eclipse user myself, maybe someone else can help?
>>
>>
>>
>> On 03/13/2014 10:15 AM, Kevin Moulart wrote:
>>
>>  [myCompany@node01 mahout-trunk]$ ls -al
>>> total 180
>>> drwxrwxr-x 15 myCompany myCompany  4096 Mar 13 10:05 .
>>> drwxrwxr-x  6 myCompany myCompany  4096 Mar  7 11:42 ..
>>> drwxrwxr-x  2 myCompany myCompany  4096 Mar  7 11:43 bin
>>> drwxrwxr-x  5 myCompany myCompany  4096 Mar 13 10:05 buildtools
>>> -rw-rw-r--  1 myCompany myCompany 12979 Mar  7 11:43 CHANGELOG
>>> drwxrwxr-x  6 myCompany myCompany  4096 Mar 12 17:00 core
>>> drwxrwxr-x  4 myCompany myCompany  4096 Mar  7 11:46 distribution
>>> -rw-rw-r--  1 myCompany myCompany  2320 Mar  7 11:43 doap_Mahout.rdf
>>> drwxrwxr-x  6 myCompany myCompany  4096 Mar 12 17:11 examples
>>> -rw-rw-r--  1 myCompany myCompany   213 Mar  7 11:43 .gitignore
>>> drwxrwxr-x  7 myCompany myCompany  4096 Mar 12 17:11 integration
>>> -rw-rw-r--  1 myCompany myCompany 39588 Mar  7 11:43 LICENSE.txt
>>> drwxrwxr-x  5 myCompany myCompany  4096 Mar 13 10:05 math
>>> drwxrwxr-x  5 myCompany myCompany  4096 Mar 12 17:12 math-scala
>>> -rw-rw-r--  1 myCompany myCompany  1888 Mar  7 11:43 NOTICE.txt
>>> -rw-rw-r--  1 myCompany myCompany 42747 Mar  7 11:49 pom.xml
>>> -rw-rw-r--  1 myCompany myCompany   375 Mar  7 11:43 .project
>>> -rw-rw-r--  1 myCompany myCompany  1212 Mar  7 11:42 README.txt
>>> drwxrwxr-x  2 myCompany myCompany  4096 Mar  7 11:43 .settings
>>> drwxrwxr-x  6 myCompany myCompany  4096 Mar 12 17:12 spark
>>> drwxrwxr-x  4 myCompany myCompany  4096 Mar  7 11:42 src
>>> drwxrwxr-x  4 myCompany myCompany  4096 Mar  7 11:43 .svn
>>> drwxrwxr-x  3 myCompany myCompany  4096 Mar 13 10:05 target
>>>
>>> Yes I do think so. But I don't understand how mvn package can work
>>> without
>>> generating those files... Even the JUnit tests passed... ?
>>>
>>> Kévin Moulart
>>>
>>>
>>> 2014-03-13 10:11 GMT+01:00 Sebastian Schelter <[email protected]>:
>>>
>>>   Are executing maven in the topmost directory?
>>>
>>>>
>>>>
>>>> On 03/13/2014 10:09 AM, Kevin Moulart wrote:
>>>>
>>>>   I did, but then it fails because of these missing files :
>>>>
>>>>> https://gist.github.com/kmoulart/9524828
>>>>>
>>>>> Kévin Moulart
>>>>>
>>>>>
>>>>> 2014-03-13 9:57 GMT+01:00 Sebastian Schelter <[email protected]>:
>>>>>
>>>>>    Maven should generate the classes automatically. Have you tried
>>>>> running
>>>>>
>>>>>
>>>>>> mvn -DskipTests clean install
>>>>>>
>>>>>> on the commandline?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 03/13/2014 09:50 AM, Kevin Moulart wrote:
>>>>>>
>>>>>>    How can I generate them to make these errors go away then ? Or
>>>>>> don't
>>>>>> I
>>>>>>
>>>>>>  have
>>>>>>> to ?
>>>>>>>
>>>>>>> Kévin Moulart
>>>>>>>
>>>>>>>
>>>>>>> 2014-03-13 9:17 GMT+01:00 Sebastian Schelter <
>>>>>>> [email protected]
>>>>>>>
>>>>>>>> :
>>>>>>>>
>>>>>>>
>>>>>>>     Those are autogenerated.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> On 03/13/2014 09:05 AM, Kevin Moulart wrote:
>>>>>>>>
>>>>>>>>     Ok it does compile with maven in eclipse as well, but still,
>>>>>>>> many
>>>>>>>>
>>>>>>>>   imports
>>>>>>>>
>>>>>>>>> are not recognized in the sources :
>>>>>>>>>
>>>>>>>>> - import org.apache.mahout.math.function.IntObjectProcedure;
>>>>>>>>> - import org.apache.mahout.math.map.OpenIntLongHashMap;
>>>>>>>>> - import org.apache.mahout.math.map.OpenIntObjectHashMap;
>>>>>>>>> - import org.apache.mahout.math.set.OpenIntHashSet;
>>>>>>>>> - import org.apache.mahout.math.list.DoubleArrayList;
>>>>>>>>> ...
>>>>>>>>>
>>>>>>>>> Pretty much all the problems come from the OpenInt... classes that
>>>>>>>>> it
>>>>>>>>> doesn't seem to find. Is there a jar or a pom entry I need to add
>>>>>>>>> here ?
>>>>>>>>> Or do I have the wrong version of org.apache.mahout.math, because I
>>>>>>>>> can't
>>>>>>>>> find those maps/sets/lists in the math package ?
>>>>>>>>>
>>>>>>>>> (I have the same problem on both my windows, centos and mac os)
>>>>>>>>>
>>>>>>>>> Kévin Moulart
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 2014-03-12 17:00 GMT+01:00 Kevin Moulart <[email protected]>:
>>>>>>>>>
>>>>>>>>>      Never mind, I found where the problem lied, I deleted the full
>>>>>>>>> content of
>>>>>>>>>
>>>>>>>>>    .m2 and retried it as non root user and it worked. Trying in
>>>>>>>>> Eclipse
>>>>>>>>>
>>>>>>>>>  now,
>>>>>>>>>> with tests I'll let you now if it doesn't work.
>>>>>>>>>>
>>>>>>>>>> Kévin Moulart
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 2014-03-12 16:45 GMT+01:00 Kevin Moulart <[email protected]
>>>>>>>>>> >:
>>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>    I tried to fix all the problem I had to configure eclipse in
>>>>>>>>>> order
>>>>>>>>>>
>>>>>>>>>>  to
>>>>>>>>>>> compile mahout in it using "maven clean package" as goal.
>>>>>>>>>>>
>>>>>>>>>>> First I had to make a change in mahout core in the class
>>>>>>>>>>> GroupTree.java,
>>>>>>>>>>> line 171 :
>>>>>>>>>>>
>>>>>>>>>>>      stack = new ArrayDeque<GroupTree>();
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>   Then I tried compiling with eclipse (I already had the plugin
>>>>>>>>>>>>
>>>>>>>>>>> and
>>>>>>>>>>> all
>>>>>>>>>>> imported and I'm working on the trunk version).
>>>>>>>>>>>
>>>>>>>>>>>      From eclipse it runs until it tries compiling the examples :
>>>>>>>>>>>
>>>>>>>>>>>      [INFO] Building jar:
>>>>>>>>>>>
>>>>>>>>>>>    /home/myCompany/Workspace_eclipse/mahout-trunk/examples/
>>>>>>>>>>>
>>>>>>>>>>>  target/mahout-examples-1.0-SNAPSHOT-job.jar
>>>>>>>>>>>> [INFO]
>>>>>>>>>>>> ------------------------------------------------------------
>>>>>>>>>>>> ------------
>>>>>>>>>>>> [INFO] Reactor Summary:
>>>>>>>>>>>> [INFO]
>>>>>>>>>>>> [INFO] Mahout Build Tools ................................
>>>>>>>>>>>> SUCCESS [
>>>>>>>>>>>>       1.173 s]
>>>>>>>>>>>> [INFO] Apache Mahout .....................................
>>>>>>>>>>>> SUCCESS [
>>>>>>>>>>>>       0.307 s]
>>>>>>>>>>>> [INFO] Mahout Math .......................................
>>>>>>>>>>>> SUCCESS [
>>>>>>>>>>>>       8.041 s]
>>>>>>>>>>>> [INFO] Mahout Core .......................................
>>>>>>>>>>>> SUCCESS [
>>>>>>>>>>>>       8.378 s]
>>>>>>>>>>>> [INFO] Mahout Integration ................................
>>>>>>>>>>>> SUCCESS [
>>>>>>>>>>>>       1.030 s]
>>>>>>>>>>>> [INFO] Mahout Examples ...................................
>>>>>>>>>>>> FAILURE [
>>>>>>>>>>>>       5.325 s]
>>>>>>>>>>>> [INFO] Mahout Release Package ............................
>>>>>>>>>>>> SKIPPED
>>>>>>>>>>>> [INFO] Mahout Math/Scala wrappers ........................
>>>>>>>>>>>> SKIPPED
>>>>>>>>>>>> [INFO] Mahout Spark bindings .............................
>>>>>>>>>>>> SKIPPED
>>>>>>>>>>>> [INFO]
>>>>>>>>>>>> ------------------------------------------------------------
>>>>>>>>>>>> ------------
>>>>>>>>>>>> [INFO] BUILD FAILURE
>>>>>>>>>>>> [INFO]
>>>>>>>>>>>> ------------------------------------------------------------
>>>>>>>>>>>> ------------
>>>>>>>>>>>> [INFO] Total time: 24.630 s
>>>>>>>>>>>> [INFO] Finished at: 2014-03-12T16:38:08+01:00
>>>>>>>>>>>> [INFO] Final Memory: 101M/1430M
>>>>>>>>>>>> [INFO]
>>>>>>>>>>>> ------------------------------------------------------------
>>>>>>>>>>>> ------------
>>>>>>>>>>>> [ERROR] Failed to execute goal
>>>>>>>>>>>> org.apache.maven.plugins:maven-assembly-plugin:2.4:single (job)
>>>>>>>>>>>> on
>>>>>>>>>>>> project
>>>>>>>>>>>> mahout-examples: Failed to create assembly: Error creating
>>>>>>>>>>>> assembly
>>>>>>>>>>>> archive
>>>>>>>>>>>> job: IOException when zipping com/ibm/icu/ICUConfig.properties:
>>>>>>>>>>>> invalid LOC
>>>>>>>>>>>> header (bad signature) -> [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/
>>>>>>>>>>>> MojoExecutionException
>>>>>>>>>>>> [ERROR]
>>>>>>>>>>>> [ERROR] After correcting the problems, you can resume the build
>>>>>>>>>>>> with
>>>>>>>>>>>> the
>>>>>>>>>>>> command
>>>>>>>>>>>> [ERROR]   mvn <goals> -rf :mahout-examples
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>   It does the exact same thing when I try typing mvn clean
>>>>>>>>>>>>
>>>>>>>>>>> package in
>>>>>>>>>>> terminal, but when I try it as root, it works, so it might be an
>>>>>>>>>>> issue
>>>>>>>>>>> with
>>>>>>>>>>> the permissions however I fail to see where (I did a chown -R on
>>>>>>>>>>> my
>>>>>>>>>>> entire
>>>>>>>>>>> home folder just to be on the safe side and it still fails).
>>>>>>>>>>>
>>>>>>>>>>> Anyone had the same problem ? Any idea about how to fix it ?
>>>>>>>>>>>
>>>>>>>>>>> Kévin Moulart
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

Reply via email to