18

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.

Atma
  • 25,661
  • 50
  • 173
  • 276
  • They might not upload artifacts into repo1. Have you tried adding their repository to your POM as per: http://www.restlet.org/downloads/maven ? – millimoose Jun 23 '12 at 23:19

4 Answers4

29

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!

Matthew Buckett
  • 3,044
  • 1
  • 29
  • 25
Gonzalo
  • 1,106
  • 2
  • 12
  • 21
  • 2
    I still have the missing artifact exception, even when I declare the repo in my pom.xml. – Tony Feb 01 '13 at 16:22
  • Had exactly the same problem, and it didn't fix. Also ended up not using the maven dependencies and embedding the .jar files. I should mention that I also did cleaning, used Eclipse m2e and the command line and that I'm working in a Windows VM in parallels, if that explains anything more. Also I could easily access the webresources that Maven should have found from my browser, and all other artifacts were found and downloaded without problems. I guess this is a rare issue, but it has hit me and there was no fix. – Akku Sep 12 '13 at 13:24
  • FYI: After a Windows update and restart, everything just worked. I guess this is a bug in Maven that is hard to reproduce. – Akku Sep 13 '13 at 09:20
1

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>
Sekhar Ray
  • 31
  • 1
0

Use the given mirrors in this

These mirrors are up to date so no need to worry about the versions and so on..

Edit settings.xml in maven installation location to add mirrors.

<settings>
  <mirrors>
     <mirror>
       <id>mygrid-restlet</id>
       <url>http://www.mygrid.org.uk/maven/restlet/maven.restlet.org</url>
       <mirrorOf>maven-restlet</mirrorOf>
     </mirror>
  </mirrors>
 </settings>

assuming that the POMs using the original repository uses:

<repository>
   <id>maven-restlet</id>
   <name>Public online Restlet repository</name>
   <url>http://maven.restlet.org</url>
</repository>
prime
  • 11,246
  • 11
  • 75
  • 112
0
<!-- https://mvnrepository.com/artifact/com.softlayer.api/softlayer-api-client -->
<dependency>
    <groupId>com.softlayer.api</groupId>
    <artifactId>softlayer-api-client</artifactId>
    <version>0.1.0</version>
</dependency>