Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tjeerdnet opened this issue Jan 23, 2016 · 6 comments
Open

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

tjeerdnet opened this issue Jan 23, 2016 · 6 comments

Comments

@tjeerdnet
Copy link

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
Copy link

+1

@watta90
Copy link

watta90 commented Jan 26, 2016

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
Copy link
Author

@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
Copy link

watta90 commented Jan 27, 2016

@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
Copy link

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

@MrYZD
Copy link

MrYZD commented Jun 14, 2018

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants