Configure new project - UCM-GAIA/RecoLibry-Core GitHub Wiki
RecoLibry-Core is a library to build recommender systems in JAVA. Before to develop a new recommender system, you should check that your computer has the following software:
- Java SDK 8
- Apache Maven
- IDE for Java like Eclipse o IntelliJ
When we check that our computer applies these requirements, we can create a project to build a recommender system.
In this section, we explain how create a new Maven project and how we can include the RecoLibry-Core library in our project.
-
Eclipse:
Open Eclipse IDE and go to File>New>Project… option in the menu. Next, it shows a window like this:
In this window, we select Maven>Maven Project and the button Next to make a new maven project. In the next window, we can select the project location in our computer. For this example, we select th Use default Workspace location option and we press the Next button.
Now, Eclipse show us diferents Maven projetcs templates that we can create. To create a simple project, we will select the template with the value of artifact id. is maven-archetype-quickstart. Then, we press the Next button.
Finally, we insert the Group Id and Artifact Id values for our project. Insert this information and press the Finish button.
When the project is created, you can watch a project structure like this:
Next, we need to add RecoLibry-Core as a dependency of our project. To do that, we edit the pom.xml
file and, into dependencies
tag, we include the next code:
<dependency>
<groupId>es.ucm.fdi.gaia</groupId>
<artifactId>RecoLibry-Core</artifactId>
<version>0.0.4</version>
</dependency>
When we add the dependency, we save the project and we update using Maven. Maven add all dependencies added in pom.xml
file. If RecoLibry-Core is added correctly, you can continue with the recommender system configuration.