This is an automated email from the ASF dual-hosted git repository.

tilman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/main by this push:
     new 03005c72e TIKA-4327: use option to avoid exception in updated protobuf
03005c72e is described below

commit 03005c72e2a29c9e1b10a46fd4f1cae932f8347b
Author: Tilman Hausherr <[email protected]>
AuthorDate: Mon Jan 27 09:55:58 2025 +0100

    TIKA-4327: use option to avoid exception in updated protobuf
---
 .../tika-parsers-extended/tika-parser-scientific-module/pom.xml  | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git 
a/tika-parsers/tika-parsers-extended/tika-parser-scientific-module/pom.xml 
b/tika-parsers/tika-parsers-extended/tika-parser-scientific-module/pom.xml
index 4d7e4ee01..3b108f068 100644
--- a/tika-parsers/tika-parsers-extended/tika-parser-scientific-module/pom.xml
+++ b/tika-parsers/tika-parsers-extended/tika-parser-scientific-module/pom.xml
@@ -100,6 +100,15 @@ May the gods of dependency management fix this in the 
future.
 
   <build>
     <plugins>
+      <!-- because of protobuf 3.25.6. The actual problem is in netcdf4. Might 
be a false alarm,
+           because 
https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-h4h5-3hr4-j3g2
+           mentions older versions of protobuf        -->
+      <plugin>
+          <artifactId>maven-surefire-plugin</artifactId>
+          <configuration>
+              <argLine>-Dcom.google.protobuf.use_unsafe_pre22_gencode</argLine>
+          </configuration>
+      </plugin>
       <plugin>
         <groupId>org.apache.rat</groupId>
         <artifactId>apache-rat-plugin</artifactId>

Reply via email to