I’m using java 1.6.0_14 which includes an implementation of the annotation javax.xml.bind.annotation.XmlElement. However the one in the JDK only applies to Method and Field.
I’ve found jaxb-api.jar version 2.2.3 permits this on Parameter too, so I want to use this version.
Problem is, I can’t figure out how to get maven to use this one in preference to the one in the JDK so that when I am writing my code it doesn’t complain that the annotation is being used in an invalid location.
Any suggestions?
Include an explicit dependency in your POM: