Maven build fails
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2019
01:21 PM
01-04-2019
01:21 PM
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
Solved! Go to Solution.
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019
10:11 AM
01-14-2019
10:11 AM
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.
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019
11:17 AM
01-14-2019
11:17 AM
I've actually figured this out. I had Java 10 installed on my computer.
Downgrading to version 8 fixed the issue.
