I am trying to use "swagger-jaxrs-maven" plugin to generate RESTful API docs from the source code.
I followed this web site: swagger-jaxrs-maven
but maven complained that it can't find this plugin, so I searched it on maven central repository
It only finds it under groupId com.greensopinion.swagger. So I changed it accordingly.
But now I get this error:
[ERROR] Failed to execute goal com.greensopinion.swagger:jaxrs-gen:1.3.0:generate (default) on project treaty: Execution default of goal com.greensopinion.swagg er:jaxrs-gen:1.3.0:generate failed: Unable to load the mojo 'generate' in the plugin 'com.greensopinion.swagger:jaxrs-gen:1.3.0' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: com/greensopinion/swagger/jaxrsgen/SwaggerJaxrsGeneratorMojo : Unsupported major.mi nor version 52.0
I cleaned all my local maven repository and re-tried, it doesn't work.
My maven is 3.2.3 and JDK is 1.7.
My RESTful framework is Jersey2.17 with Jackson.
Any suggestion on how to make it work?