sts4 icon indicating copy to clipboard operation
sts4 copied to clipboard

Metadata for properties in maven project dependencies not parsed

Open kdvolder opened this issue 3 years ago • 0 comments

Describe the bug

When you have a maven project that depends on another maven project and the second project contains spring properties defined in @ConfigurationPoperties, these properties in the dependencies are not being parsed.

To Reproduce

Import spring-boot-language server project and all its dependencies into workspace.

Open the launch config editor for the language server and then open the additional properties embedded editor. Now try adding a property like languageserver.standalone or languageserver.standalone-port.

There is no content assist to help with that.

I have done a few things to try and make it work, including rebuilding all the project (Project >> Clean) and restarting the language server. But to no avail. I have checked the metadata file here: commons-language-server/target/classes/META-INF/spring-configuration-metadata.json` and the file is there and seems to contain the right metadata. However for some reason the language server is not parsing that file. For properties defined in the project itself things are working correctly. So this likely has something to do with the fact that the properties come from a project dependency.

Sample

The spring-boot-language server project itself is the sample to reproduce this with.

kdvolder avatar Jan 27 '22 19:01 kdvolder