Created
October 12, 2023 06:20
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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