NIFI-10616 Resolve Reproducible ANTLR3 and JAXB Build Issues

This closes #6500

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Hervé Boutemy 2022-10-08 19:47:17 +02:00 committed by exceptionfactory
parent 56d26be3ca
commit fa1ea87a83
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
4 changed files with 96 additions and 0 deletions

View File

@ -34,6 +34,36 @@
</execution>
</executions>
</plugin>
<plugin><!-- workaround for https://github.com/antlr/antlr3/pull/209 -->
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<basedir>${project.build.directory}/generated-sources/antlr3/org/apache/nifi/attribute/expression/language/antlr</basedir>
<includes>
<include>*.java</include>
</includes>
<replacements>
<replacement>
<token>(// .ANTLR .+) ....-..-.. ..:..:..</token>
<value>$1</value>
</replacement>
<replacement>
<token>(// elements: ).*</token>
<value>$1</value>
</replacement>
</replacements>
<regex>true</regex>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>

View File

@ -45,6 +45,36 @@
</execution>
</executions>
</plugin>
<plugin><!-- workaround for https://github.com/antlr/antlr3/pull/209 -->
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<basedir>${project.build.directory}/generated-sources/antlr3/org/apache/nifi/hl7/query/antlr</basedir>
<includes>
<include>*.java</include>
</includes>
<replacements>
<replacement>
<token>(// .ANTLR .+) ....-..-.. ..:..:..</token>
<value>$1</value>
</replacement>
<replacement>
<token>(// elements: ).*</token>
<value>$1</value>
</replacement>
</replacements>
<regex>true</regex>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>

View File

@ -36,6 +36,36 @@
</execution>
</executions>
</plugin>
<plugin><!-- workaround for https://github.com/antlr/antlr3/pull/209 -->
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<basedir>${project.build.directory}/generated-sources/antlr3/org/apache/nifi/record/path</basedir>
<includes>
<include>*.java</include>
</includes>
<replacements>
<replacement>
<token>(// .ANTLR .+) ....-..-.. ..:..:..</token>
<value>$1</value>
</replacement>
<replacement>
<token>(// elements: ).*</token>
<value>$1</value>
</replacement>
</replacements>
<regex>true</regex>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>

View File

@ -740,6 +740,9 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>2.5.0</version>
<configuration>
<noGeneratedHeaderComments>true</noGeneratedHeaderComments>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
@ -1079,6 +1082,9 @@
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.14.0</version>
<configuration>
<noFileHeader>true</noFileHeader>
</configuration>
</plugin>
</plugins>
</pluginManagement>