I need to generate sources using wsimport, and I assume that it should go to / target / generated -sources / wsimport, and not / src / main / java.
This is a correct guess.
The problem is that wsimport needs a destination folder created before it executes, and it does not work. Can I create this directory first using any maven plugin. I can do this with ant, but I prefer to store it in POM.
I never noticed this problem (and would consider it as an error, the plugin should take care of such things).
The strange part is that WsImportMojo seems to do what it needs by calling File#mkdirs() :
public void execute() throws MojoExecutionException {
Could you show how you call the plugin and its configuration?
source share