krasserm / grails-jaxrs

JAX-RS Plugin for Grails
http://code.google.com/p/grails-jaxrs/
Apache License 2.0
50 stars 48 forks source link

jaxrs:0.10 Error with Grails 2.3.5 #45

Closed confile closed 10 years ago

confile commented 10 years ago

I tried compile ':jaxrs:0.10' in a plain new Grails 2.3.5 project.

This is the error I get:

|Loading Grails 2.3.5
|Configuring classpath
Error |
Resolve error obtaining dependencies: The following artifacts could not be resolved: org.restlet.gae:org.restlet:jar:2.1.4, org.restlet.gae:org.restlet.ext.servlet:jar:2.1.4, org.restlet.gae:org.restlet.ext.json:jar:2.1.4: Could not find artifact org.restlet.gae:org.restlet:jar:2.1.4 in grailsCentral (http://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
Error |
Resolve error obtaining dependencies: The following artifacts could not be resolved: org.restlet.gae:org.restlet:jar:2.1.4, org.restlet.gae:org.restlet.ext.servlet:jar:2.1.4, org.restlet.gae:org.restlet.ext.json:jar:2.1.4: Could not find artifact org.restlet.gae:org.restlet:jar:2.1.4 in grailsCentral (http://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
Error |
Resolve error obtaining dependencies: The following artifacts could not be resolved: org.restlet.gae:org.restlet:jar:2.1.4, org.restlet.gae:org.restlet.ext.servlet:jar:2.1.4, org.restlet.gae:org.restlet.ext.json:jar:2.1.4: Could not find artifact org.restlet.gae:org.restlet:jar:2.1.4 in grailsCentral (http://repo.grails.org/grails/plugins) (Use --stacktrace to see the full trace)
Error |
The following artifacts could not be resolved: org.restlet.gae:org.restlet:jar:2.1.4, org.restlet.gae:org.restlet.ext.servlet:jar:2.1.4, org.restlet.gae:org.restlet.ext.json:jar:2.1.4: Could not find artifact org.restlet.gae:org.restlet:jar:2.1.4 in grailsCentral (http://repo.grails.org/grails/plugins)
|Run 'grails dependency-report' for further information.
confile commented 10 years ago

You should add to your docu that one has to add the repository:

mavenRepo "http://maven.restlet.org/"
``
michaelrice commented 10 years ago

@confile its on the install instructions on the wiki https://github.com/krasserm/grails-jaxrs/wiki/Installation-Instructions

confile commented 10 years ago

I am sorry I overlooked it.

davidecavestro commented 10 years ago

We are trying to find a way to make the restlet (and jersey) maven dependency optional. Suggestions welcome :-) In the meantime you have to explicitly declare it.

arimus commented 10 years ago

Btw, it's mentioned in a section labeled "A note for users of the Restlet implementation". Docs should probably be updated to indicate that you need to declare the repo, even if the user does not intend to use the restlet implementation.

aelsaman commented 10 years ago

thanks for clarifying ....

davidecavestro commented 10 years ago

I've just refined the note at https://github.com/krasserm/grails-jaxrs/wiki/Installation-Instructions