Phil,
I haven't yet made any solution work, but I am hopeful about one approach
I'm taking and when/if I get it to work, I'll post about it.
The approach that I'm most optimistic about is to use the Swagger Maven
Plugin. Our project being Ant-based, I don't have a POM file. And I
don't want to try and create a POM file that duplicates all the
dependencies as that would be non-DRY. However, I have seen some
articles about how to tell Maven to use a directory of jars (such as "/lib"
in he project) as if it were a sorta Maven repository. This is not quite
the same as a Maven "internal repository", and i's of course not a
"recommended practice". But being as here's no really good way to do this,
the "least bad" way seems reasonable.
Another approach you can try is that there is a git hub project for a
Swagger Javadoc doclet. I don't think that project has the same
traction/community-endorsement that the Maven plugin has, but the
classpath/dependency problem there is might be easier to solve. I
abandoned that approach because of the lower level of traction, but also
because my project uses jibx, which introduces a sort of "pre-compile"
dependency that produces .class files prior to the main "compile" portion
of the build.
Like I said, I'll post when I get something to work.
db
On Tuesday, July 25, 2017 at 9:56:42 AM UTC-4, Phil wrote:
>
> Hi David,
>
> Have you found a good solution yet? I am also looking for exactly the
> same. I was thinking that there is an equivalent to java doc where I can
> create the doc offline when I need it.
>
> Phil
>
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.