Generating swagger documentation from jar file for deployment
Hi all! New to this forum.
I am creating swagger documentation from annotated java classes using swagger core in a Spring Boot application.
Right now, I am only able to do this by constructing the java classes via another script and moving these files in to the src/main/java folder of the swagger spring boot project folder before executing a mvn compile to generate the swagger docs.
Question:
Is it possible to mvn package the swagger source project into a jar and use the deployed jar to produce swagger documentation instead?
This would allow me to avoid deploying the java project folder when I want to deliver this functionality to any other machine, essentially dealing only with input files, scripts/jars and a temp work folder.
Appreciate the help!