Other Editions
The Maven repository for Restlet is accessible from https://maven.restlet.talend.com and contains all Restlet JARs and third party dependencies that aren’t available in the main public Maven repository. It is automatically refreshed once a day if the build succeeds.
Sample POM for version 2.4
Each Restlet Framework project needs at least one dependency: the Restlet core module and we assume that you will use Jackson for JSON support. You also need to configure your Maven client to point to the dedicated Restlet repository. Just open and edit the pom.xml file for your project and add the following lines of text:
<repositories>
<repository>
<id>maven-restlet</id>
<name>Restlet repository</name>
<url>https://maven.restlet.talend.com</url>
</repository>
</repositories>
<properties>
<restlet-version>2.4.4</restlet-version>
</properties>
<dependencies>
<dependency>
<groupId>org.restlet.jse</groupId>
<artifactId>org.restlet</artifactId>
<version>${restlet-version}</version>
</dependency>
<dependency>
<groupId>org.restlet.jse</groupId>
<artifactId>org.restlet.ext.jackson</artifactId>
<version>${restlet-version}</version>
</dependency>
</dependencies>
Sample POM for version 2.5 RC1
Each Restlet Framework project needs at least one dependency: the Restlet core module and we assume that you will use Jackson for JSON support. As Restlet is now published into the Maven Central repository, just edit the pom.xml file for your project and add the following lines of text:
<properties>
<restlet-version>2.5-rc1</restlet-version>
</properties>
<dependencies>
<dependency>
<groupId>org.restlet.java</groupId>
<artifactId>org.restlet</artifactId>
<version>${restlet-version}</version>
</dependency>
<dependency>
<groupId>org.restlet.java</groupId>
<artifactId>org.restlet.ext.jackson</artifactId>
<version>${restlet-version}</version>
</dependency>
</dependencies>