I am trying to generate java classes from a wsdl using jaxb2-maven-plugin:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<id>xjc</id>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<packageName>es.sescam.sofos.registrounico</packageName>
<sourceType>wsdl</sourceType>
<sources>
<source>src/main/resources/registrounico.wsdl</source>
</sources>
<outputDirectory>target/generated-sources</outputDirectory>
<clearOutputDir>false</clearOutputDir>
</configuration>
</plugin>
You can find the WSDL that I am using on this link
When I compile in Eclipse using the goals -U clean jaxb2:xjc
everything seems to be OK with no errors, but the source java code is not generated in the target folder or anywhere...
What am I doing wrong?