File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
mvn-scalaxb/src/main/java/org/scalaxb/maven Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,15 @@ public abstract class AbstractScalaxbMojo extends AbstractMojo {
279279 @ Parameter (property = "scalaxb.verbose" )
280280 private boolean verbose ;
281281
282+ /**
283+ * Specifies which JAXB package to use when generating code.
284+ * Use {@code "javax"} for environments based on Java EE (up to Java 8),
285+ * or {@code "jakarta"} for newer Jakarta EE–based environments (Java 11+).
286+ * Default is {@code "javax"} for back compability.
287+ */
288+ @ Parameter (property = "scalaxb.jaxbPackage" , defaultValue = "javax" )
289+ private String jaxbPackage ;
290+
282291 /**
283292 * Returns the directory in which to search for XSD schema files.
284293 * @return The directory containing the XSD files.
@@ -357,6 +366,7 @@ protected List<String> arguments() {
357366 .flag ("--no-dispatch-client" , !generateDispatchClient )
358367 .flag ("--dispatch-as" , generateDispatchAs )
359368 .param ("--dispatch-version" , dispatchVersion )
369+ .param ("--jaxb-package" , jaxbPackage )
360370 .flag ("--tagless-final-client" , tagless )
361371 .flag ("--mapK" , mapK )
362372 .flag ("--http4s-client" , generateHttp4sClient )
You can’t perform that action at this time.
0 commit comments