I have a need to use Moxy to marshall some Java Strings that themselves contain XML,
I am following this post describing the use of a DOMHandler. There are also some references to a bug in the JAX-B implementation when using a DOMHandler, and that Moxy is preferred.
I have downloaded Moxy to my maven repo using the dependency shown below, and then I implemented this test. My setup is shown in the screenshot. However, when I run Demo, I still get output indicating that it is not recognizing the properties file, and still using the base implementation.
I also tried putting the properties file in /src/main/resources, since this is a Maven project.
What steps did I miss?
Maven dependency:
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.moxy</artifactId>
<version>2.5.0</version>
</dependency>
Project structure:
Demo ouptput:
class com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl
class com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl
class com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl
No comments:
Post a Comment