mklemm / jaxb-rich-contract-plugin

Implements some JAXB plugins to generate advanced contract scenarios from XSD
MIT License
67 stars 33 forks source link

Add support for maven-jaxb2-plugin:0.14.0 #35

Closed sinedsem closed 6 years ago

sinedsem commented 6 years ago

ATM the latest version 1.18.0 fails with the error:

Failed to execute goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.14.0:generate (default) on project marshall: Execution default of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.14.0:generate failed: An API incompatibility was encountered while executing org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.14.0:generate: java.lang.NoSuchMethodError: com.sun.codemodel.fmt.JStaticJavaFile.(Lcom/sun/codemodel/JPackage;Ljava/lang/String;Ljava/net/URL;Lcom/sun/codemodel/fmt/JStaticJavaFile$LineFilter;)V

mklemm commented 6 years ago

The current version of the plugin was built against JAXB 2.2. The next version will support JAXB 2.3 only, so the issue will be resolved.

mklemm commented 6 years ago

Resolved in 2.0.0

Vishal-0319 commented 1 year ago

Getting an error while migrating to jdk17

[ERROR] Failed to execute goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.14.0:generate (xjc) on project checkout-service-api: Execution xjc of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.14.0:generate failed: An API incompatibility was encountered while executing org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.14.0:generate: java.lang.ExceptionInInitializerError: null

Can anyone please help here