I'm generating JAXB classes from an XSD using XJC org.codehaus.mojo jaxb2-maven-plugin 2.2
I want to add a single line comment at the top of each generated file, what is the easiest way to achieve this ?
com.google.code.maven-replacer-plugin replacer 1.5.2 prepare-package replace
<basedir>${project.build.sourceDirectory}/com/deltarail/nexus/cis/map/jaxb/generated</basedir>
<includes>
<include>*.java</include>
</includes>
<replacements>
<replacement>
<token>// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11</token>
<value>// CSOFF: a.*</value>
</replacement>
<replacement>
<token>public class</token>
<value>@SuppressWarnings("PMD")
public class</value>
</replacement>
</replacements>
<regex>false</regex>
</configuration>
</plugin>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.