Merge pull request #10498 from heww/fix-swagger-client

build(swagger): change download link of swagger-codegen-cli
This commit is contained in:
Wang Yan 2020-01-16 11:29:41 +08:00 committed by GitHub
commit 1ecc17311c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -473,7 +473,7 @@ down:
swagger_client: swagger_client:
@echo "Generate swagger client" @echo "Generate swagger client"
wget -q http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.3.1/swagger-codegen-cli-2.3.1.jar -O swagger-codegen-cli.jar wget -q https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.3.1/swagger-codegen-cli-2.3.1.jar -O swagger-codegen-cli.jar
rm -rf harborclient rm -rf harborclient
mkdir harborclient mkdir harborclient
java -jar swagger-codegen-cli.jar generate -i api/harbor/swagger.yaml -l python -o harborclient java -jar swagger-codegen-cli.jar generate -i api/harbor/swagger.yaml -l python -o harborclient