There are multiple plugins that would achieve the same result and multiple versions of this plugin even, so searching on the web can be confusing. In year 2024, this works simply with adding a plugin in the POM:
<plugin> <groupId>org.jvnet.jaxb</groupId> <artifactId>jaxb-maven-plugin</artifactId> <version>4.0.8</version> <executions> <execution> <id>NAME_FOR_THIS_RUN</id> <goals> <goal>generate</goal> </goals> <configuration> <schemaDirectory>src/main/resources/FOLDER/USE_CASE</schemaDirectory> <!-- here will be the XSD --> </configuration> </execution> </executions> </plugin>
No comments:
Post a Comment
With great power comes great responsibility