cxf-codegen-plugin doesn't generate sources

后端 未结 3 1914
说谎
说谎 2021-01-01 18:33

I\'m trying to get the cxf-codegen-plugin to generate sources from my wsdl file. When calling wsdl2java manual the desired classes are generated but when using

相关标签:
3条回答
  • 2021-01-01 19:00

    That looks very much like the way I (successfully) configure that plugin in one of my projects; I would expect that to work. (I believe you can omit the <sourceRoot>; the default setting for that is the one you've stated.)

    The only thing I can think of would be if you had put that plugin configuration in either a non-active Maven profile or (more likely) in the <pluginManagement> section instead of the straight <plugins> section; the pluginManagement section overrides aspects of the configuration of plugins, but doesn't actually enable them for use. (It does however affect explicit usage; I know you don't want to do that.)

    0 讨论(0)
  • 2021-01-01 19:07

    In my case as long as I had the old target directory (defined in <sourceRoot>/path/to/target</sourceRoot>) nothing was being generated. Only after deleting the target folder manually plugin actually started to generate the sources.

    0 讨论(0)
  • 2021-01-01 19:09

    In my case at least, I thought it wasn't generating source code as well, but it actually was. The issue was that the folder target/generated/cxf was designated by Eclipse as a source folder, which I didn't do manually. So the source was toward the top of my project, in package structure, not in the folder structure below, which is where I was looking and expecting it to be.

    0 讨论(0)
提交回复
热议问题