I started to had that problem on totally unrelated lib upate (not in the scanned path, etc) and I think I would have never found the problem without that thread and that message in particular.But these files are in the target folder because they are generated out of xsds.
Jackson Generate Schema Without Ref Code Generation OccursCan you check in what Maven build phase the code generation occurs If that happens only after the schema generation, you know why its not finding anything. Besides the reproduction set it would be good if you could try to use the. This way we know whether it is a generic classloader thing, i.e. It indeed builds successfully by default, and when I enable the it starts failing. But I can not find it in the target folder, and neither are there any class files for the model.dto package. Jackson Generate Schema Without Ref Generator Is InvokedThe json schema generator is invoked before the model.dto classes are generated. Either generate the model.dto classes earlier, or the schema later. They declare the correct package but are in the schemamodeldto folder. Though the following did not do the trick for me (the source folder was added, but the classes werent picked up). These classes i convert to json schema (with all the validation stuff your cool plugin supports) and use this schema in the open api spec. Im happy to fix any particular issue that can be identified but as-is I dont know what needs to be donefixed. Jackson Generate Schema Without Ref How To Do MavenThe example could cover how to do maven json schema generation out of a package. I still believe they are simply not being added correctly to the plugins classpath then. INFO Generating JSON Schema for class model.entity.group.Group. INFO - Writing schema to file: C:UsersjlabrieIdeaProjectsschematestsrcmainresourcesschemageneratedjsonGroup.json. INFO - Writing schema to file: C:UsersjlabrieIdeaProjectsschematestsrcmainresourcesschemageneratedjsonUser.json. INFO - Writing schema to file: C:UsersjlabrieIdeaProjectsschematestsrcmainresourcesschemageneratedjsonpackage-info.json. The Group class extends BasicEntity, which is not in the model.entity,Group package. But in the mean time I will make a PR so we have the issue fixed. Tomorrow. Bye.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |