On 20 March 2014 01:44, Leandro Doctors <[email protected]> wrote:
> Excerpts from:
>
> 2014-03-20 0:09 GMT+01:00 Jona Christopher Sahnwaldt <[email protected]>:
>> On 19 March 2014 04:57, Dimitris Kontokostas <[email protected]> wrote:
>>> On Mar 19, 2014 3:37 AM, "Jona Christopher Sahnwaldt" <[email protected]>
>
> (All: Sorry for my late reply: I have only read your message just now.
> I was trying to run the extractor with either Netbeans 7.4 or IntelliJ
> 13.1 -with no avail...)
>
>
>>>> https://github.com/dbpedia/extraction-framework/wiki/Setting-up-eclipse
>>> @leandro, would you mind writing some eclipse instructions on the page Jona
>>> pointed?
>
> Sure. I will do it tomorrow, once I'm awake :-)
>
>> I found my old copy of the howto:
> https://docs.google.com/document/d/1EiluZNT35Vne5kGMVRqLfVAeG_yjUhwZK21w6Ylx4eU/
>>
>> Just replace the Mercurial stuff by git, and upgrade the Eclipse and
>> Scala versions.
>
> Thanks! I will use it as a base to update the wiki page.
> For the moment, I already modified the "Setting IDEA" page (a class
> package was incorrect).


I found a few more notes from my latest installation (spring 2013,
version numbers etc. may be outdated). If you know git and Eclipse,
they should be pretty straight-forward.


Checkout DBpedia code:

$ git clone [email protected]:dbpedia/extraction-framework.git

$ cd extraction-framework

If you only want to work on the DBpedia dump code (as I did), delete
live and wiktionary modules from parent pom.xml.

Now let Maven download the required JARs and sources (without them,
Eclipse can't compile the stuff):

$ mvn eclipse:eclipse -DdownloadSources=true

This also re-generates the Eclipse config files, but we don't want
that (because the files in the repo are better), so we reset the
config files (but not the parent pom.xml):

$ git checkout -- core/ dump/ scripts/ server/

Install Eclipse:

Check this page to choose the appropriate Eclipse version:
http://scala-ide.org/download/current.html
Scala in Eclipse 3.8+ was "experimental" in 2013 - I used Eclipse 3.7

http://archive.eclipse.org/eclipse/downloads/, 3.7
- Platform Runtime Binary
- JDT Runtime Binary (update site archive)

edit eclipse.ini
-Xms64m
-Xmx1024m

Install Eclipse plugins from this site:
http://download.scala-ide.org/sdk/e37/scala210/stable/site
select only Scala IDE for Eclipse (also adds JDT Weaving)

Also install these plugins:

Eclipse EGit
Eclipse XML Editors and Tools

Finally, set the M2_REPO classpath variable and import the DBpedia
projects into Eclipse.

Good luck!


>
>>>> I very much prefer Eclipse over IDEA. I used a minimal Eclipse
>>>> installation with as few plugins as possible (basically only git, Java
>>>> and Scala) and never used the Maven plugin m2e because it seems buggy
>>>> and has a lot of dependencies. I prefer to use Maven from the command
>>>> line.
>
>>>> My advice: don't use m2e. Use Eclipse with as few plugins as possible.
>
>>> I don't use eclipse so I can't contribute much but Jona has a point here.
>>> This is how I use the code in intellij as well.
>
> I did not know there was such a conflict between m2e and pure maven...
> I will certainly use maven from the command line from now on. I'm
> unistalling m2e right now...
>
> Thanks a lot to both Jona and Dimitris for your answers.
> I will document my findings on the wiki.
>
>
>>> @developers, can someone that uses eclipse review leandro's pull request?
>>
>> I looked at it and I don't think it's a good idea. With these changes,
>> the project probably won't work anymore in Eclipse if m2e is not
>> installed, and there are a lot of new classpath entries that aren't
>> useful. Probably generated by m2e. Sorry.
>
> It's OK. Newbie's mistake :-)
>
> Cheers,
> Leandro

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Dbpedia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-developers

Reply via email to