title: How can I generate a swagger API specification from a JAX-RS (Jersey 2) application at build time?
body: <p>The <a href="https://github.com/swagger-api/swagger-core/wiki/Swagger-Core-Jersey-2.X-Project-Setup" rel="nofollow">swagger-core documentation</a> describes how to incorporate swagger into the application.  Annotations are scanned at runtime.</p>
  
  <p>Instead, I would like to statically generate the swagger API specification at build time.  Is this possible using swagger-core?</p>
  
  <p>EDIT: We are building using ant.</p>