This repository has been archived by the owner. It is now read-only.

Setting up eclipse

Sandro edited this page Apr 9, 2017 · 10 revisions

for developing DBpedia Spotlight.

Eclipse Download

Download and install Eclipse. If you have questions about the supported Eclipse packages, read here: http://scala-ide.org/docs/current-user-doc/faq/index.html#what-eclipse-package-should-i-use

Download Scala IDE

Download the Scala IDE for Scala

Install Scala IDE

To install the Scala IDE into Eclipse, click Help > Install New Software > Add. Set the name as "Scala IDE", set the path to the folder you downloaded in the previous step and click OK. Select and install all items. Restart Eclipse after the installation and run the Setup Diagnostics with recommended settings. Make sure the heap size is at least 1G. To run the Setup Diagnostics, click Scala > Run Setup Diagnostics. After that, click Window > Open Perspective > Other > Scala.

Set up Maven

Now the maven integration plug-ins must be installed. To do this, click Help > Install New Software > Add. Set the name as "Maven for Scala", set the path to http://alchim31.free.fr/m2e-scala/update-site and click OK. Select and install all items and restart Eclipse after installation. This ought to embed Maven 3 into Eclipse. However, if the version of the embedded Maven is different, you must download and install Maven 3 outside Eclipse, and set Eclipse to use it. This can be done by clicking Window > Preferences > Maven > Installations > Add.

Install Scala IDE

To install the Scala IDE into Eclipse, click Help > Install New Software > Add. Set the name as "Scala IDE", set the path to the folder you downloaded in the previous step and click OK. Select and install all items. Restart Eclipse after the installation and run the Setup Diagnostics with recommended settings. Make sure the heap size is at least 1G. To run the Setup Diagnostics, click Scala > Run Setup Diagnostics. After that, click Window > Open Perspective > Other > Scala.

Set up Maven Integration for Eclipse

A plug-in to integrate Maven with Eclipse must be installed. To do this, click Help > Install New Software and select Indigo at the "work with" field. Search for "maven integration for eclipse" and install the plug-in that will be shown. Restart Eclipse after installation. Then you must download and install Maven 3 (outside Eclipse), and click (inside Eclipse) Window > Preferences > Maven > Installations > Add. Here you must select the root directory of the Maven you downloaded and installed.

Set up Maven Integration for Scala IDE

The maven plug-in installed in the previous step does not support Scala. For this reason, another plug-in must be installed. To do this, click Help > Install New Software > Add. Set the name as Maven for Scala, set the path to http://alchim31.free.fr/m2e-scala/update-site and click OK. Select and install Maven Integration for Scala IDE and restart Eclipse after installation.

Import and Build the Project (Both Eclipse Versions)

To import and build Spotlight into Eclipse, follow these steps:

Import the Project

After downloading Spotlight's source code, the project must be imported into Eclipse. This can be done by clicking File > Import > Maven > Existing Maven Projects, and by selecting the Spotlight project's root directory. This should load the whole project.

Build the Project

To build the project, right-click the 'spotlight' package, and click Run As > Maven Install. It should resolve all Maven dependencies. In case it does not, the project ought to be built with Maven, outside Eclipse. More about building the project and running the server with Maven here: https://github.com/dbpedia-spotlight/dbpedia-spotlight/wiki/Build-from-Source-with-Maven.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.