Greg,

I am currently using an Antrun regex replace job to remove the version
number from "Generated by javadoc ([docletVersion])" comments in
javadocs, see the JDK issue I raised:

https://bugs.openjdk.org/browse/JDK-8326483

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-antrun-plugin</artifactId>
  <version>3.1.0</version>
  <executions>
    <execution>
      <id>filter-javadocs</id>
      <phase>package</phase>
      <goals>
        <goal>run</goal>
      </goals>
      <configuration>
        <target>
          <replaceregexp byline="true">
            <regexp pattern="^(&lt;!-- Generated by javadoc ).* (--&gt;)$"/>
            <substitution expression="\1\2"/>
            <fileset dir="${project.build.directory}/apidocs">
              <include name="**/*.html"/>
            </fileset>
          </replaceregexp>
        </target>
      </configuration>
    </execution>
  </executions>
</plugin>

I could do something similar for this issue, but it is super ugly
already and I would like to avoid using more of that stuff.

-- 
Alexander Kriegisch
https://scrum-master.de


Greg Chabala schrieb am 26.02.2024 00:16 (GMT +07:00):

> I would also like a solution to this, but am no closer to solving it.
> 
> The noise from these date and version comments in the diffs make finding
> real changes too difficult.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to