It maybe 4 years overdue, but thanks to issue 7 on swagger-jaxb I have finally released swagger-jaxb 1.5 into Maven Central. You can now all use it in your favourite build tool that supports m2 repositories, or build it yourself from the repository. ( That is, if you use Java 8 )
swagger-jaxb is a jaxb plugin that adds @ApiModel and @ApiModelProperty to your generated classes. You could use it with the jaxb2-maven-plugin, see the repo for information.
Please note this plugin is in development phase !! Currently only available with maven through the sonatype snapshot repositories. It is not complete and there are some open issues, but you can already use it.
Is all going well ?
Tests run in separate project, but do they work ? see here for the code https://github.com/redlab/swagger-jaxb-tck
How to use it?
build the plugin with maven and install it in your local repo or get it from an external repo like sonatypes snapshot repository
add the plugin to your classpath and use -swaggify on your jaxb command line or use it with jaxb2-maven-plugin
The plugin dependencies are needed until the JAXB2 plugin is updated to use the latest version of jaxb-xjc and jaxp. Otherwise the code generation will fail due to missing methods. Note: I think this will change the generated code for boolean getters/setters, not fully sure I must verify it to be sure 🙂
post an issue at github if you really want dev version in Maven Central.