Forum Discussion

sergioalifano's avatar
sergioalifano
Occasional Contributor
6 years ago

Maven build fails

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

 

  • I've actually figured this out. I had Java 10 installed on my computer.

    Downgrading to version 8 fixed the issue.