swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

swagger-codegen not working with Java 8

Open MKaimltech opened this issue 2 years ago • 1 comments

Description

Not able to build the swagger-codegen, shared the steps below.

Swagger-codegen version

I am using latest master branch.

Swagger declaration file content or url

https://github.com/swagger-api/swagger-codegen

image

Command line used for generation

I have below version of Maven and Java: Apache Maven 3.6.2 Java version: 1.8.0_321

Steps to reproduce

To build follow below steps:

git clone https://github.com/swagger-api/swagger-codegen cd swagger-codegen mvn clean package

Could some one help here?

Thanks in advance!!

MKaimltech avatar Aug 11 '23 14:08 MKaimltech

According to the Git page (https://github.com/swagger-api/swagger-codegen) if you want to build you need at least java 11. To use with Java 8 you need to get one of the releases from https://github.com/swagger-api/swagger-codegen/releases/. At least that's what I read from this: image

Lunatricky avatar Dec 04 '23 16:12 Lunatricky

To build project from source, as it's specified in documentation, you need to meet two requirements:

  • Java 11 +
  • At least Apache Maven 3.6.2

Closing the ticket.

micryc avatar Apr 29 '24 11:04 micryc