There are Springfox implementation of the Swagger 2 specification and Swagger Maven Plugin. What's the difference between them? When should I prefer one over another?
Swagger maven plugin generates the swagger specification from Java annotations.
Springfox generates a whole web-based UI from Java annotations, with documentation, samples and functionality to try the operations out.