Skip to content

Instantly share code, notes, and snippets.

@danilopiazza
Created October 12, 2023 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danilopiazza/547ca02676d3449890d9bb490f505bd5 to your computer and use it in GitHub Desktop.
Save danilopiazza/547ca02676d3449890d9bb490f505bd5 to your computer and use it in GitHub Desktop.
Generate Java classes from a WSDL file using jaxb2-maven-plugin and Java EE JAXB
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>2.5.0</version>
<executions>
<execution>
<id>xjc</id>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<sourceType>WSDL</sourceType>
<sources>
<source>${project.basedir}/src/main/wsdl</source>
</sources>
<xjcSourceExcludeFilters>
<filter implementation="org.codehaus.mojo.jaxb2.shared.filters.pattern.PatternFileFilter">
<patterns>
<pattern>\.xsd</pattern>
</patterns>
</filter>
</xjcSourceExcludeFilters>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment