-
Notifications
You must be signed in to change notification settings - Fork 15
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
How to use/run it exactly? #9
Comments
It should produce a property file in your resources/classpath and you need to include the property file as a |
Well ...I don't see any properties file produced anywhere ...so I guess I'm missing something basic. IMHO this plugin would be fantastic ...it's kind of a pity that its usage is left in the dark. |
Ok, I'm one step further. I thought you have to either "run" the project normally, or to generate the javadoc to produce that file. It turns out you have to package it using I also had an empty Now I have the filled properties file ...but it is not yet used by swagger. That's probably the last step to find out. |
@dagnelies once you have the property file in the class path, its just a matter of declaring it as a property source. |
...Ok, I lastly got it to work. Following annotations must be added in the spring boot application:
And on the way to there, I had to first use Somehow, the whole process is fairly contrived at the moment. |
@dagnelies it shouldnt be, Ill take a look at it... re-opening, this ticket /c @neumaennl |
Hi, @dagnelies adding the doclet in the correct place in the maven pom (like you did) and then using |
It is possible. I can take a look |
I cant make it works
error:
|
@vanduc1102 seems like you're not able to resolve the artifact. Perhaps your plugin repositories doesnt include maven central |
@dilipkrish I have a similar issue as @vanduc1102.
Error when running
But I don't want to manually install it, if that is an option |
So, I have solved the problem. I had to import from
since Question: Should javadoc used on models be reflected in the api documentation by this plugin? |
@vladoltean try using 2.9.2. I believe 2.9.0 had trouble syncing with maven central |
@dilipkrish the problem is that |
Actually the current master depends on springfox-swagger2 2.9.2. So could a new release be published? |
Hi @dilipkrish, First, thanks for your work on SpringFox Javadoc :) I must say that I got the same problem than the others above with the dependency resolution of springfox-swagger2. Here is what I tried :
None of this works. What seems strange, is that with the 2 first cases, Maven won't be able to download springfox-swagger2:2.9.0, and in the third case, it downloads it, but springfox-javadoc still try to download springfox-swagger2:2.9.0 from the maven central, which fails, and breaks my build. Have you some news about this issue ? |
Same issue here, doesn't work with io.springfox:springfox-swagger2::2.9.2 (latest) |
It builds if you add this repository
But when you open swagger UI, then nothing has changed |
Maybe you can just reuse this project? @dilipkrish
Then it creates a folder with all the javadocs in JSON format, e.g.:
This is used by Auto REST Docs https://github.com/ScaCap/spring-auto-restdocs |
Any update on this? How can one set this up with SpringFox 3? |
Haven't had time to revisit this. Would love to get this up to speed. Any takers? |
So... like the README said, I added the
plugin
snippet to thepom.xml
.I added it in
Is that right?
I also got the following warning:
(execution: default, phase: process-classes)
By simply running the project (using spring boot), I still see no javadoc being used in swagger descriptions. I guess I'm missing a step but I'm a bit in the dark here. Could anyone please point me in the right direction?
The text was updated successfully, but these errors were encountered: