All the KeLP packages are released under Maven in our repositories.
Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting and documentation from a central piece of information.
For now, a custom repository is used to distribute the maven packages for the whole platform. To use KeLP it is necessary to specify the repository where the platform is located. In the pom.xml of a Maven project KeLP repositories can be specified with the following piece of code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
<repositories> <repository> <id>kelp_repo_snap</id> <name>KeLP Snapshots Repository</name> <releases> <enabled>false</enabled> <updatePolicy>always</updatePolicy> <checksumPolicy>warn</checksumPolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> <checksumPolicy>fail</checksumPolicy> </snapshots> <url>http://sag.art.uniroma2.it:8081/artifactory/kelp-snapshot/</url> </repository> <repository> <id>kelp_repo_release</id> <name>KeLP Stable Repository</name> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> <checksumPolicy>warn</checksumPolicy> </releases> <snapshots> <enabled>false</enabled> <updatePolicy>always</updatePolicy> <checksumPolicy>fail</checksumPolicy> </snapshots> <url>http://sag.art.uniroma2.it:8081/artifactory/kelp-release/</url> </repository> </repositories> |
A full version ok KeLP is available on maven in the package kelp-full. It includes all the modules that compose the library. To import the 2.1.0 version of kelp-full, you can use the following Maven dependency.
1 2 3 4 5 6 7 |
<dependencies> <dependency> <groupId>it.uniroma2.sag.kelp</groupId> <artifactId>kelp-full</artifactId> <version>2.1.0</version> </dependency> </dependencies> |
Maven allows also to import a subset of the packages. For example, if you need only to work with tree kernel functions, you can import only the kelp-additional-kernels package in your project.
For example, to import the 2.1.0 version of this package, the dependency specification to be added in your pom.xml is:
1 2 3 4 5 6 7 |
<dependencies> <dependency> <groupId>it.uniroma2.sag.kelp</groupId> <artifactId>kelp-additional-kernels</artifactId> <version>2.1.0</version> </dependency> </dependencies> |
For a complete example on how to import KeLP packages via Maven, please refer to the pom.xml that is contained in the kelp-full project, that can be found on GitHub.
NOTE: KeLP packages are meant to enable users to import only the needed dependencies for each project. For example, if one needs only to work with Online Learning algorithms it is sufficient to import the kelp-additional-algorithms package.