Is there a way to strip annotations when using the cxf-codegen-plugin for generating sources?
问题 I'm using the cxf-codegen-plugin to generate some classes from a WSDL. After the sources are generated, a bunch of beans get deleted (we don't need them, just the service interfaces), but there is an @XmlSeeAlso annotation in the generated source that references some of these deleted classes. We don't need the @XmlSeeAlso annotation at all, is there a way to tell the cxf-codegen-plugin to exclude certain annotations when generating sources? 回答1: I solved this by adding a tag to a maven-antrun