I am facing this issue while generating java classes from wsdl and xsd.pls suggest.
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<!-- <version>0.13.2</version> -->
<executions>
<execution>
<id>schema1-generate</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<schemaLanguage>WSDL</schemaLanguage>
<wsdl>true</wsdl>
<forceRegenerate>true</forceRegenerate>
<schemaDirectory>src/main/wsdl</schemaDirectory>
<schemaIncludes>
<include>xyz.wsdl</include>
</schemaIncludes>
<generateDirectory>src/main/java</generateDirectory>
<generatePackage>package_name</generatePackage>
<clearOutputDir>false</clearOutputDir>
</configuration>
</execution>
Finally the below worked for me:
<dependency>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics-runtime</artifactId>
<version>0.9.4</version>
</dependency>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<!-- <version>0.13.2</version> -->
<execution>
<id>AnyId-schemas</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<schemaLanguage>XMLSCHEMA</schemaLanguage>
<forceRegenerate>true</forceRegenerate>
<generateDirectory>src/main/java</generateDirectory>
<generatePackage>packageName</generatePackage>
<schemaDirectory>src/main/wsdl</schemaDirectory>
<schemaIncludes>
<include>sourceOf the xsd</include>
</schemaIncludes>
</configuration>
</execution>