Ask a Question

Maven build fails

SOLVED
sergioalifano
Occasional Contributor

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

 

2 REPLIES 2
nmrao
Community Hero

Looks you are trying to build it for your self and running into issue. Not sure into the details.

Alternatively, you can download the prebuilt jar file from below location, so that you can proceed with your work.

https://mvnrepository.com/artifact/io.swagger/swagger-codegen-cli
Use 2.4.0 version


Regards,
Rao.
sergioalifano
Occasional Contributor

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

Downgrading to version 8 fixed the issue.

cancel
Showing results for 
Search instead for 
Did you mean: