Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated classes not found #747

Open
nickyhuyskens opened this issue Jan 28, 2025 · 0 comments
Open

Generated classes not found #747

nickyhuyskens opened this issue Jan 28, 2025 · 0 comments

Comments

@nickyhuyskens
Copy link

LSP client configuration

I have multiple projects at my job where we have the following example configuration in our pom.xml (maven projects)

xml <plugin> <groupId>io.swagger.codegen.v3</groupId> <artifactId>swagger-codegen-maven-plugin</artifactId> <version>${swagger-codegen-maven-plugin.version}</version> <executions> <execution> <id>swagger-code-gen-rest-internal</id> <phase>generate-sources</phase> <goals> <goal>generate</goal> </goals> <configuration> <inputSpec>${openapi.rest-api.example-service}</inputSpec> <language>spring</language> <generateModels>true</generateModels> <generateModelTests>false</generateModelTests> <generateApis>false</generateApis> <generateSupportingFiles>false</generateSupportingFiles> <configOptions> <jakarta>true</jakarta> <java8>true</java8> <dateLibrary>java8</dateLibrary> <library>spring-boot</library> <hideGenerationTimestamp>true</hideGenerationTimestamp> <interfaceOnly>true</interfaceOnly> <useBeanValidation>true</useBeanValidation> <hateoas>true</hateoas> <useTags>true</useTags> <throwsException>true</throwsException> <modelPackage>some.example.service.rest.model</modelPackage> <serializableModel>true</serializableModel> </configOptions> </configuration> </execution> </executions> </plugin>
In intellij all generated classes are found, in nvim with jdtls I get The import xxx can't be resolved.
Anyone knows how to fix this?

Eclipse.jdt.ls version

1.44

Steps to Reproduce

I dont have a public project to reproduce atm

Expected Result

Generated classes are found.

Actual Result

Generated classes are not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant