Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restlet Maven Dependencies

Tags:

maven

restlet

Does anyone know what the RESTLET maven dependencies are?

None of the entries on the site work. I had to end up installing jars to make it work.

like image 239
Atma Avatar asked Jun 23 '12 23:06

Atma


Video Answer


2 Answers

add this repo:

<repositories>
    <repository>
        <id>maven-restlet</id>
        <name>Public online Restlet repository</name>
        <url>https://maven.restlet.talend.com/</url>
    </repository>
</repositories>

Then include dependencies with your version:

<dependency>
        <groupId>org.restlet.jee</groupId>
        <artifactId>org.restlet</artifactId>
        <version>${restlet.version}</version>
</dependency>

Use:

<properties>
    <restlet.version>2.0.14</restlet.version>
</properties>

to define restlet version or just put whichever version you like. Hope it helps!

like image 183
Gonzalo Avatar answered Nov 23 '22 11:11

Gonzalo


Sometimes, the maven dependencies are not downloaded automatically. You have to force it using mvn compile.

Here is a reference to sample restful service that uses following dependencies :

http://topjavatutorial.com/frameworks/spring/spring-rest/standalone-restful-service-using-restlet-framework/

    <dependency>
        <groupId>org.restlet.jse</groupId>
        <artifactId>org.restlet</artifactId>
        <version>2.1-RC2</version>
    </dependency>
    <dependency>
        <groupId>org.restlet.jse</groupId>
        <artifactId>org.restlet.ext.simple</artifactId>
        <version>2.1-RC2</version>
    </dependency>
like image 41
Sekhar Ray Avatar answered Nov 23 '22 09:11

Sekhar Ray