I have to generate sources using wsimport and i assume that it should go to /target/generated-sources/wsimport rather than /src/main/java.
The problem is that wsimport needs target folder created before execution and it fails. Can I create that dir first using any maven plugin. I can do it using ant but i prefer to keep it in POM.
Try using the
add source
goal of the build helper plugin:This is a correct assumption.
I never noticed this problem (and would consider it as a bug, a plugin has to take care of such things).
The weird part is that
WsImportMojo
seems to do what is has to by callingFile#mkdirs()
:Could you show how you invoke the plugin and its configuration?