Closed jonsalvas closed 1 year ago
importing
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>4.0.0</version>
</dependency>
fixed the issue
When I try to upgrade jaxb2-maven-plugin from 2.5.0 to 3.1.0 I receive the following error, while trying to generate an XSD out of Java code:
Execution xmlschemagen of goal org.codehaus.mojo:jaxb2-maven-plugin:3.1.0:schemagen failed: A required class was missing while executing org.codehaus.mojo:jaxb2-maven-plugin:3.1.0:schemagen: jakarta/xml/bind/JAXBContext
Here the pom.xml: