I'm following the README file from the github repo.
When I run the commands:
git clone https://github.com/swagger-api/swagger-codegen cd swagger-codegen mvn clean package
I have the following error
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (test-testng) on project swagger-codegen: There are test failures.
As a result, the swagger-codegen-cli.jar file is missing so I can't run it to generate the code.
What am I doing wrong? Is it just me?
P.S. I tested it on MacOS and Windows10
Solved! Go to Solution.
Re: Maven build fails
Alternatively, you can download the prebuilt jar file from below location, so that you can proceed with your work.
Use 2.4.0 version