I use cxf-codegen-plugin to create some classes from WSDL. After generating the sources, the bunch of beans is deleted (we don’t need them, only the service interfaces), but there is an annotation in the generated source @XmlSeeAlsothat refers to some of these remote classes. We don’t need annotation at all @XmlSeeAlso, is there a way to tell cxf-codegen-plugin to exclude some annotations when creating sources?
@XmlSeeAlso
I solved this by adding a tag to maven-antrun-plugin, commenting out all instances @XmlSeeAlso:
maven-antrun-plugin
<target> <replace file="${basedir}/target/generated-sources/x/x/x/Service.java" token="@XmlSeeAlso" value="//@XmlSeeAlso" /> </target>
- , . , , , , , .