I saw an article which suggested me to use--- Only by setting the default JAXB provider to be the glassfish implementation by setting the system property: jakarta.xml.bind.JAXBContextFactory=org.glassfish.jaxb.runtime.v2.ContextFactory CXF will work in this setting.
How do I set this property?
I tried using
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<systemPropertyVariables>
<jakarta.xml.bind.JAXBContextFactory>org.glassfish.jaxb.runtime.v2.ContextFactory</jakarta.xml.bind.JAXBContextFactory>
</systemPropertyVariables>
</configuration>
</plugin>
but this did not work.
-Dparameter correctly.