title: Configure Swagger UI (Jersey REST API with Maven/Tomcat)
body: <p>I have found similar Stack Overflow posts for configuring Swagger + SwaggerUI + Jersey, but almost all of these use Spring and I have not been able to find a solution for what I am trying to do.</p>
  
  <p>I have Swagger + Jersey working, and have copied the <code>swagger-ui/dist</code> folder from: <a href="https://github.com/swagger-api/swagger-ui" rel="nofollow">https://github.com/swagger-api/swagger-ui</a> to my <code>webapp</code> directory, and have edited <code>swagger-ui/dist/index.html</code> file to point to my <code>swagger.json</code> output. I can properly access Swagger UI at <code>http://localhost:{port}/{base-path}/dist/index.html</code></p>
  
  <p>However, I do not want to have to copy the pre-build <code>dist</code> files to my webapp directory every time I need to fetch updates. I would like to automate this with Maven (which I am new to as well as Jersey/Swagger), and found this dependency online: <a href="https://mvnrepository.com/artifact/org.webjars/swagger-ui/2.0.12" rel="nofollow">https://mvnrepository.com/artifact/org.webjars/swagger-ui/2.0.12</a></p>
  
  <p>However, I do not understand how to configure the path from my webserver to this webjar dependency.</p>
  
  <p>To recap, I have Swagger UI working on my local machine, but only by manually copying the pre-build files to my <code>webapp</code> directory and would like some way to automate this (I have found solutions using Spring, but I am not using this). </p>