I suggest repackaging this as a jar so it can be reused and added to other tooling as a direct dependency. The war file would be a thin veneer over the Jar. As a direct dependency,
other tools can call it. For example, in our toolchain, we might not want to run swagger-codegen
unless the input passes swagger-validator . In such cases, the input file might not be at a URL
that the swagger-validator web service can access.
I suggest repackaging this as a jar so it can be reused and added to other tooling as a direct dependency. The war file would be a thin veneer over the Jar. As a direct dependency, other tools can call it. For example, in our toolchain, we might not want to run swagger-codegen unless the input passes swagger-validator . In such cases, the input file might not be at a URL that the swagger-validator web service can access.