I'm migrating my JAXB code from the javax.* to the jakarta.* dependencies. Until now I used the following maven plugin to generate the Java code.
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb23-plugin</artifactId>
<version>0.15.2</version>
<executions>
<execution>
...
<configuration>
...
<args>
<arg>-Xvalue-constructor</arg>
</args>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-value-constructor</artifactId>
<version>3.0</version>
</dependency>
</dependencies>
</plugin>
Of course this maven plugin creates code using the javax dependencies.
There is a fork that has been updated to jakarta:
<groupId>com.helger.maven</groupId>
<artifactId>jaxb40-maven-plugin</artifactId>
But I haven't found an updated version of the plugin which generates the value constructors (jaxb2-value-constructor).
Is there another way to generate Java code from an XSD file so that the generated code uses the new Jakarta dependencies AND comprises a simple default constructor and a value constructor (a constructor that accepts all class fields as parameter)?