loic911 / Rest-api-doc

MIT License
21 stars 32 forks source link

Grails 3.0.11 command 'rest-api-doc' not found #69

Open tjeerdnet opened 8 years ago

tjeerdnet commented 8 years ago

I am using Grails 3.0.11 and the documentation of RestApiDoc states that I should include the plugin by adding the line:

compile ":rest-api-doc:0.6.1"

This does not work in Grails 3.0.11, according to the documentation it should be like this:

compile "org.grails.plugins:rest-api-doc:0.6.1"

Did that and the plugin is downloaded and in IntelliJ (14.1.1) I can see the library in my list of dependencies. However if I try to run the command to create the REST-documentation it fails:

grails rest-api-doc | Error Command not found rest-api-doc Did you mean: test-app or test or stop-app?

Do I have to run the command via Gradle and/or how is it possible to get it working Grails 3+?

geektortoise commented 8 years ago

+1

watta90 commented 8 years ago

I run grails 3.1.0M1 but I'm not even able to find the plugin for download. This is my error message in IntelliJ 14.1.4:

Warning:<i><b>root project 'webmanager': Web Facets/Artifacts will not be configured</b>
Details: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':runtime'.
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find org.grails.plugins:rest-api-doc:0.6.1.

And if I look in the repositories that gradle is searching in to find the plugin I don't find it either. Are you sure that you did download the plugin and not just IntelliJ that missed to send out an error message?

tjeerdnet commented 8 years ago

@vatanbytyqi be sure that you have included the right repositories, the ones I included in my Gradle build:

repositories {
    mavenLocal()
    maven { url "https://repo.grails.org/grails/core" }
    maven { url "https://repo.grails.org/grails/repo" }
}
watta90 commented 8 years ago

@tjeerdnet thanks! I was missing the grails/repo. I have the same problem as you now, Command not found.

If I list all the plugins with

grails list-plugin

Then I'm not able to see rest-api-doc listed there. Same for you?

mybrycerRob commented 8 years ago

Any movement on this issue? Would love to have rest-api-doc working for Grails 3.*.

MrYZD commented 6 years ago

+1