2

I want to remove comments inside generated files through maven-jaxb2-plugin.

I tried:

<noFileHeader>true</noFileHeader>

and

<configuration>
  <args>
    <arg>-no-header</arg>
  </args>
</configuration>

It boths works for java classes, but doesn't work for sun-jaxb.episode which keeps the comment with the timestamp.

Thank you, RoD

RoD
  • 464
  • 2
  • 11
  • 23

1 Answers1

2

Author of the [maven-jaxb2-plugin] here.

The actual generation of episodes is implemented in JAXB RI. And there does not seem to be a way to disable it. Consider filing an issue in JAXB RI. Also consider implementing an own plugin for it (instead of the built-in plugin).

lexicore
  • 42,748
  • 17
  • 132
  • 221