The following command uses Maven to download the Swagger Codegen tool.
mvn dependency:copy -Dartifact=io.swagger:swagger-codegen-cli:2.2.2
-DoutputDirectory=. -Dmdep.stripVersion=true