2

I'm trying to import Mahout's maven resource to eclipse, but i meet these errors:

enter image description here

I have tried google but it doesn't help.

Eclipse : Helios Service Release 1

Maven : External Maven 3.

WoooHaaaa
  • 19,732
  • 32
  • 90
  • 138
  • Did you ever figure out how to deal with this? I haven't had any success with the answers posted, and if you've figured it out it would be great if you posted what you've found. – David Parks Aug 30 '12 at 10:19

3 Answers3

1

Edit: If I try to play with latest stable release ( Mahout 0.7 ) and not the latest snapshot that the official site recommends for downloading, I experience the same error.

Follow step-by-step this link: https://cwiki.apache.org/MAHOUT/buildingmahout.html

After doing this and re-importing mahout, these errors you noticed go away.

Notice: Before compiling the code in the right way (as stated at the link above), I have followed the instructions from here:

http://domengrabec.wordpress.com/2010/12/14/installing-maven-on-eclipse/

Q: If anyone could help me with this related issue: Include classes of Mahout math libraries of both core & math folders - Eclipse - Hadoop , I would be grateful.

Community
  • 1
  • 1
user1519128
  • 131
  • 2
  • 7
  • I was not successful at getting this to import after doing all of the maven install and compile operations suggested on cwiki.apache.org. – David Parks Aug 30 '12 at 09:21
  • What exactly was your problem? – user1519128 Aug 30 '12 at 13:05
  • I performed all of the command line maven install/compile operations, but doing a "Maven project import" came up with the same error. I finally just did a mvn eclipse:eclipse install and imported it as an eclipse project. I guess I'm kind of new to Maven, so the variations between plugins and command line and all seem very complex. – David Parks Aug 30 '12 at 23:57
  • Sorry, I have no idea on how to fix this if you have imported Mahout 0.7 and followed exactly the above instructions.. :/ – user1519128 Aug 31 '12 at 22:46
0

I think what you need is to build mahout in a different way, first install m2e plugin for eclipse, then you can create maven project. You can make the run configuration (package) after that to make sure everything is fine.

The important part is that you have the pom.xml in the project so you have to add the dependencies of mahout that you want.

You can get the dependencies from searching on google " name of the dependency in mahout api".

gnat
  • 6,213
  • 108
  • 53
  • 73
mamdouh alramadan
  • 8,349
  • 6
  • 36
  • 53
0

i solved it by manually applying the patch in https://issues.apache.org/jira/browse/MAHOUT-1043 to 0.7 sources (changes pom.xml files and src/conf/driver.classes.conf )

just one note, do not remove the groupid in distribution/pom.xml

launch an external mvn eclipse:clean and update the projects. All errors are gone when workspace is rebuilt

Iosu S.
  • 154
  • 11