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

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


The following commit(s) were added to refs/heads/main by this push:
     new b8e5b512b4 GH-40619: [Java] JDBC Adapter Build Issue (#40656)
b8e5b512b4 is described below

commit b8e5b512b4add8e03e0b3948754fad0032f0e0fe
Author: Vibhatha Lakmal Abeykoon <[email protected]>
AuthorDate: Wed Mar 20 18:10:36 2024 +0530

    GH-40619: [Java] JDBC Adapter Build Issue (#40656)
    
    ### Rationale for this change
    
    Compiling JDBC Adapter module fails when running from a time zone which is 
not UTC. The tests assume the set time zone is UTC. Since running from a 
location where the timezone is not UTC, the error documented in 
https://github.com/apache/arrow/issues/40619 occurs.
    
    ### What changes are included in this PR?
    
    Adding the time zone as a property to maven profile.
    
    ### Are these changes tested?
    
    These changes have been tested locally in a non-UTC timezone (+0530).
    
    ### Are there any user-facing changes?
    
    No
    * GitHub Issue: #40619
    
    Authored-by: Vibhatha Abeykoon <[email protected]>
    Signed-off-by: David Li <[email protected]>
---
 java/adapter/jdbc/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/adapter/jdbc/pom.xml b/java/adapter/jdbc/pom.xml
index dfcd4cfe8f..b6c450ecd3 100644
--- a/java/adapter/jdbc/pom.xml
+++ b/java/adapter/jdbc/pom.xml
@@ -105,7 +105,7 @@
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-surefire-plugin</artifactId>
                         <configuration combine.self="override">
-                            
<argLine>--add-reads=org.apache.arrow.adapter.jdbc=com.fasterxml.jackson.dataformat.yaml
 
--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED</argLine>
+                            
<argLine>--add-reads=org.apache.arrow.adapter.jdbc=com.fasterxml.jackson.dataformat.yaml
 --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED 
-Duser.timezone=UTC</argLine>
                         </configuration>
                     </plugin>
                 </plugins>

Reply via email to